emulate SOCK_CLOEXEC and SOCK_NONBLOCK for old (pre-2.6.27) kernels
[musl] / src / linux / pipe2.c
1 #define _GNU_SOURCE
2 #include <unistd.h>
3 #include "syscall.h"
4
5 int pipe2(int fd[2], int flg)
6 {
7         return syscall(SYS_pipe2, fd, flg);
8 }