]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S
Update copyright dates with scripts/update-copyrights
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / sparc / sparc64 / pipe.S
CommitLineData
2b778ceb 1/* Copyright (C) 1997-2021 Free Software Foundation, Inc.
c84142e8 2 This file is part of the GNU C Library.
5ae3e846 3 Contributed by Miguel de Icaza <miguel@gnu.ai.mit.edu>, 1997.
28f540f4 4
c84142e8 5 The GNU C Library is free software; you can redistribute it and/or
41bdb6e2
AJ
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
28f540f4 9
c84142e8
UD
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
41bdb6e2 13 Lesser General Public License for more details.
28f540f4 14
41bdb6e2 15 You should have received a copy of the GNU Lesser General Public
59ba27a6 16 License along with the GNU C Library; if not, see
5a82c748 17 <https://www.gnu.org/licenses/>. */
28f540f4 18
5ae3e846 19#include <sysdep.h>
28f540f4 20
043cee37
RM
21 .text
22
23 .globl __syscall_error
24ENTRY(__libc_pipe)
f5492334 25 mov %o0, %o2 /* Save PIPEDES. */
5ae3e846 26 LOADSYSCALL(pipe)
9c4c0024 27 ta 0x6d
043cee37
RM
28 bcc,pt %xcc, 1f
29 mov %o7, %g1
30 call __syscall_error
31 mov %g1, %o7
321: st %o0, [%o2] /* PIPEDES[0] = %o0; */
f5492334 33 st %o1, [%o2 + 4] /* PIPEDES[1] = %o1; */
5ae3e846
UD
34 retl
35 clr %o0
043cee37 36END(__libc_pipe)
28f540f4 37
5ae3e846 38weak_alias (__libc_pipe, __pipe)
37ba7d66 39libc_hidden_def (__pipe)
5ae3e846 40weak_alias (__libc_pipe, pipe)