Home
last modified time | relevance | path

Searched refs:stat_info (Results 1 – 8 of 8) sorted by relevance

/external/libchrome/base/files/
Dfile_posix.cc110 void File::Info::FromStat(const stat_wrapper_t& stat_info) { in FromStat() argument
111 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 …]
Dfile_util_posix.cc99 stat_wrapper_t stat_info; in VerifySpecificPathControlledByUser() local
100 if (CallLstat(path.value().c_str(), &stat_info) != 0) { in VerifySpecificPathControlledByUser()
106 if (S_ISLNK(stat_info.st_mode)) { in VerifySpecificPathControlledByUser()
112 if (stat_info.st_uid != owner_uid) { in VerifySpecificPathControlledByUser()
118 if ((stat_info.st_mode & S_IWGRP) && in VerifySpecificPathControlledByUser()
119 !ContainsKey(group_gids, stat_info.st_gid)) { in VerifySpecificPathControlledByUser()
125 if (stat_info.st_mode & S_IWOTH) { in VerifySpecificPathControlledByUser()
Dfile.h139 void FromStat(const stat_wrapper_t& stat_info);
/external/autotest/server/site_tests/provision_CheetsUpdate/
Dshift_uid.py25 stat_info = os.lstat(path)
26 if (stat_info.st_uid < 655360):
27 os.lchown(path, stat_info.st_uid + 655360, stat_info.st_gid + 655360)
30 stat_info = os.lstat(path)
31 if (stat_info.st_uid < 655360):
32 os.lchown(path, stat_info.st_uid + 655360, stat_info.st_gid + 655360)
/external/autotest/client/cros/crash/
Duser_crash_test.py301 stat_info = os.stat(crash_dir)
302 user = pwd.getpwuid(stat_info.st_uid)[0]
303 group = grp.getgrgid(stat_info.st_gid)[0]
304 mode = stat.S_IMODE(stat_info.st_mode)
/external/python/cpython3/Lib/test/test_import/
D__init__.py368 stat_info = os.stat(cached_path)
372 self.assertEqual(oct(stat.S_IMODE(stat_info.st_mode)),
387 stat_info = os.stat(cached_path)
389 self.assertEqual(oct(stat.S_IMODE(stat_info.st_mode)), oct(mode))
402 stat_info = os.stat(cached_path)
405 self.assertEqual(oct(stat.S_IMODE(stat_info.st_mode)), oct(expected))
/external/icu/icu4c/source/tools/tzcode/
Dtz2icu.cpp648 struct stat stat_info; in scandir() local
665 lstat(dir_entry->d_name,&stat_info); in scandir()
666 if (S_ISDIR(stat_info.st_mode)) { in scandir()
/external/python/cpython3/Lib/importlib/
D_bootstrap_external.py88 stat_info = _path_stat(path)
91 return (stat_info.st_mode & 0o170000) == mode