Searched defs:pipefd (Results 1 - 25 of 32) sorted by relevance

12

/external/libusb/libusb/os/
H A Dpoll_posix.c30 int usbi_pipe(int pipefd[2]) argument
32 int ret = pipe(pipefd);
36 ret = fcntl(pipefd[1], F_GETFL);
41 ret = fcntl(pipefd[1], F_SETFL, ret | O_NONBLOCK);
50 usbi_close(pipefd[0]);
51 usbi_close(pipefd[1]);
/external/strace/tests/
H A Dpipe_maxfd.c46 pipe_maxfd(int pipefd[2]) argument
58 if (pipe(pipefd))
64 move_fd(&pipefd[1], &max_fd);
66 move_fd(&pipefd[0], &max_fd);
H A Dattach-f-p.c53 typedef int pipefd[2]; typedef
54 static pipefd pipes[N];
/external/strace/tests-m32/
H A Dpipe_maxfd.c46 pipe_maxfd(int pipefd[2]) argument
58 if (pipe(pipefd))
64 move_fd(&pipefd[1], &max_fd);
66 move_fd(&pipefd[0], &max_fd);
H A Dattach-f-p.c53 typedef int pipefd[2]; typedef
54 static pipefd pipes[N];
/external/strace/tests-mx32/
H A Dpipe_maxfd.c46 pipe_maxfd(int pipefd[2]) argument
58 if (pipe(pipefd))
64 move_fd(&pipefd[1], &max_fd);
66 move_fd(&pipefd[0], &max_fd);
H A Dattach-f-p.c53 typedef int pipefd[2]; typedef
54 static pipefd pipes[N];
/external/google-breakpad/src/client/linux/minidump_writer/
H A Dlinux_dumper_unittest_helper.cc59 int pipefd = *static_cast<int *>(data); local
63 if (write(pipefd, &byte, sizeof(byte)) != sizeof(byte)) {
79 int pipefd = atoi(argv[1]); local
90 pthread_create(&threads[i], &thread_attributes, &thread_function, &pipefd);
92 thread_function(&pipefd);
/external/ltp/testcases/kernel/syscalls/pipe/
H A Dpipe08.c67 int pipefd[2]; /* fds for pipe read/write */ local
81 TEST(pipe(pipefd));
88 if ((close_stat = close(pipefd[0])) == -1) {
100 written = write(pipefd[1], wrbuf, length);
H A Dpipe09.c79 int pipefd[2]; /* fds for pipe read/write */ local
93 TEST(pipe(pipefd));
105 if (close(pipefd[0]) != 0) {
106 tst_resm(TWARN, "pipefd[0] close failed, "
112 if (write(pipefd[1], "A", 1) != 1) {
133 if (close(pipefd[0]) != 0) {
134 perror("pipefd[0] close failed");
139 if (write(pipefd[1], "B", 1) != 1) {
156 if (close(pipefd[1]) != 0) {
158 "pipefd[
[all...]
/external/ltp/testcases/kernel/containers/pidns/
H A Dpidns12.c52 int pipefd[2]; variable
87 close(pipefd[0]);
99 if (write(pipefd[1], "c:go\0", 5) != 5) {
106 close(pipefd[1]);
134 if (pipe(pipefd) == -1) {
144 close(pipefd[1]);
147 read(pipefd[0], buf, 5);
166 close(pipefd[0]);
/external/ltp/testcases/kernel/syscalls/setrlimit/
H A Dsetrlimit01.c125 int pipefd[2]; local
127 if (pipe(pipefd) == -1)
142 close(pipefd[0]); /* close unused read end */
154 if (write(pipefd[1], &bytes, sizeof(bytes))
158 close(pipefd[1]); /* EOF */
180 close(pipefd[1]); /* close unused write end */
181 if (read(pipefd[0], &bytes, sizeof(bytes)) < sizeof(bytes))
184 close(pipefd[0]);
/external/libchrome/sandbox/linux/seccomp-bpf-helpers/
H A Dbaseline_policy_unittest.cc75 int pipefd[2]; local
76 int sys_ret = pipe(pipefd);
78 TestPipeOrSocketPair(base::ScopedFD(pipefd[0]), base::ScopedFD(pipefd[1]));
/external/ltp/testcases/kernel/syscalls/sendmsg/
H A Dsendmsg02.c62 static void client(int id, int pipefd[]) argument
71 close(pipefd[0]);
92 write(pipefd[1], &fd, 1);
97 close(pipefd[1]);
100 static void server(int id, int pipefd[]) argument
105 close(pipefd[1]);
115 read(pipefd[0], &fd, 1);
119 close(pipefd[0]);
124 int i, status, pipefd[2]; local
140 if (pipe(pipefd) <
[all...]
/external/dnsmasq/src/
H A Dhelper.c56 int i, pipefd[2]; local
61 if (pipe(pipefd) == -1 || !fix_fd(pipefd[1]) || (pid = fork()) == -1)
69 close(pipefd[0]); /* close reader side */
70 return pipefd[1];
106 max_fd != STDIN_FILENO && max_fd != pipefd[0] && max_fd != event_fd)
118 if (!read_write(pipefd[0], (unsigned char *)&data, sizeof(data), 1))
142 if (!read_write(pipefd[0], buf, data.clid_len, 1))
158 if (!read_write(pipefd[0], buf,
275 close(pipefd[
[all...]
H A Ddnsmasq.c78 int piperead, pipefd[2], err_pipe[2]; local
274 safe_pipe(pipefd, 1);
276 piperead = pipefd[0];
277 pipewrite = pipefd[1];
/external/ltp/testcases/kernel/logging/kmsg/
H A Dkmsg01.c202 int pipefd[2]; local
205 if (pipe(pipefd) != 0)
215 close(pipefd[0]);
217 if (write(pipefd[1], "", 1) == -1)
228 close(pipefd[1]);
231 SAFE_CLOSE(cleanup, pipefd[1]);
235 TEST(timed_read(pipefd[0], timeout_sec));
237 SAFE_CLOSE(cleanup, pipefd[0]);
/external/squashfs-tools/squashfs-tools/
H A Dpseudo.c221 int res, pipefd[2]; local
223 res = pipe(pipefd);
236 close(pipefd[0]);
238 res = dup(pipefd[1]);
246 close(pipefd[1]);
247 return pipefd[0];
250 close(pipefd[0]);
251 close(pipefd[1]);
/external/kernel-headers/original/uapi/linux/
H A Dauto_dev-ioctl.h49 __s32 pipefd; member in struct:args_setpipefd
/external/libpcap/
H A Dpcap-canusb-linux.c292 int pipefd[2]; local
294 if (pipe(pipefd) == -1)
297 this->rdpipe = pipefd[0];
298 this->wrpipe = pipefd[1];
/external/linux-kselftest/tools/testing/selftests/vm/
H A Duserfaultfd.c80 static int uffd, finished, *pipefd; variable
257 pollfd[1].fd = pipefd[cpu*2];
268 fprintf(stderr, "read pipefd error\n"),
395 if (write(pipefd[cpu*2+1], &c, 1) != 1) {
396 fprintf(stderr, "pipefd write error\n");
478 pipefd = malloc(sizeof(int) * nr_cpus * 2);
479 if (!pipefd) {
480 perror("pipefd");
484 if (pipe2(&pipefd[cpu*2], O_CLOEXEC | O_NONBLOCK)) {
/external/minijail/
H A Dsyscall_filter_unittest.cc897 int pipefd[2]; local
898 if (pipe(pipefd) == -1) {
899 pwarn("pipe(pipefd) failed");
907 ret = write(pipefd[1], &policy[i], len - i);
909 close(pipefd[0]);
910 close(pipefd[1]);
917 close(pipefd[0]);
918 close(pipefd[1]);
929 close(pipefd[1]);
930 return fdopen(pipefd[
[all...]
/external/autotest/client/site_tests/security_SeccompSyscallFilters/src/
H A Dseccomp_bpf_tests.c842 int pipefd[2]; local
855 ASSERT_EQ(0, pipe(pipefd));
862 close(pipefd[0]);
863 tracer(_metadata, tracee, poke_addr, pipefd[1]);
866 close(pipefd[1]);
869 long ret = read(pipefd[0], &sync, 1);
870 close(pipefd[0]);
/external/linux-kselftest/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c1090 int pipefd[2]; local
1095 ASSERT_EQ(0, pipe(pipefd));
1102 close(pipefd[0]);
1103 start_tracer(_metadata, pipefd[1], tracee, func, args,
1107 close(pipefd[1]);
1109 read(pipefd[0], &sync, 1);
1110 close(pipefd[0]);
2244 int pipefd[2]; local
2277 ASSERT_EQ(0, pipe(pipefd));
2290 EXPECT_EQ(0, close(pipefd[
[all...]
/external/seccomp-tests/linux/
H A Dseccomp_bpf.c1085 int pipefd[2]; local
1090 ASSERT_EQ(0, pipe(pipefd));
1097 close(pipefd[0]);
1098 tracer(_metadata, pipefd[1], tracee, func, args);
1101 close(pipefd[1]);
1103 read(pipefd[0], &sync, 1);
1104 close(pipefd[0]);
2068 int pipefd[2]; local
2101 ASSERT_EQ(0, pipe(pipefd));
2114 EXPECT_EQ(0, close(pipefd[
[all...]

Completed in 730 milliseconds

12