Searched refs:statbuf (Results 1 – 4 of 4) sorted by relevance
/systemd-251/src/udev/ |
D | udevadm-info.c | 261 struct stat statbuf; in stat_device() local 265 if (stat(name, &statbuf) != 0) in stat_device() 273 prefix, major(statbuf.st_dev), in stat_device() 274 prefix, minor(statbuf.st_dev)); in stat_device() 276 printf("%u:%u\n", major(statbuf.st_dev), minor(statbuf.st_dev)); in stat_device()
|
D | udev-rules.c | 1678 struct stat statbuf; in udev_rule_apply_token_to_event() local 1710 if (stat(buf, &statbuf) < 0) in udev_rule_apply_token_to_event() 1716 match = (statbuf.st_mode & mode) > 0; in udev_rule_apply_token_to_event()
|
/systemd-251/src/udev/scsi_id/ |
D | scsi_serial.c | 747 struct stat statbuf; in scsi_std_inquiry() local 756 if (fstat(fd, &statbuf) < 0) { in scsi_std_inquiry() 761 sprintf(dev_scsi->kernel,"%d:%d", major(statbuf.st_rdev), in scsi_std_inquiry() 762 minor(statbuf.st_rdev)); in scsi_std_inquiry()
|
/systemd-251/src/libsystemd/sd-device/ |
D | sd-device.c | 1876 struct stat statbuf; in device_sysattrs_read_all_internal() local 1904 if (lstat(path, &statbuf) != 0) in device_sysattrs_read_all_internal() 1907 if ((statbuf.st_mode & (S_IRUSR | S_IWUSR)) == 0) in device_sysattrs_read_all_internal() 2099 struct stat statbuf; in sd_device_get_sysattr_value() local 2115 if (lstat(path, &statbuf) < 0) { in sd_device_get_sysattr_value() 2128 } else if (S_ISLNK(statbuf.st_mode)) { in sd_device_get_sysattr_value() 2137 } else if (S_ISDIR(statbuf.st_mode)) in sd_device_get_sysattr_value() 2140 else if (!(statbuf.st_mode & S_IRUSR)) in sd_device_get_sysattr_value()
|