Searched refs:stat_info (Results 1 – 5 of 5) sorted by relevance
110 void File::Info::FromStat(const stat_wrapper_t& stat_info) { in FromStat() argument111 is_directory = S_ISDIR(stat_info.st_mode); in FromStat()112 is_symbolic_link = S_ISLNK(stat_info.st_mode); in FromStat()113 size = stat_info.st_size; in FromStat()116 time_t last_modified_sec = stat_info.st_mtim.tv_sec; in FromStat()117 int64_t last_modified_nsec = stat_info.st_mtim.tv_nsec; in FromStat()118 time_t last_accessed_sec = stat_info.st_atim.tv_sec; in FromStat()119 int64_t last_accessed_nsec = stat_info.st_atim.tv_nsec; in FromStat()120 time_t creation_time_sec = stat_info.st_ctim.tv_sec; in FromStat()121 int64_t creation_time_nsec = stat_info.st_ctim.tv_nsec; in FromStat()[all …]
98 stat_wrapper_t stat_info; in VerifySpecificPathControlledByUser() local99 if (CallLstat(path.value().c_str(), &stat_info) != 0) { in VerifySpecificPathControlledByUser()105 if (S_ISLNK(stat_info.st_mode)) { in VerifySpecificPathControlledByUser()111 if (stat_info.st_uid != owner_uid) { in VerifySpecificPathControlledByUser()117 if ((stat_info.st_mode & S_IWGRP) && in VerifySpecificPathControlledByUser()118 !ContainsKey(group_gids, stat_info.st_gid)) { in VerifySpecificPathControlledByUser()124 if (stat_info.st_mode & S_IWOTH) { in VerifySpecificPathControlledByUser()
135 void FromStat(const stat_wrapper_t& stat_info);
256 stat_info = os.stat(crash_dir)257 user = pwd.getpwuid(stat_info.st_uid)[0]258 group = grp.getgrgid(stat_info.st_gid)[0]259 mode = stat.S_IMODE(stat_info.st_mode)
647 struct stat stat_info; in scandir() local664 lstat(dir_entry->d_name,&stat_info); in scandir()665 if (S_ISDIR(stat_info.st_mode)) { in scandir()