mirror of
https://github.com/fluencelabs/musl
synced 2025-04-25 15:22:15 +00:00
add pipe2 syscall
based on patch by orc and Isaac Dunham, with some details fixed.
This commit is contained in:
parent
845a5e69fa
commit
42f0e965c4
@ -174,6 +174,7 @@ int setresgid(gid_t, gid_t, gid_t);
|
|||||||
int getresuid(uid_t *, uid_t *, uid_t *);
|
int getresuid(uid_t *, uid_t *, uid_t *);
|
||||||
int getresgid(gid_t *, gid_t *, gid_t *);
|
int getresgid(gid_t *, gid_t *, gid_t *);
|
||||||
char *get_current_dir_name(void);
|
char *get_current_dir_name(void);
|
||||||
|
int pipe2(int [2], int);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
|
#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
|
||||||
|
8
src/linux/pipe2.c
Normal file
8
src/linux/pipe2.c
Normal 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);
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user