Home
last modified time | relevance | path

Searched refs:pipefd (Results 1 – 14 of 14) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/android/
H A Dcloexec-pipe2.cpp18 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 Dcloexec-pipe.cpp3 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 Dsyscall.cpp8 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 Dsyscall.h19 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 DFDReaderUnix.cpp19 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 DFDReader.h16 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 Dcloexec-pipe2.rst15 pipe2(pipefd, O_NONBLOCK);
21 pipe2(pipefd, O_NONBLOCK | O_CLOEXEC);
H A Dcloexec-pipe.rst15 pipe(pipefd);
21 pipe2(pipefd, O_CLOEXEC);
/llvm-project-15.0.7/lldb/unittests/Host/posix/
H A DTerminalTest.cpp43 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 DDirectoryWatcher-linux.cpp46 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 Dmsan_test.cpp783 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 Dtsan_interceptors_posix.cpp1800 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 Dtsan_interceptors_posix.cpp1800 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 Dmsan_interceptors.cpp760 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()