blob: 55fe08f4c55b2d42cfb63b5c2dce2d7f236dc3bd [file] [log] [blame]
David 'Digit' Turner275cd482010-09-27 17:33:08 +02001/* autogenerated by gensyscalls.py */
Elliott Hughes7582a9c2013-02-06 17:08:15 -08002#include <machine/asm.h>
David 'Digit' Turner275cd482010-09-27 17:33:08 +02003#include <sys/linux-syscalls.h>
4
Elliott Hughes7582a9c2013-02-06 17:08:15 -08005ENTRY(pipe2)
David 'Digit' Turner275cd482010-09-27 17:33:08 +02006 pushl %ebx
7 pushl %ecx
8 mov 12(%esp), %ebx
9 mov 16(%esp), %ecx
10 movl $__NR_pipe2, %eax
11 int $0x80
12 cmpl $-129, %eax
13 jb 1f
14 negl %eax
15 pushl %eax
16 call __set_errno
17 addl $4, %esp
18 orl $-1, %eax
191:
20 popl %ecx
21 popl %ebx
22 ret
Elliott Hughes7582a9c2013-02-06 17:08:15 -080023END(pipe2)