Searched refs:stat_info (Results 1 – 8 of 8) sorted by relevance
114 void File::Info::FromStat(const stat_wrapper_t& stat_info) { in FromStat() argument115 is_directory = S_ISDIR(stat_info.st_mode); in FromStat()116 is_symbolic_link = S_ISLNK(stat_info.st_mode); in FromStat()117 size = stat_info.st_size; in FromStat()120 time_t last_modified_sec = stat_info.st_mtim.tv_sec; in FromStat()121 int64_t last_modified_nsec = stat_info.st_mtim.tv_nsec; in FromStat()122 time_t last_accessed_sec = stat_info.st_atim.tv_sec; in FromStat()123 int64_t last_accessed_nsec = stat_info.st_atim.tv_nsec; in FromStat()124 time_t creation_time_sec = stat_info.st_ctim.tv_sec; in FromStat()125 int64_t creation_time_nsec = stat_info.st_ctim.tv_nsec; in FromStat()[all …]
97 stat_wrapper_t stat_info; in VerifySpecificPathControlledByUser() local98 if (CallLstat(path.value().c_str(), &stat_info) != 0) { in VerifySpecificPathControlledByUser()104 if (S_ISLNK(stat_info.st_mode)) { in VerifySpecificPathControlledByUser()109 if (stat_info.st_uid != owner_uid) { in VerifySpecificPathControlledByUser()114 if ((stat_info.st_mode & S_IWGRP) && in VerifySpecificPathControlledByUser()115 !ContainsKey(group_gids, stat_info.st_gid)) { in VerifySpecificPathControlledByUser()121 if (stat_info.st_mode & S_IWOTH) { in VerifySpecificPathControlledByUser()
127 void FromStat(const stat_wrapper_t& stat_info);
132 stat_info; in ReadORAImage() local147 stat(image_info->filename,&stat_info); in ReadORAImage()237 out_image->timestamp=time(&stat_info.st_mtime); in ReadORAImage()240 out_image->extent=stat_info.st_size; in ReadORAImage()
320 stat_info = os.stat(crash_dir)321 user = pwd.getpwuid(stat_info.st_uid).pw_name322 group = grp.getgrgid(stat_info.st_gid).gr_name323 mode = stat.S_IMODE(stat_info.st_mode)326 if stat.S_ISDIR(stat_info.st_mode):
532 stat_info = os.stat(cached_path)536 self.assertEqual(oct(stat.S_IMODE(stat_info.st_mode)),551 stat_info = os.stat(cached_path)553 self.assertEqual(oct(stat.S_IMODE(stat_info.st_mode)), oct(mode))566 stat_info = os.stat(cached_path)569 self.assertEqual(oct(stat.S_IMODE(stat_info.st_mode)), oct(expected))
648 struct stat stat_info; in scandir() local665 lstat(dir_entry->d_name,&stat_info); in scandir()666 if (S_ISDIR(stat_info.st_mode)) { in scandir()
93 stat_info = _path_stat(path)96 return (stat_info.st_mode & 0o170000) == mode