Lines Matching refs:fds
16 static int fds[2]; variable
24 SAFE_PIPE(fds); in run()
26 SAFE_WRITE(SAFE_WRITE_ALL, fds[1], wrbuf, sizeof(wrbuf)); in run()
27 SAFE_CLOSE(fds[1]); in run()
29 SAFE_READ(0, fds[0], rdbuf, sizeof(wrbuf)); in run()
31 TST_EXP_VAL(SAFE_READ(0, fds[0], rdbuf, 1), 0); in run()
32 SAFE_CLOSE(fds[0]); in run()
37 if (fds[0] > 0) in cleanup()
38 SAFE_CLOSE(fds[0]); in cleanup()
39 if (fds[1] > 0) in cleanup()
40 SAFE_CLOSE(fds[1]); in cleanup()