Searched refs:child_pipe (Results 1 – 4 of 4) sorted by relevance
/external/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl19.c | 59 int child_pipe[2]; variable 96 SAFE_PIPE(cleanup, child_pipe); in setup() 133 close(child_pipe[0]); in do_child() 240 if (read(child_pipe[0], l, sizeof(*l)) != sizeof(*l)) { in parent_get() 248 if (write(child_pipe[1], l, sizeof(*l)) != sizeof(*l)) { in child_put() 289 &child_pipe[0], &child_pipe[1], &fd); in main() 303 child_pipe[0], child_pipe[1], fd) < 0) { in main() 318 (void)close(child_pipe[1]); in main()
|
D | fcntl20.c | 55 int child_pipe[2]; variable 98 SAFE_PIPE(NULL, child_pipe); in setup() 130 close(child_pipe[0]); in do_child() 239 if (read(child_pipe[0], l, sizeof(*l)) != sizeof(*l)) { in parent_get() 247 if (write(child_pipe[1], l, sizeof(*l)) != sizeof(*l)) { in child_put() 288 &child_pipe[0], &child_pipe[1], &fd); in main() 302 child_pipe[0], child_pipe[1], fd) < 0) { in main() 317 (void)close(child_pipe[1]); in main()
|
D | fcntl11.c | 55 int child_pipe[2]; variable 96 SAFE_PIPE(cleanup, child_pipe); in setup() 119 close(child_pipe[0]); in do_child() 211 SAFE_READ(cleanup, 1, child_pipe[0], l, sizeof(*l)); in parent_get() 216 SAFE_WRITE(NULL, 1, child_pipe[1], l, sizeof(*l)); in child_put() 250 &parent_pipe[1], &child_pipe[0], &child_pipe[1], &fd); in main() 263 parent_pipe[1], child_pipe[0], in main() 264 child_pipe[1], fd) < 0) in main() 274 SAFE_CLOSE(cleanup, child_pipe[1]); in main()
|
D | fcntl21.c | 54 int child_pipe[2]; variable 94 pipe(child_pipe); in setup() 137 close(child_pipe[0]); in do_child() 247 if (read(child_pipe[0], l, sizeof(*l)) != sizeof(*l)) { in parent_get() 255 if (write(child_pipe[1], l, sizeof(*l)) != sizeof(*l)) { in child_put() 296 &child_pipe[0], &child_pipe[1], &fd); in main() 310 child_pipe[0], child_pipe[1], fd) < 0) { in main() 324 (void)close(child_pipe[1]); in main()
|