Lines Matching refs:stat
79 struct stat stat; in build_directory_structure() local
106 ret = lstat(dentries[i].full_path, &stat); in build_directory_structure()
114 dentries[i].size = stat.st_size; in build_directory_structure()
115 dentries[i].mode = stat.st_mode & (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO); in build_directory_structure()
116 dentries[i].mtime = stat.st_mtime; in build_directory_structure()
122 int dir = S_ISDIR(stat.st_mode); in build_directory_structure()
132 if (S_ISREG(stat.st_mode)) { in build_directory_structure()
134 } else if (S_ISDIR(stat.st_mode)) { in build_directory_structure()
137 } else if (S_ISCHR(stat.st_mode)) { in build_directory_structure()
139 } else if (S_ISBLK(stat.st_mode)) { in build_directory_structure()
141 } else if (S_ISFIFO(stat.st_mode)) { in build_directory_structure()
143 } else if (S_ISSOCK(stat.st_mode)) { in build_directory_structure()
145 } else if (S_ISLNK(stat.st_mode)) { in build_directory_structure()