prog.c: In function ‘doPipe’:
prog.c:5: error: ‘READ’ undeclared (first use in this function)
prog.c:5: error: (Each undeclared identifier is reported only once
prog.c:5: error: for each function it appears in.)
prog.c:6: error: ‘WRITE’ undeclared (first use in this function)
prog.c:11: warning: implicit declaration of function ‘fork’
prog.c:13: error: ‘test’ undeclared (first use in this function)
prog.c:13: error: called object ‘close’ is not a function
prog.c:13: warning: implicit declaration of function ‘assert’
prog.c:14: warning: implicit declaration of function ‘dup2’
prog.c:15: error: called object ‘close’ is not a function
prog.c:16: warning: implicit declaration of function ‘execl’
prog.c:16: warning: incompatible implicit declaration of built-in function ‘execl’
prog.c:17: warning: implicit declaration of function ‘perror’
prog.c:18: warning: implicit declaration of function ‘exit’
prog.c:18: warning: incompatible implicit declaration of built-in function ‘exit’