Lines Matching refs:statb
53 struct stat statb; in devid_get() local
56 if (fstat(fd, &statb) != 0) in devid_get()
60 if (!S_ISCHR(statb.st_mode) && !S_ISBLK(statb.st_mode)) in devid_get()
64 dev = statb.st_rdev; in devid_get()
93 struct stat statb; in devid_get_minor_name() local
95 if (fstat(fd, &statb) != 0) in devid_get_minor_name()
99 if (!S_ISCHR(statb.st_mode) && !S_ISBLK(statb.st_mode)) in devid_get_minor_name()
102 spectype = statb.st_mode & S_IFMT; in devid_get_minor_name()
103 dev = statb.st_rdev; in devid_get_minor_name()
158 struct stat statb; in nmlist_add() local
163 if ((stat(path, &statb) == 0) && in nmlist_add()
164 (S_ISCHR(statb.st_mode) || S_ISBLK(statb.st_mode))) in nmlist_add()
165 dev = statb.st_rdev; in nmlist_add()