projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc62790
)
always expose dup3 and pipe2
author
Rich Felker
<dalias@aerifal.cx>
Sat, 29 Sep 2012 21:42:21 +0000
(17:42 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Sat, 29 Sep 2012 21:42:21 +0000
(17:42 -0400)
they will be in the next version of POSIX
include/unistd.h
patch
|
blob
|
history
diff --git
a/include/unistd.h
b/include/unistd.h
index 985d279eea87501ab0f2673920508c620023bd6a..a1724beccc9ba4f6e06821a14584a2a2099590ac 100644
(file)
--- a/
include/unistd.h
+++ b/
include/unistd.h
@@
-33,9
+33,11
@@
extern "C" {
#include <bits/alltypes.h>
int pipe(int [2]);
+int pipe2(int [2], int);
int close(int);
int dup(int);
int dup2(int, int);
+int dup3(int, int, int);
off_t lseek(int, off_t, int);
int fsync(int);
int fdatasync(int);
@@
-182,8
+184,6
@@
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);
-int dup3(int, int, int);
void syncfs(int);
#endif