Lines Matching full:pfd

186 	int pfd[2];  in test2()  local
191 if (pipe(pfd) < 0) in test2()
211 if (write(pfd[1], "a", 1) < 0) in test2()
221 if (read(pfd[0], &ch, 1) != 1) in test2()
232 close(pfd[0]); in test2()
233 close(pfd[1]); in test2()
257 int pfd[2]; in test3() local
262 if (pipe(pfd) < 0) in test3()
282 if (write(pfd[1], "a", 1) < 0) in test3()
292 if (read(pfd[0], &ch, 1) != 1) in test3()
306 close(pfd[0]); in test3()
307 close(pfd[1]); in test3()
327 int pfd[2]; in test4() local
331 if (pipe(pfd) < 0) in test4()
351 if (write(pfd[1], "a", 1) < 0) in test4()
361 if (read(pfd[0], &ch, 1) != 1) in test4()
382 close(pfd[0]); in test4()
383 close(pfd[1]); in test4()
601 int pfd[2]; in test7() local
606 if (pipe(pfd) < 0) in test7()
626 if (write(pfd[1], "a", 1) < 0) in test7()
636 if (read(pfd[0], &ch, 1) != 1) in test7()
649 close(pfd[0]); in test7()
650 close(pfd[1]); in test7()
673 int pfd[2]; in test8() local
678 if (pipe(pfd) < 0) in test8()
698 if (write(pfd[1], "a", 1) < 0) in test8()
708 if (read(pfd[0], &ch, 1) != 1) in test8()
722 close(pfd[0]); in test8()
723 close(pfd[1]); in test8()
750 int pfd[2]; in test9() local
755 if (pipe(pfd) < 0) in test9()
775 if (write(pfd[1], "a", 1) < 0) in test9()
785 if (read(pfd[0], &ch, 1) != 1) in test9()
798 close(pfd[0]); in test9()
799 close(pfd[1]); in test9()
822 int pfd[2]; in test10() local
826 if (pipe(pfd) < 0) in test10()
850 if (write(pfd[1], "a", 1) < 0) in test10()
860 if (read(pfd[0], &ch, 1) != 1) in test10()
870 close(pfd[0]); in test10()
871 close(pfd[1]); in test10()
975 int pfd[2]; in test12() local
980 if (pipe(pfd) < 0) in test12()
1000 if (write(pfd[1], "a", 1) < 0) in test12()
1011 if (read(pfd[0], &ch, 1) != 1) in test12()
1025 close(pfd[0]); in test12()
1026 close(pfd[1]); in test12()
1053 int pfd[2]; in test13() local
1063 if (pipe(pfd) < 0) in test13()
1083 if (write(pfd[1], "a", 1) < 0) in test13()
1094 while (read(pfd[0], &ch, 1) != 1) { in test13()
1113 close(pfd[0]); in test13()
1114 close(pfd[1]); in test13()
1340 int pfd[2]; in test15() local
1345 if (pipe(pfd) < 0) in test15()
1364 if (write(pfd[1], "a", 1) < 0) in test15()
1374 if (read(pfd[0], &ch, 1) != 1) in test15()
1402 close(pfd[0]); in test15()
1403 close(pfd[1]); in test15()
1445 int pfd[2]; in test16() local
1452 if (pipe(pfd) < 0) in test16()
1472 if (write(pfd[1], "a", 1) < 0) in test16()
1482 if (read(pfd[0], &ch, 1) != 1) in test16()
1505 close(pfd[0]); in test16()
1506 close(pfd[1]); in test16()