Searched refs:stat_info (Results 1 – 7 of 7) 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);
312 stat_info = os.stat(crash_dir)313 user = pwd.getpwuid(stat_info.st_uid).pw_name314 group = grp.getgrgid(stat_info.st_gid).gr_name315 mode = stat.S_IMODE(stat_info.st_mode)318 if stat.S_ISDIR(stat_info.st_mode):
525 stat_info = os.stat(cached_path)529 self.assertEqual(oct(stat.S_IMODE(stat_info.st_mode)),544 stat_info = os.stat(cached_path)546 self.assertEqual(oct(stat.S_IMODE(stat_info.st_mode)), oct(mode))559 stat_info = os.stat(cached_path)562 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