4 * $DragonFly: src/test/sysperf/pipe1.c,v 1.1 2003/08/12 02:29:44 dillon Exp $
10 main(int ac
, char **av
)
18 printf("tests full duplex pipe 1write,2read,2write,1read loop\n");
28 while (read(fds
[1], &c
, 1) == 1) {
37 write(fds
[0], &c
, 1); /* prime the caches */
40 for (j
= 0; j
< 100000; ++j
) {
42 if (read(fds
[0], &c
, 1) != 1) {
43 fprintf(stderr
, "broken pipe during test\n");
47 stop_timing(j
, "full duplex pipe / 1char:");
49 while(wait(NULL
) >= 0);