Lines Matching refs:fds
19 static int fds[2];
32 SAFE_FCNTL(fds[1], F_SETFL, flags | O_NONBLOCK);
33 ret = write(fds[1], "x", 1);
45 SAFE_FCNTL(fds[1], F_SETFL, flags & ~O_NONBLOCK);
46 SAFE_WRITE(SAFE_WRITE_ALL, fds[1], "x", 1);
63 SAFE_PIPE2(fds, O_NONBLOCK);
66 flags = SAFE_FCNTL(fds[1], F_GETFL);
74 SAFE_FCNTL(fds[0], F_SETPIPE_SZ, 0);
80 pipe_size = SAFE_FCNTL(fds[1], F_GETPIPE_SZ);
87 SAFE_WRITE(SAFE_WRITE_ALL, fds[1], write_buffer, pipe_size);
93 if (fds[0] > 0)
94 SAFE_CLOSE(fds[0]);
95 if (fds[1] > 0)
96 SAFE_CLOSE(fds[1]);