Lines Matching refs:st
403 struct stat st;
419 if (stat(p, &st) >= 0)
420 if ((!S_ISBLK(st.st_mode) && !S_ISCHR(st.st_mode)) ||
421 st.st_rdev != udev_device_get_devnum(dev))
785 struct stat st;
814 if (stat(node, &st) >= 0) {
815 if (!S_ISBLK(st.st_mode) && !S_ISCHR(st.st_mode))
818 dev = udev_device_new_from_devnum(m->udev, S_ISBLK(st.st_mode) ? 'b' : 'c', st.st_rdev);
820 return log_error_errno(errno, "Failed to get udev device from devnum %u:%u: %m", major(st.st_rdev), minor(st.st_rdev));