| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/android/ |
| H A D | cloexec-pipe2.cpp | 18 int pipefd[2]; in warning() local 19 pipe2(pipefd, O_NONBLOCK); in warning() 28 int pipefd[2]; in warningInMacroArugment() local 29 pipe2(pipefd, 3); in warningInMacroArugment() 37 pipe2(pipefd, flag); in warningInMacroArugment() 45 int pipefd[2]; in noWarning() local 46 pipe2(pipefd, O_NONBLOCK); in noWarning() 53 int pipefd[2]; in noWarning() local 54 pipe2(pipefd, O_CLOEXEC); in noWarning() 64 int pipefd[2]; in noWarning() local [all …]
|
| H A D | cloexec-pipe.cpp | 3 extern "C" int pipe(int pipefd[2]); 6 int pipefd[2]; in warning() local 7 pipe(pipefd); in warning() 13 int pipe(int pipefd[2]); 15 int pipefd[2]; in noWarningInNamespace() local 16 pipe(pipefd); in noWarningInNamespace() 22 int pipe(int pipefd[2]); 24 int pipefd[2]; in noWarningForMemberFunction() local 25 pipe(pipefd); in noWarningForMemberFunction()
|
| /llvm-project-15.0.7/compiler-rt/test/tsan/Linux/ |
| H A D | syscall.cpp | 8 int pipefd[2]; variable 13 mywrite(pipefd[1], buf, sizeof(buf)); in thr() 19 if (mypipe(pipefd)) in main() 21 mywrite(pipefd[1], buf, sizeof(buf)); in main() 24 myread(pipefd[0], buf, sizeof(buf)); in main()
|
| H A D | syscall.h | 19 int mypipe(int pipefd[2]) { in mypipe() 20 __sanitizer_syscall_pre_pipe(pipefd); in mypipe() 21 int res = syscall(SYS_pipe2, pipefd, 0); in mypipe() 22 __sanitizer_syscall_post_pipe(res, pipefd); in mypipe()
|
| /llvm-project-15.0.7/libc/utils/testutils/ |
| H A D | FDReaderUnix.cpp | 19 if (::pipe(pipefd)) { in FDReader() 26 ::close(pipefd[0]); in ~FDReader() 27 ::close(pipefd[1]); in ~FDReader() 32 ::close(pipefd[1]); in match_written() 40 for (int BytesRead; (BytesRead = ::read(pipefd[0], Buffer, ChunkSize));) { in match_written()
|
| H A D | FDReader.h | 16 int pipefd[2]; variable 22 int get_write_fd() { return pipefd[1]; } in get_write_fd()
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/android/ |
| H A D | cloexec-pipe2.rst | 15 pipe2(pipefd, O_NONBLOCK); 21 pipe2(pipefd, O_NONBLOCK | O_CLOEXEC);
|
| H A D | cloexec-pipe.rst | 15 pipe(pipefd); 21 pipe2(pipefd, O_CLOEXEC);
|
| /llvm-project-15.0.7/lldb/unittests/Host/posix/ |
| H A D | TerminalTest.cpp | 43 int pipefd[2]; in TEST_F() local 44 ASSERT_EQ(pipe(pipefd), 0); in TEST_F() 45 Terminal pipeterm{pipefd[0]}; in TEST_F() 47 close(pipefd[0]); in TEST_F() 48 close(pipefd[1]); in TEST_F()
|
| /llvm-project-15.0.7/clang/lib/DirectoryWatcher/linux/ |
| H A D | DirectoryWatcher-linux.cpp | 46 SemaphorePipe(int pipefd[2]) in SemaphorePipe() 47 : FDRead(pipefd[0]), FDWrite(pipefd[1]), OwnsFDs(true) {} in SemaphorePipe()
|
| /llvm-project-15.0.7/compiler-rt/lib/msan/tests/ |
| H A D | msan_test.cpp | 783 close(pipefd[0]); in TEST() 784 close(pipefd[1]); in TEST() 793 close(pipefd[0]); in TEST() 794 close(pipefd[1]); in TEST() 817 fds[0].fd = pipefd[0]; in TEST() 826 close(pipefd[0]); in TEST() 827 close(pipefd[1]); in TEST() 852 close(pipefd[0]); in TEST() 853 close(pipefd[1]); in TEST() 869 close(pipefd[0]); in TEST() [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/tsan/rtl-old/ |
| H A D | tsan_interceptors_posix.cpp | 1800 TSAN_INTERCEPTOR(int, pipe, int *pipefd) { in TSAN_INTERCEPTOR() argument 1801 SCOPED_TSAN_INTERCEPTOR(pipe, pipefd); in TSAN_INTERCEPTOR() 1802 int res = REAL(pipe)(pipefd); in TSAN_INTERCEPTOR() 1803 if (res == 0 && pipefd[0] >= 0 && pipefd[1] >= 0) in TSAN_INTERCEPTOR() 1804 FdPipeCreate(thr, pc, pipefd[0], pipefd[1]); in TSAN_INTERCEPTOR() 1809 TSAN_INTERCEPTOR(int, pipe2, int *pipefd, int flags) { in TSAN_INTERCEPTOR() argument 1810 SCOPED_TSAN_INTERCEPTOR(pipe2, pipefd, flags); in TSAN_INTERCEPTOR() 1811 int res = REAL(pipe2)(pipefd, flags); in TSAN_INTERCEPTOR() 1812 if (res == 0 && pipefd[0] >= 0 && pipefd[1] >= 0) in TSAN_INTERCEPTOR() 1813 FdPipeCreate(thr, pc, pipefd[0], pipefd[1]); in TSAN_INTERCEPTOR()
|
| /llvm-project-15.0.7/compiler-rt/lib/tsan/rtl/ |
| H A D | tsan_interceptors_posix.cpp | 1800 TSAN_INTERCEPTOR(int, pipe, int *pipefd) { in TSAN_INTERCEPTOR() argument 1801 SCOPED_TSAN_INTERCEPTOR(pipe, pipefd); in TSAN_INTERCEPTOR() 1802 int res = REAL(pipe)(pipefd); in TSAN_INTERCEPTOR() 1803 if (res == 0 && pipefd[0] >= 0 && pipefd[1] >= 0) in TSAN_INTERCEPTOR() 1804 FdPipeCreate(thr, pc, pipefd[0], pipefd[1]); in TSAN_INTERCEPTOR() 1809 TSAN_INTERCEPTOR(int, pipe2, int *pipefd, int flags) { in TSAN_INTERCEPTOR() argument 1810 SCOPED_TSAN_INTERCEPTOR(pipe2, pipefd, flags); in TSAN_INTERCEPTOR() 1811 int res = REAL(pipe2)(pipefd, flags); in TSAN_INTERCEPTOR() 1812 if (res == 0 && pipefd[0] >= 0 && pipefd[1] >= 0) in TSAN_INTERCEPTOR() 1813 FdPipeCreate(thr, pc, pipefd[0], pipefd[1]); in TSAN_INTERCEPTOR()
|
| /llvm-project-15.0.7/compiler-rt/lib/msan/ |
| H A D | msan_interceptors.cpp | 760 INTERCEPTOR(int, pipe, int pipefd[2]) { in INTERCEPTOR() 762 return REAL(pipe)(pipefd); in INTERCEPTOR() 764 int res = REAL(pipe)(pipefd); in INTERCEPTOR() 766 __msan_unpoison(pipefd, sizeof(int[2])); in INTERCEPTOR() 770 INTERCEPTOR(int, pipe2, int pipefd[2], int flags) { in INTERCEPTOR() 772 int res = REAL(pipe2)(pipefd, flags); in INTERCEPTOR() 774 __msan_unpoison(pipefd, sizeof(int[2])); in INTERCEPTOR()
|