toaruos/libc/unistd/pipe.c

11 lines
198 B
C
Raw Normal View History

#include <unistd.h>
#include <errno.h>
#include <syscall.h>
#include <syscall_nums.h>
DEFN_SYSCALL1(pipe, SYS_PIPE, int *);
int pipe(int fildes[2]) {
2018-07-18 04:25:01 +03:00
__sets_errno(syscall_pipe((int *)fildes));
}