1 2 3 4 5 6 7 8 9 10 11 12 13 14
#ifndef PIPE_H #define PIPE_H #include "syscalls.h" #define PIPE_IN 1 #define PIPE_OUT 0 int pipe(int *filedes) { return syscall(PIPE, filedes); } #endif