The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 1 | /* autogenerated by gensyscalls.py */ |
Elliott Hughes | 7582a9c | 2013-02-06 17:08:15 -0800 | [diff] [blame] | 2 | #include <machine/asm.h> |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 3 | #include <sys/linux-syscalls.h> |
| 4 | |
Elliott Hughes | 7582a9c | 2013-02-06 17:08:15 -0800 | [diff] [blame] | 5 | ENTRY(pipe) |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 6 | pushl %ebx |
| 7 | mov 8(%esp), %ebx |
| 8 | movl $__NR_pipe, %eax |
| 9 | int $0x80 |
| 10 | cmpl $-129, %eax |
| 11 | jb 1f |
| 12 | negl %eax |
| 13 | pushl %eax |
| 14 | call __set_errno |
| 15 | addl $4, %esp |
| 16 | orl $-1, %eax |
| 17 | 1: |
| 18 | popl %ebx |
| 19 | ret |
Elliott Hughes | 7582a9c | 2013-02-06 17:08:15 -0800 | [diff] [blame] | 20 | END(pipe) |