add pipe2 syscall

based on patch by orc and Isaac Dunham, with some details fixed.
This commit is contained in:
Rich Felker
2012-07-23 16:32:49 -04:00
parent 845a5e69fa
commit 42f0e965c4
2 changed files with 9 additions and 0 deletions

8
src/linux/pipe2.c Normal file
View File

@@ -0,0 +1,8 @@
#define _GNU_SOURCE
#include <unistd.h>
#include "syscall.h"
int pipe2(int fd[2], int flg)
{
return syscall(SYS_pipe2, fd, flg);
}