| /llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/Posix/ |
| H A D | lstat64.cpp | 13 assert(S_ISLNK(st.st_mode)); in main() 15 assert(S_ISCHR(st.st_mode)); in main()
|
| H A D | lstat.cpp | 12 assert(S_ISLNK(st.st_mode)); in main() 14 assert(S_ISCHR(st.st_mode)); in main()
|
| H A D | devname.cpp | 14 assert((name = devname(st.st_rdev, S_ISCHR(st.st_mode) ? S_IFCHR : S_IFBLK))); in main()
|
| H A D | devname_r.cpp | 18 type = S_ISCHR(st.st_mode) ? S_IFCHR : S_IFBLK; in main()
|
| /llvm-project-15.0.7/compiler-rt/test/profile/ |
| H A D | instrprof-set-dir-mode.c | 38 else if (((DirSt.st_mode & ~S_ISGID) & 0xFFFF) != Expected) { in test() 40 DirSt.st_mode, Dir); in test()
|
| /llvm-project-15.0.7/libcxx/src/filesystem/ |
| H A D | posix_compat.h | 180 buf->st_mode = 0555; // Read-only in stat_handle() 182 buf->st_mode |= 0222; // Write in stat_handle() 184 buf->st_mode |= _S_IFDIR; in stat_handle() 186 buf->st_mode |= _S_IFREG; in stat_handle() 194 buf->st_mode = (buf->st_mode & ~_S_IFMT) | _S_IFLNK; in stat_handle()
|
| H A D | operations.cpp | 538 return static_cast<perms>(st.st_mode) & perms::mask; in posix_get_perms() 555 auto const mode = path_stat.st_mode; in create_file_status() 612 if (detail::fchmod(fd.fd, st.st_mode) == -1) { in posix_fchmod() 960 &to, m_ec, to_open_flags, from_stat.st_mode); in __copy_file() 1062 if (detail::mkdir(p.c_str(), attr_stat.st_mode) == 0) in __create_directory()
|
| /llvm-project-15.0.7/lldb/test/API/tools/lldb-server/ |
| H A D | TestGdbRemotePlatformFile.py | 21 st_mode: int 269 self.assertEqual(gdb_stat.st_mode, uint32_trunc(sys_stat.st_mode)) 408 self.assertEqual(os.fstat(temp_file.fileno()).st_mode & 0o7777,
|
| /llvm-project-15.0.7/compiler-rt/test/msan/ |
| H A D | fstat.cpp | 11 if (S_ISBLK(st.st_mode)) in main()
|
| H A D | fstat64.cpp | 12 if (S_ISBLK(st.st_mode)) in main()
|
| H A D | stat64.cpp | 13 assert(S_ISCHR(st.st_mode)); in main()
|
| H A D | fstatat64.cpp | 15 assert(S_ISCHR(st.st_mode)); in main()
|
| /llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/NetBSD/ |
| H A D | strmode.cpp | 15 strmode(st.st_mode, modep); in main()
|
| /llvm-project-15.0.7/compiler-rt/test/tsan/Darwin/ |
| H A D | variadic-open.cpp | 16 fprintf(stderr, "permissions = 0%o\n", info.st_mode & ~S_IFMT); in main()
|
| /llvm-project-15.0.7/compiler-rt/lib/fuzzer/ |
| H A D | FuzzerIOPosix.cpp | 31 return S_ISREG(St.st_mode); in IsFile() 38 return S_ISDIR(St.st_mode); in IsDirectory()
|
| /llvm-project-15.0.7/llvm/utils/gn/ |
| H A D | get.py | 21 mode = os.stat(path).st_mode
|
| /llvm-project-15.0.7/llvm/utils/gn/build/ |
| H A D | write_cmake_config.py | 116 os.chmod(args.output, os.stat(args.input).st_mode & 0o777)
|
| /llvm-project-15.0.7/lldb/third_party/Python/module/pexpect-4.6/pexpect/ |
| H A D | utils.py | 32 mode = os.stat(fpath).st_mode
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_linux.cpp | 285 out->st_mode = in->st_mode; in stat64_to_stat() 304 out->st_mode = in->stx_mode; in statx_to_stat() 343 out->st_mode = in->st_mode; in kernel_stat_to_stat() 543 return S_ISREG(st.st_mode); in FileExists() 550 return S_ISDIR(st.st_mode); in DirExists()
|
| H A D | sanitizer_mac.cpp | 394 return S_ISREG(st.st_mode); in FileExists() 401 return S_ISDIR(st.st_mode); in DirExists()
|
| /llvm-project-15.0.7/llvm/lib/Support/Unix/ |
| H A D | Path.inc | 469 if (!S_ISREG(buf.st_mode) && !S_ISDIR(buf.st_mode) && !S_ISLNK(buf.st_mode)) 627 if (!S_ISREG(buf.st_mode)) 744 perms Perms = static_cast<perms>(Status.st_mode) & all_perms; 745 Result = file_status(typeForMode(Status.st_mode), Perms, Status.st_dev, 1092 if (S_ISREG(Stat.st_mode)) {
|
| /llvm-project-15.0.7/flang/runtime/ |
| H A D | file.cpp | 145 mayPosition_ = S_ISREG(buf.st_mode); in Open()
|
| /llvm-project-15.0.7/clang/utils/ |
| H A D | creduce-clang-crash.py | 65 os.chmod(filename, os.stat(filename).st_mode | stat.S_IEXEC)
|
| /llvm-project-15.0.7/compiler-rt/test/BlocksRuntime/ |
| H A D | testfilerunner.m | 764 if (statb.st_mode & S_IFDIR) return true; 772 if (!(statb.st_mode & S_IFREG)) return false; 773 if (statb.st_mode & S_IXUSR) return true;
|
| /llvm-project-15.0.7/llvm/utils/unittest/googletest/include/gtest/internal/ |
| H A D | gtest-port.h | 1996 return (_S_IFDIR & st.st_mode) != 0; 2012 inline bool IsDir(const StatStruct& st) { return S_ISDIR(st.st_mode); }
|