/third_party/ltp/testcases/kernel/fs/ftest/ |
H A D | ftest07.c | 64 #include <sys/stat.h> 292 struct stat stat; in dotest() local 431 fstat(fd, &stat); in dotest() 434 stat.st_size, (unsigned)stat.st_ino); in dotest() 469 fstat(fd, &stat); in dotest() 472 stat.st_size, (unsigned)stat.st_ino); in dotest() 543 struct stat s in domisc() [all...] |
H A D | ftest03.c | 59 #include <sys/stat.h> 291 struct stat stat; in dotest() local 436 fstat(fd, &stat); in dotest() 439 stat.st_size, (unsigned)stat.st_ino); in dotest() 474 fstat(fd, &stat); in dotest() 477 stat.st_size, (unsigned)stat.st_ino); in dotest() 548 struct stat s in domisc() [all...] |
/third_party/python/Lib/test/ |
H A D | test_dbm_dumb.py | 9 import stat namespace 60 import stat namespace 61 st = os.stat(_fname + '.dat') 62 self.assertEqual(stat.S_IMODE(st.st_mode), expected_mode) 63 st = os.stat(_fname + '.dir') 64 self.assertEqual(stat.S_IMODE(st.st_mode), expected_mode) 277 os.chmod(fname + ".dir", stat.S_IRUSR) 278 os.chmod(fname + ".dat", stat.S_IRUSR) 279 os.chmod(dir, stat.S_IRUSR|stat [all...] |
H A D | test_largefile.py | 5 import stat namespace 32 current_size = os.fstat(f.fileno())[stat.ST_SIZE] 43 self.assertEqual(os.fstat(f.fileno())[stat.ST_SIZE], size+1) 49 if not os.stat(TESTFN)[stat.ST_SIZE] == 0: 70 self.assertEqual(os.stat(TESTFN)[stat.ST_SIZE], size+1)
|
/third_party/mesa3d/src/gallium/auxiliary/hud/ |
H A D | hud_nic.c | 48 #include <sys/stat.h> 291 struct stat stat_buf; in is_wireless_nic() 296 if (stat(fn, &stat_buf) == 0) in is_wireless_nic() 305 struct stat stat_buf; in query_nic_bitrate() 310 if (stat(fn, &stat_buf) == 0) { in query_nic_bitrate() 332 struct stat stat_buf; in hud_get_num_nics() 362 if (stat(name, &stat_buf) < 0) in hud_get_num_nics()
|
/third_party/python/Lib/ |
H A D | pathlib.py | 13 from stat import S_ISDIR, S_ISLNK, S_ISREG, S_ISSOCK, S_ISBLK, S_ISCHR, S_ISFIFO 30 # EBADF - guard against macOS `stat` throwing EBADF 920 st = self.stat() 922 other_st = other_path.stat() 924 other_st = self.__class__(other_path).stat() 1000 # Ensure we get an exception by calling stat() 1003 p.stat() 1008 def stat(self, *, follow_symlinks=True): member in Path 1010 Return the result of the stat() system call on this path, like 1011 os.stat() doe [all...] |
/third_party/python/Mac/BuildScript/ |
H A D | build-installer.py | 39 import platform, os, sys, getopt, textwrap, shutil, stat, time, pwd, grp namespace 45 STAT_0o755 = ( stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR 46 | stat.S_IRGRP | stat.S_IXGRP 47 | stat.S_IROTH | stat.S_IXOTH ) 49 STAT_0o775 = ( stat.S_IRUSR | stat [all...] |
/third_party/icu/icu4c/source/tools/toolutil/ |
H A D | filetools.cpp | 11 // *cough* - for struct stat 26 #include <sys/stat.h> 110 struct stat stbuf1, stbuf2; in whichFileModTimeIsLater() 112 if (stat(file1, &stbuf1) == 0 && stat(file2, &stbuf2) == 0) { in whichFileModTimeIsLater()
|
/third_party/ltp/testcases/kernel/fs/fs-bench/ |
H A D | random-del-create.c | 5 #include <sys/stat.h> 115 #include <sys/stat.h> 120 struct stat buf; in delete_file() 122 st = stat(filename, &buf); in delete_file()
|
H A D | random-access-del-create.c | 5 #include <sys/stat.h> 118 #include <sys/stat.h> 123 struct stat buf; in delete_file() 125 st = stat(filename, &buf); in delete_file()
|
/third_party/noto-cjk/google-fonts/ |
H A D | hotfix.py | 55 stat = ttfont["STAT"].table 56 deletable_names.add(stat.ElidedFallbackNameID) 57 for av in stat.AxisValueArray.AxisValue: 59 for axis in stat.DesignAxisRecord.Axis:
|
/third_party/node/deps/icu-small/source/tools/toolutil/ |
H A D | filetools.cpp | 11 // *cough* - for struct stat 26 #include <sys/stat.h> 110 struct stat stbuf1, stbuf2; in whichFileModTimeIsLater() 112 if (stat(file1, &stbuf1) == 0 && stat(file2, &stbuf2) == 0) { in whichFileModTimeIsLater()
|
/third_party/ltp/testcases/kernel/syscalls/fstatat/ |
H A D | fstatat01.c | 28 #include <sys/stat.h> 68 int fstatat(int dirfd, const char *filename, struct stat *statbuf, int flags) in fstatat() 73 int fstatat(int dirfd, const char *filename, struct stat *statbuf, int flags) in fstatat() 86 static struct stat statbuf; in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/ |
H A D | 14-1.c | 26 #include <sys/stat.h> 43 struct stat stat_buff; in main() 75 if (stat(tmpfname, &stat_buff) == -1) { in main() 76 printf("Error at 1st stat(): %s\n", strerror(errno)); in main() 97 if (stat(tmpfname, &stat_buff) == -1) { in main() 98 printf("Error at stat(): %s\n", strerror(errno)); in main()
|
/third_party/skia/third_party/externals/icu/source/tools/toolutil/ |
H A D | filetools.cpp | 11 // *cough* - for struct stat 26 #include <sys/stat.h> 110 struct stat stbuf1, stbuf2; in whichFileModTimeIsLater() 112 if (stat(file1, &stbuf1) == 0 && stat(file2, &stbuf2) == 0) { in whichFileModTimeIsLater()
|
/third_party/skia/src/ports/ |
H A D | SkOSFile_stdio.cpp | 13 #include <sys/stat.h> 154 struct stat status; in sk_isdir() 155 if (0 != stat(path, &status)) { in sk_isdir() 160 if (0 != stat(bundlePath.c_str(), &status)) { in sk_isdir()
|
/third_party/toybox/toys/pending/ |
H A D | more.c | 68 static int more_directory(char *path, struct stat *st) in more_directory() 70 if (!stat(path, st) && S_ISDIR(st->st_mode)) { in more_directory() 79 struct stat st; in do_cat_operation() 92 struct stat st; in more_main()
|
/third_party/curl/docs/examples/ |
H A D | httpput.c | 30 #include <sys/stat.h> 66 struct stat file_info; in main() 78 stat(file, &file_info); in main()
|
/third_party/libunwind/libunwind/src/ |
H A D | os-linux.c | 28 #include <sys/stat.h> 43 struct stat st; in tdep_get_elf_image() 70 if (!stat(root, &st) && S_ISDIR(st.st_mode)) in tdep_get_elf_image()
|
/third_party/ltp/lib/ |
H A D | get_path.c | 39 #include <sys/stat.h> 45 struct stat st; in file_exist() 47 if (!access(path, R_OK) && !stat(path, &st) && S_ISREG(st.st_mode)) in file_exist()
|
/third_party/node/test/parallel/ |
H A D | test-stdout-to-file.js | 31 const stat = fs.statSync(tmpFile); 33 console.log(`${tmpFile} has ${stat.size} bytes`); 35 assert.strictEqual(size, stat.size);
|
/third_party/musl/src/stat/ |
H A D | fchmodat.c | 1 #include <sys/stat.h> 18 struct stat st; in fchmodat() 34 ret = stat(proc, &st); in fchmodat()
|
/third_party/ltp/testcases/kernel/syscalls/chmod/ |
H A D | chmod07.c | 24 #include <sys/stat.h> 40 struct stat stat_buf; in test_chmod() 52 if (stat(TESTFILE, &stat_buf) == -1) { in test_chmod() 53 tst_brk(TFAIL | TTERRNO, "stat failed"); in test_chmod()
|
/third_party/ltp/testcases/kernel/syscalls/rename/ |
H A D | rename01.c | 24 static struct stat old_file_st, old_dir_st, new_file_st, new_dir_st; 62 TST_EXP_FAIL(stat(old_file_name, &old_file_st), in run() 64 "stat(%s, &old_file_st)", in run() 66 TST_EXP_FAIL(stat(old_dir_name, &old_dir_st), in run() 68 "stat(%s, &old_dir_st)", in run()
|
/third_party/ltp/testcases/kernel/syscalls/getcwd/ |
H A D | getcwd02.c | 19 #include <sys/stat.h> 37 struct stat sb; in dir_exists() 39 if (!stat(dirpath, &sb) && S_ISDIR(sb.st_mode)) in dir_exists()
|