Lines Matching refs:statbuf
266 static void service(struct stat statbuf, char *path);
518 struct stat statbuf; in read_config_file() local
524 if (stat(path, &statbuf) == 0) { in read_config_file()
528 if (S_ISDIR(statbuf.st_mode)) { in read_config_file()
806 struct stat statbuf; in action_permissions() local
808 if (stat(info->devname, &statbuf) != 0 in action_permissions()
809 || chmod(info->devname, (statbuf.st_mode & S_IFMT) | (entry->u.permissions.mode & ~S_IFMT)) != 0 in action_permissions()
1237 static void service(struct stat statbuf, char *path) in service() argument
1243 info.mode = statbuf.st_mode; in service()
1244 info.major = major(statbuf.st_rdev); in service()
1245 info.minor = minor(statbuf.st_rdev); in service()
1246 info.uid = statbuf.st_uid; in service()
1247 info.gid = statbuf.st_gid; in service()
1251 if (S_ISDIR(statbuf.st_mode)) in service()
1264 struct stat statbuf; in dir_operation() local
1278 if (lstat(path, &statbuf) == 0) { in dir_operation()
1281 service(statbuf, path); in dir_operation()
1284 restore(path, statbuf, var); in dir_operation()