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 /libc/sysdeps/linux/common/pipe2.c | |
parent | 6af34270fa28a4274576a6d068e6a83346480f2e (diff) |
add pipe2()
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/common/pipe2.c')
-rw-r--r-- | libc/sysdeps/linux/common/pipe2.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/pipe2.c b/libc/sysdeps/linux/common/pipe2.c new file mode 100644 index 000000000..0a3686d81 --- /dev/null +++ b/libc/sysdeps/linux/common/pipe2.c @@ -0,0 +1,16 @@ +/* vi: set sw=4 ts=4: */ +/* + * pipe2() for uClibc + * + * Copyright (C) 2011 Bernhard Reutner-Fischer <uclibc@uclibc.org> + * + * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. + */ + +#include <sys/syscall.h> +#include <unistd.h> + +#ifdef __NR_pipe2 +_syscall2(int, pipe2, int *, filedes, int, flags) +libc_hidden_def(pipe2) +#endif |