Home
last modified time | relevance | path

Searched refs:st_mode (Results 1 – 25 of 36) sorted by relevance

12

/llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/Posix/
H A Dlstat64.cpp13 assert(S_ISLNK(st.st_mode)); in main()
15 assert(S_ISCHR(st.st_mode)); in main()
H A Dlstat.cpp12 assert(S_ISLNK(st.st_mode)); in main()
14 assert(S_ISCHR(st.st_mode)); in main()
H A Ddevname.cpp14 assert((name = devname(st.st_rdev, S_ISCHR(st.st_mode) ? S_IFCHR : S_IFBLK))); in main()
H A Ddevname_r.cpp18 type = S_ISCHR(st.st_mode) ? S_IFCHR : S_IFBLK; in main()
/llvm-project-15.0.7/compiler-rt/test/profile/
H A Dinstrprof-set-dir-mode.c38 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 Dposix_compat.h180 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 Doperations.cpp538 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 DTestGdbRemotePlatformFile.py21 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 Dfstat.cpp11 if (S_ISBLK(st.st_mode)) in main()
H A Dfstat64.cpp12 if (S_ISBLK(st.st_mode)) in main()
H A Dstat64.cpp13 assert(S_ISCHR(st.st_mode)); in main()
H A Dfstatat64.cpp15 assert(S_ISCHR(st.st_mode)); in main()
/llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/NetBSD/
H A Dstrmode.cpp15 strmode(st.st_mode, modep); in main()
/llvm-project-15.0.7/compiler-rt/test/tsan/Darwin/
H A Dvariadic-open.cpp16 fprintf(stderr, "permissions = 0%o\n", info.st_mode & ~S_IFMT); in main()
/llvm-project-15.0.7/compiler-rt/lib/fuzzer/
H A DFuzzerIOPosix.cpp31 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 Dget.py21 mode = os.stat(path).st_mode
/llvm-project-15.0.7/llvm/utils/gn/build/
H A Dwrite_cmake_config.py116 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 Dutils.py32 mode = os.stat(fpath).st_mode
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_linux.cpp285 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 Dsanitizer_mac.cpp394 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 DPath.inc469 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 Dfile.cpp145 mayPosition_ = S_ISREG(buf.st_mode); in Open()
/llvm-project-15.0.7/clang/utils/
H A Dcreduce-clang-crash.py65 os.chmod(filename, os.stat(filename).st_mode | stat.S_IEXEC)
/llvm-project-15.0.7/compiler-rt/test/BlocksRuntime/
H A Dtestfilerunner.m764 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 Dgtest-port.h1996 return (_S_IFDIR & st.st_mode) != 0;
2012 inline bool IsDir(const StatStruct& st) { return S_ISDIR(st.st_mode); }

12