提交 42f0e965 编写于 作者: R Rich Felker

add pipe2 syscall

based on patch by orc and Isaac Dunham, with some details fixed.
上级 845a5e69
......@@ -174,6 +174,7 @@ int setresgid(gid_t, gid_t, gid_t);
int getresuid(uid_t *, uid_t *, uid_t *);
int getresgid(gid_t *, gid_t *, gid_t *);
char *get_current_dir_name(void);
int pipe2(int [2], int);
#endif
#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
......
#define _GNU_SOURCE
#include <unistd.h>
#include "syscall.h"
int pipe2(int fd[2], int flg)
{
return syscall(SYS_pipe2, fd, flg);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册