Lines Matching refs:stat
153 struct stat stat; in build_directory_structure() local
202 ret = lstat(dentries[i].full_path, &stat); in build_directory_structure()
210 dentries[i].size = stat.st_size; in build_directory_structure()
211 dentries[i].mode = stat.st_mode & (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO); in build_directory_structure()
213 dentries[i].mtime = stat.st_mtime; in build_directory_structure()
223 int dir = S_ISDIR(stat.st_mode); in build_directory_structure()
235 if (selabel_lookup(sehnd, &dentries[i].secon, dentries[i].path, stat.st_mode) < 0) { in build_directory_structure()
244 if (S_ISREG(stat.st_mode)) { in build_directory_structure()
246 } else if (S_ISDIR(stat.st_mode)) { in build_directory_structure()
249 } else if (S_ISCHR(stat.st_mode)) { in build_directory_structure()
251 } else if (S_ISBLK(stat.st_mode)) { in build_directory_structure()
253 } else if (S_ISFIFO(stat.st_mode)) { in build_directory_structure()
255 } else if (S_ISSOCK(stat.st_mode)) { in build_directory_structure()
257 } else if (S_ISLNK(stat.st_mode)) { in build_directory_structure()