diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2011-05-11 13:12:14 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2011-05-11 13:12:14 +0200 |
commit | d3ddb92ea03c89fe7d56a0bcbfbe64743bc51210 (patch) | |
tree | f195741cf9705d7e924c6a88f1818d1e307ef2b5 /include/unistd.h | |
parent | 6af34270fa28a4274576a6d068e6a83346480f2e (diff) |
add pipe2()
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'include/unistd.h')
-rw-r--r-- | include/unistd.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/unistd.h b/include/unistd.h index c421cb308..6b614dd05 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -389,6 +389,13 @@ extern ssize_t pwrite64 (int __fd, __const void *__buf, size_t __n, extern int pipe (int __pipedes[2]) __THROW __wur; libc_hidden_proto(pipe) +#ifdef __USE_GNU +/* Same as pipe but apply flags passed in FLAGS to the new file + descriptors. */ +extern int pipe2 (int __pipedes[2], int __flags) __THROW __wur; +libc_hidden_proto(pipe2) +#endif + /* Schedule an alarm. In SECONDS seconds, the process will get a SIGALRM. If SECONDS is zero, any currently scheduled alarm will be cancelled. The function returns the number of seconds remaining until the last |