Home
last modified time | relevance | path

Searched refs:O_CLOEXEC (Results 1 – 18 of 18) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/android/
H A Dcloexec-open.cpp6 #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 Dcloexec-pipe2.cpp5 #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 Dcloexec-open.rst7 ``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 Dcloexec-pipe2.rst6 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 Dcloexec-pipe.rst7 suggested replacement. The check also adds the O_CLOEXEC flag that marks the file descriptor to
21 pipe2(pipefd, O_CLOEXEC);
H A Dcloexec-creat.rst16 int fd = open(path, O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC, mode);
/llvm-project-15.0.7/lldb/source/Host/posix/
H A DPipePosix.cpp82 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 Dfcntl-macros.h13 #define O_CLOEXEC 02000000 macro
/llvm-project-15.0.7/libc/src/__support/File/
H A Dlinux_dir.cpp20 int open_flags = O_RDONLY | O_DIRECTORY | O_CLOEXEC; in platform_opendir()
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_posix.cpp356 #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 DPseudoTerminal.cpp140 if (llvm::Error Err = OpenFirstAvailablePrimary(O_RDWR | O_CLOEXEC)) in Fork()
H A DProcessLaunchInfo.cpp220 open_flags |= O_CLOEXEC; in SetUpPtyRedirection()
H A DFileSystem.cpp419 open_flags |= O_CLOEXEC; in GetOpenFlags()
/llvm-project-15.0.7/compiler-rt/lib/xray/
H A Dxray_x86_64.cpp50 int Fd = open(Filename, O_RDONLY | O_CLOEXEC); in readValueFromFile()
/llvm-project-15.0.7/lldb/test/API/functionalities/postmortem/FreeBSDKernel/tools/
H A Dlibfbsdvmcore-hacks.patch21 - 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 DDirectoryWatcher-linux.cpp77 if (pipe2(InotifyPollingStopperFDs, O_CLOEXEC) == -1) in create()
/llvm-project-15.0.7/llvm/lib/Support/Unix/
H A DPath.inc1005 #ifdef O_CLOEXEC
1007 Result |= O_CLOEXEC;
1025 #ifndef O_CLOEXEC
/llvm-project-15.0.7/libcxx/src/filesystem/
H A Doperations.cpp1414 const int options = O_CLOEXEC | O_RDONLY | O_DIRECTORY | O_NOFOLLOW; in remove_all_impl()