tools/llvm: Do not build with symbols
[minix3.git] / lib / libc / arch / powerpc / sys / pipe.S
blob7bce8c70e9e51fe32c917e343e85c3d16f8bed15
1 /*      $NetBSD: pipe.S,v 1.8 2011/01/15 07:31:13 matt Exp $    */
3 #include "SYS.h"
5 #if defined(LIBC_SCCS) && !defined(lint)
6 __RCSID("$NetBSD: pipe.S,v 1.8 2011/01/15 07:31:13 matt Exp $")
7 #endif /* LIBC_SCCS && !lint */
9 #ifdef WEAK_ALIAS
10 WEAK_ALIAS(pipe, _pipe)
11 #endif
13 ENTRY(_pipe)
14         mr      %r5,%r3         # save pointer
15         _DOSYSCALL(pipe)        # assume, that r5 is kept
16         bso     1f
17         stw     %r3,0(%r5)      # success, store fds
18         stw     %r4,4(%r5)
19         li      %r3,0
20         blr                     # and return 0
22         b       _C_LABEL(__cerror)
23 END(_pipe)