| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/android/ |
| H A D | cloexec-open.cpp | 6 #define O_CLOEXEC __O_CLOEXEC macro 122 open("filename", O_CLOEXEC); in e() 124 TEMP_FAILURE_RETRY(open("filename", O_CLOEXEC)); in e() 126 open("filename", O_RDWR | O_CLOEXEC); in e() 130 open("filename", O_RDWR | O_CLOEXEC | O_EXCL); in e() 134 open64("filename", O_CLOEXEC); in e() 136 TEMP_FAILURE_RETRY(open64("filename", O_CLOEXEC)); in e() 138 open64("filename", O_RDWR | O_CLOEXEC); in e() 142 open64("filename", O_RDWR | O_CLOEXEC | O_EXCL); in e() 146 openat(0, "filename", O_CLOEXEC); in e() [all …]
|
| H A D | cloexec-pipe2.cpp | 5 #define O_CLOEXEC __O_CLOEXEC macro 54 pipe2(pipefd, O_CLOEXEC); in noWarning() 55 TEMP_FAILURE_RETRY(pipe2(pipefd, O_CLOEXEC)); in noWarning() 56 pipe2(pipefd, O_NONBLOCK | O_CLOEXEC); in noWarning() 57 TEMP_FAILURE_RETRY(pipe2(pipefd, O_NONBLOCK | O_CLOEXEC)); in noWarning()
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/android/ |
| H A D | cloexec-open.rst | 7 ``O_CLOEXEC`` flag. Without that flag, an opened sensitive file would remain 10 ``open64()`` should include ``O_CLOEXEC`` in their flags argument. 22 open("filename", O_RDWR | O_CLOEXEC); 23 open64("filename", O_RDWR | O_CLOEXEC); 24 openat(0, "filename", O_RDWR | O_CLOEXEC);
|
| H A D | cloexec-pipe2.rst | 6 This check ensures that pipe2() is called with the O_CLOEXEC flag. The check also 7 adds the O_CLOEXEC flag that marks the file descriptor to be closed in child processes. 21 pipe2(pipefd, O_NONBLOCK | O_CLOEXEC);
|
| H A D | cloexec-pipe.rst | 7 suggested replacement. The check also adds the O_CLOEXEC flag that marks the file descriptor to 21 pipe2(pipefd, O_CLOEXEC);
|
| H A D | cloexec-creat.rst | 16 int fd = open(path, O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC, mode);
|
| /llvm-project-15.0.7/lldb/source/Host/posix/ |
| H A D | PipePosix.cpp | 82 if (::pipe2(m_fds, (child_processes_inherit) ? 0 : O_CLOEXEC) == 0) in CreateNew() 148 flags |= O_CLOEXEC; in OpenAsReader() 169 flags |= O_CLOEXEC; in OpenAsWriterWithTimeout()
|
| /llvm-project-15.0.7/libc/include/llvm-libc-macros/linux/ |
| H A D | fcntl-macros.h | 13 #define O_CLOEXEC 02000000 macro
|
| /llvm-project-15.0.7/libc/src/__support/File/ |
| H A D | linux_dir.cpp | 20 int open_flags = O_RDONLY | O_DIRECTORY | O_CLOEXEC; in platform_opendir()
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_posix.cpp | 356 #if defined(O_CLOEXEC) in GetNamedMappingFd() 357 o_cloexec = O_CLOEXEC; in GetNamedMappingFd() 363 #if !defined(O_CLOEXEC) in GetNamedMappingFd()
|
| /llvm-project-15.0.7/lldb/source/Host/common/ |
| H A D | PseudoTerminal.cpp | 140 if (llvm::Error Err = OpenFirstAvailablePrimary(O_RDWR | O_CLOEXEC)) in Fork()
|
| H A D | ProcessLaunchInfo.cpp | 220 open_flags |= O_CLOEXEC; in SetUpPtyRedirection()
|
| H A D | FileSystem.cpp | 419 open_flags |= O_CLOEXEC; in GetOpenFlags()
|
| /llvm-project-15.0.7/compiler-rt/lib/xray/ |
| H A D | xray_x86_64.cpp | 50 int Fd = open(Filename, O_RDONLY | O_CLOEXEC); in readValueFromFile()
|
| /llvm-project-15.0.7/lldb/test/API/functionalities/postmortem/FreeBSDKernel/tools/ |
| H A D | libfbsdvmcore-hacks.patch | 21 - if ((kd->pmfd = open(mf, O_RDONLY | O_CLOEXEC, 0)) < 0) { 22 + if ((kd->pmfd = open(mf, O_RDWR | O_CLOEXEC, 0)) < 0) {
|
| /llvm-project-15.0.7/clang/lib/DirectoryWatcher/linux/ |
| H A D | DirectoryWatcher-linux.cpp | 77 if (pipe2(InotifyPollingStopperFDs, O_CLOEXEC) == -1) in create()
|
| /llvm-project-15.0.7/llvm/lib/Support/Unix/ |
| H A D | Path.inc | 1005 #ifdef O_CLOEXEC 1007 Result |= O_CLOEXEC; 1025 #ifndef O_CLOEXEC
|
| /llvm-project-15.0.7/libcxx/src/filesystem/ |
| H A D | operations.cpp | 1414 const int options = O_CLOEXEC | O_RDONLY | O_DIRECTORY | O_NOFOLLOW; in remove_all_impl()
|