pipe.c 166 B

123456789
  1. #include <unistd.h>
  2. #include <errno.h>
  3. #include <syscall.h>
  4. DEFN_SYSCALL1(pipe, 54, int *);
  5. int pipe(int fildes[2]) {
  6. __sets_errno(syscall_pipe((int *)fildes));
  7. }