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