]>
Commit | Line | Data |
---|---|---|
0ecb606c | 1 | /* Copyright (C) 1997-2000,2002,2003,2005 Free Software Foundation, Inc. |
c79c9039 UD |
2 | This file is part of the GNU C Library. |
3 | Linux/IA64 specific sigaction | |
4 | Written by Jes Sorensen, <Jes.Sorensen@cern.ch>, April 1999. | |
5 | ||
6 | The GNU C Library is free software; you can redistribute it and/or | |
41bdb6e2 AJ |
7 | modify it under the terms of the GNU Lesser General Public |
8 | License as published by the Free Software Foundation; either | |
9 | version 2.1 of the License, or (at your option) any later version. | |
c79c9039 UD |
10 | |
11 | The GNU C Library is distributed in the hope that it will be useful, | |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
41bdb6e2 | 14 | Lesser General Public License for more details. |
c79c9039 | 15 | |
41bdb6e2 AJ |
16 | You should have received a copy of the GNU Lesser General Public |
17 | License along with the GNU C Library; if not, write to the Free | |
18 | Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA | |
19 | 02111-1307 USA. */ | |
c79c9039 UD |
20 | |
21 | /* Linux/ia64 only has rt signals, thus we do not even want to try falling | |
22 | back to the old style signals as the default Linux handler does. */ | |
23 | ||
24 | #include <errno.h> | |
25 | #include <signal.h> | |
26 | #include <string.h> | |
27 | ||
28 | #include <sysdep.h> | |
29 | #include <sys/syscall.h> | |
4bbb61e4 | 30 | #include <bp-checks.h> |
c79c9039 | 31 | |
c79c9039 UD |
32 | /* The variable is shared between all wrappers around signal handling |
33 | functions which have RT equivalents. This is the definition. */ | |
34 | ||
35 | ||
36 | /* If ACT is not NULL, change the action for SIG to *ACT. | |
37 | If OACT is not NULL, put the old action for SIG in *OACT. */ | |
38 | int | |
c0f53cdd | 39 | __libc_sigaction (sig, act, oact) |
c79c9039 UD |
40 | int sig; |
41 | const struct sigaction *act; | |
42 | struct sigaction *oact; | |
43 | { | |
44 | /* XXX The size argument hopefully will have to be changed to the | |
45 | real size of the user-level sigset_t. */ | |
4bbb61e4 | 46 | return INLINE_SYSCALL (rt_sigaction, 4, sig, |
e64911d1 | 47 | CHECK_1_NULL_OK (act), CHECK_1_NULL_OK (oact), _NSIG / 8); |
c79c9039 | 48 | } |
5ec5c857 | 49 | libc_hidden_def (__libc_sigaction) |
bf293afe | 50 | |
0ecb606c JJ |
51 | #ifdef WRAPPER_INCLUDE |
52 | # include WRAPPER_INCLUDE | |
53 | #endif | |
54 | ||
bf293afe | 55 | #ifndef LIBC_SIGACTION |
ab18b1e1 | 56 | weak_alias (__libc_sigaction, __sigaction) |
37ba7d66 | 57 | libc_hidden_def (__sigaction) |
c0f53cdd | 58 | weak_alias (__libc_sigaction, sigaction) |
bf293afe | 59 | #endif |