summaryrefslogtreecommitdiffstats
path: root/libc/include/unistd.h
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2010-09-27 17:33:08 +0200
committerDavid 'Digit' Turner <digit@google.com>2010-09-27 17:33:08 +0200
commit275cd48511daabe4591caa49c3ad0df34a6889ff (patch)
tree7fa40917d92ff25cbfe6e4f4d4cbe01bd9af588e /libc/include/unistd.h
parentb9e49ad56e5776ace7c6eab2e997d5b7acb16792 (diff)
downloadbionic-275cd48511daabe4591caa49c3ad0df34a6889ff.zip
bionic-275cd48511daabe4591caa49c3ad0df34a6889ff.tar.gz
bionic-275cd48511daabe4591caa49c3ad0df34a6889ff.tar.bz2
libc: Add missing pipe2() declaration and implementation.
Change-Id: Iacb914bd6ac5adc60c5671e6fef680ede21f9b0c
Diffstat (limited to 'libc/include/unistd.h')
-rw-r--r--libc/include/unistd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/include/unistd.h b/libc/include/unistd.h
index 7554198..cd09e3d 100644
--- a/libc/include/unistd.h
+++ b/libc/include/unistd.h
@@ -118,6 +118,9 @@ extern int chdir(const char *);
extern int fchdir(int);
extern int rmdir(const char *);
extern int pipe(int *);
+#ifdef _GNU_SOURCE /* GLibc compatibility */
+extern int pipe2(int *, int);
+#endif
extern int chroot(const char *);
extern int symlink(const char *, const char *);
extern int readlink(const char *, char *, size_t);