Home | History | Annotate | Download | only in syscalls
      1 /* autogenerated by gensyscalls.py */
      2 #include <linux/err.h>
      3 #include <machine/asm.h>
      4 #include <asm/unistd.h>
      5 
      6 ENTRY(pipe)
      7     pushl   %ebx
      8     mov     8(%esp), %ebx
      9     movl    $__NR_pipe, %eax
     10     int     $0x80
     11     cmpl    $-MAX_ERRNO, %eax
     12     jb      1f
     13     negl    %eax
     14     pushl   %eax
     15     call    __set_errno
     16     addl    $4, %esp
     17     orl     $-1, %eax
     18 1:
     19     popl    %ebx
     20     ret
     21 END(pipe)
     22