Searched refs:pipe_fds (Results 1 – 3 of 3) sorted by relevance
| /llvm-project-15.0.7/libc/utils/testutils/ |
| H A D | ExecuteFunctionUnix.cpp | 40 int pipe_fds[2]; in invoke_in_subprocess() local 41 if (::pipe(pipe_fds) == -1) in invoke_in_subprocess() 55 ::close(pipe_fds[1]); in invoke_in_subprocess() 58 pipe_fds[0], 0, 0 in invoke_in_subprocess()
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/tests/ |
| H A D | sanitizer_linux_test.cpp | 244 int pipe_fds[2]; in TEST() local 245 ASSERT_EQ(0, pipe(pipe_fds)); in TEST() 253 /* stdin */ kInvalidFd, /* stdout */ pipe_fds[1]); in TEST() 265 while (ReadFromFile(pipe_fds[0], ptr, 256, &bytes_read)) { in TEST() 275 internal_close(pipe_fds[0]); in TEST()
|
| /llvm-project-15.0.7/compiler-rt/test/dfsan/ |
| H A D | custom.cpp | 1238 int pipe_fds[2]; in test_epoll_wait() local 1239 int ret = pipe(pipe_fds); in test_epoll_wait() 1247 event.data.fd = pipe_fds[0]; in test_epoll_wait() 1248 ret = epoll_ctl(epfd, EPOLL_CTL_ADD, pipe_fds[0], &event); in test_epoll_wait() 1264 write(pipe_fds[1], "x", 1); in test_epoll_wait() 1268 assert(event.data.fd == pipe_fds[0]); in test_epoll_wait() 1275 close(pipe_fds[0]); in test_epoll_wait() 1276 close(pipe_fds[1]); in test_epoll_wait()
|