Searched refs:stat_buf (Results 1 - 6 of 6) sorted by relevance

/solaris-x11-s12/open-src/app/gfx-utils/sun-src/fbconf_xorg/fbc/
H A Dfbc_open_device.c60 struct stat stat_buf; /* stat() buffer for device */ local
69 if (stat(device->path, &stat_buf) != 0) {
74 if ((stat_buf.st_mode & S_IFCHR) == 0) {
110 device_rdev_id = stat_buf.st_rdev & ~FBC_CLONE_MASK;
112 ((stat(FBC_DEVICE_SYMLINK_PATH, &stat_buf) == 0) &&
113 ((stat_buf.st_mode & S_IFCHR) != 0) &&
114 ((stat_buf.st_rdev & ~FBC_CLONE_MASK) == device_rdev_id));
H A Dfbc_open_master.c68 struct stat stat_buf; /* File status information */ local
75 if (fstat(slave_fd, &stat_buf) < 0) {
78 slave_rdev_id = stat_buf.st_rdev & ~FBC_CLONE_MASK;
119 if (stat(pathname, &stat_buf) < 0) {
129 if (((stat_buf.st_mode & S_IFCHR) == 0) ||
130 ((stat_buf.st_rdev & ~FBC_MINOR_MASK) != slave_rdev_type) ||
131 ((stat_buf.st_rdev & ~FBC_CLONE_MASK) == slave_rdev_id)) {
H A Dfbc_gamma_table.c402 struct stat stat_buf; /* Gamma file status */ local
407 if ((stat(gfile_in_path, &stat_buf) < 0) ||
408 (stat_buf.st_size == NUM_COLORS)) {
412 *gamma_string_red = malloc(stat_buf.st_size);
434 stat_buf.st_size,
437 if (bytes_read != stat_buf.st_size) {
446 if (*(*gamma_string_red + stat_buf.st_size - 1) == '\n') {
447 *(*gamma_string_red + stat_buf.st_size - 1) = '\0';
H A Dfbc_write_config.c394 struct stat stat_buf; /* Input config file status */ local
399 if (stat(fbvar->config_file_path, &stat_buf) == -1) {
400 stat_buf.st_mode = FBC_CONFIG_FILE_MODE;
401 stat_buf.st_uid = FBC_CONFIG_FILE_UID;
402 stat_buf.st_gid = FBC_CONFIG_FILE_GID;
408 if (fchmod(config_fd_out, stat_buf.st_mode) == -1) {
413 if (fchown(config_fd_out, stat_buf.st_uid, stat_buf.st_gid)
H A Dfbc_get_properties.c68 struct stat stat_buf; /* stat() buffer for device */ local
90 if (stat(name_buf, &stat_buf) == 0) {
/solaris-x11-s12/open-src/app/gfx-utils/sun-src/fbconfig/
H A Dfbconfig.c354 * Mask for stat_buf.st_rdev member
368 struct stat stat_buf; /* stat() buffer for device file */ local
373 if (stat(device_path, &stat_buf) != 0) {
376 if ((stat_buf.st_mode & S_IFCHR) == 0) {
384 *st_rdev = stat_buf.st_rdev;
1421 struct stat stat_buf; /* stat() buffer for device file */ local
1423 if (stat(xserver_path[xserver_arg], &stat_buf) != 0) {
1441 struct stat stat_buf; /* stat() buffer for device file */ local
1460 if (stat(efb_path, &stat_buf) != 0) {
1469 if (stat(efb_path, &stat_buf)
[all...]

Completed in 12 milliseconds