* write and discard using pipes.
printf("usage: %s iterations message-size\n", argv
[0]);
if (msgsize
> sizeof (buf
) || msgsize
<= 0) {
printf("%s: Bad message size.\n", *argv
);
for (i
= 0; i
< iter
; i
++)
read(fd
[0], buf
, msgsize
);
for (i
= 0; i
< iter
; i
++)
write(fd
[1], buf
, msgsize
);