summaryrefslogtreecommitdiffstats
path: root/libc/arch-x86/syscalls
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/arch-x86/syscalls
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/arch-x86/syscalls')
-rw-r--r--libc/arch-x86/syscalls/pipe2.S26
1 files changed, 26 insertions, 0 deletions
diff --git a/libc/arch-x86/syscalls/pipe2.S b/libc/arch-x86/syscalls/pipe2.S
new file mode 100644
index 0000000..c3354a7
--- /dev/null
+++ b/libc/arch-x86/syscalls/pipe2.S
@@ -0,0 +1,26 @@
+/* autogenerated by gensyscalls.py */
+#include <sys/linux-syscalls.h>
+
+ .text
+ .type pipe2, @function
+ .globl pipe2
+ .align 4
+
+pipe2:
+ pushl %ebx
+ pushl %ecx
+ mov 12(%esp), %ebx
+ mov 16(%esp), %ecx
+ movl $__NR_pipe2, %eax
+ int $0x80
+ cmpl $-129, %eax
+ jb 1f
+ negl %eax
+ pushl %eax
+ call __set_errno
+ addl $4, %esp
+ orl $-1, %eax
+1:
+ popl %ecx
+ popl %ebx
+ ret