Searched refs:pipefd (Results 1 - 25 of 37) 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]);
H A Dpoll_posix.h9 int usbi_pipe(int pipefd[2]);
H A Dpoll_windows.h93 int usbi_pipe(int pipefd[2]);
/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/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];
H A Dtests.h142 void pipe_maxfd(int pipefd[2]);
/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/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/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/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/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/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...]
/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/toybox/toys/pending/
H A Dtar.c287 int pipefd[2]; local
290 xpipe(pipefd);
298 xclose(pipefd[1]); /* Close unused write*/
299 dup2(pipefd[0], 0);
303 xclose(pipefd[0]); /* Close unused read end */
304 dup2(pipefd[1], tar_hdl->src_fd); //write to pipe
318 int pipefd[2], status = 0; local
322 if (pipe(pipefd) == -1) error_exit("pipe");
346 xclose(pipefd[1]); // Close unused write
347 dup2(pipefd[
510 int pipefd[2]; local
[all...]
/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/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/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/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/ppp/pppd/
H A Dmain.c798 int pipefd[2]; local
802 if (pipe(pipefd) == -1)
803 pipefd[0] = pipefd[1] = -1;
830 close(pipefd[1]);
831 complete_read(pipefd[0], numbuf, 1);
832 close(pipefd[0]);
1591 int fd, pipefd[2]; local
1602 if (pipe(pipefd) == -1)
1603 pipefd[
[all...]
/external/kernel-headers/original/uapi/linux/
H A Dauto_dev-ioctl.h49 __s32 pipefd; member in struct:args_setpipefd

Completed in 2365 milliseconds

12