Sync usage with man page.
[netbsd-mini2440.git] / lib / libc / arch / powerpc / sys / pipe.S
blobf34533f35df3bbf0d84d48008e25bb0d56613504
1 /*      $NetBSD: pipe.S,v 1.6 2000/09/28 08:38:54 kleink Exp $  */
3 #include "SYS.h"
5 #ifdef WEAK_ALIAS
6 WEAK_ALIAS(pipe, _pipe)
7 #endif
9 ENTRY(_pipe)
10         mr      %r5,%r3         # save pointer
11         li      %r0,SYS_pipe
12         sc                      # assume, that r5 is kept
13         bso     1f
14         stw     %r3,0(%r5)      # success, store fds
15         stw     %r4,4(%r5)
16         li      %r3,0
17         blr                     # and return 0
19         b       PIC_PLT(_C_LABEL(__cerror))