Searched refs:statbuf (Results 1 - 6 of 6) sorted by relevance
/systemd/src/udev/ |
H A D | udevadm-util.c | 32 struct stat statbuf; local 35 if (stat(id, &statbuf) < 0) 38 if (S_ISBLK(statbuf.st_mode)) 40 else if (S_ISCHR(statbuf.st_mode)) 45 return udev_device_new_from_devnum(udev, type, statbuf.st_rdev);
|
H A D | udevadm-info.c | 156 struct stat statbuf; local 158 if (stat(name, &statbuf) != 0) 166 prefix, major(statbuf.st_dev), 167 prefix, minor(statbuf.st_dev)); 169 printf("%u:%u\n", major(statbuf.st_dev), minor(statbuf.st_dev));
|
H A D | udev-rules.c | 2045 struct stat statbuf; local 2060 match = (stat(filename, &statbuf) == 0); 2062 match = ((statbuf.st_mode & cur->key.mode) > 0);
|
/systemd/src/libsystemd/sd-device/ |
H A D | sd-device.c | 1569 struct stat statbuf; local 1577 if (lstat(path, &statbuf) != 0) 1580 if (!(statbuf.st_mode & S_IRUSR)) 1706 struct stat statbuf; local 1733 r = lstat(path, &statbuf); 1741 } else if (S_ISLNK(statbuf.st_mode)) { 1750 } else if (S_ISDIR(statbuf.st_mode)) { 1753 } else if (!(statbuf.st_mode & S_IRUSR)) { 1798 struct stat statbuf; local 1817 r = lstat(path, &statbuf); [all...] |
/systemd/src/udev/scsi_id/ |
H A D | scsi_serial.c | 816 struct stat statbuf; local 825 if (fstat(fd, &statbuf) < 0) { 830 sprintf(dev_scsi->kernel,"%d:%d", major(statbuf.st_rdev), 831 minor(statbuf.st_rdev));
|
/systemd/src/udev/cdrom_id/ |
H A D | cdrom_id.c | 104 struct stat statbuf; local 109 if (stat(device, &statbuf) < 0) 116 if (makedev(maj, min) == statbuf.st_rdev) {
|
Completed in 1878 milliseconds