#include "SYS.h"
-#if defined(__ppc__) || defined(__ppc64__)
+#if defined(__i386__)
-MI_ENTRY_POINT(___pipe)
- mr r12,r3 // save fildes across syscall
- SYSCALL_NONAME(pipe, 0)
- stw r3,0(r12)
- stw r4,4(r12)
- li r3,0
- blr
-
-#elif defined(__i386__)
-
-PSEUDO_INT(__pipe, pipe, 0)
+PSEUDO_INT(___pipe, pipe, 0)
movl 4(%esp),%ecx
movl %eax,(%ecx)
movl %edx,4(%ecx)
#elif defined(__x86_64__)
-PSEUDO(__pipe, pipe, 0)
+PSEUDO(___pipe, pipe, 0, cerror_nocancel)
movl %eax, (%rdi)
movl %edx, 4(%rdi)
xorl %eax, %eax
ret
-#elif defined(__arm__)
-
-MI_ENTRY_POINT(_pipe)
- mov r3,r0 // save fildes across syscall
- SYSCALL_NONAME(pipe, 0)
- str r0, [r3, #0]
- str r1, [r3, #4]
- mov r0,#0
- bx lr
-
#else
#error Unsupported architecture
#endif