1 /* Define list of all signal numbers and their names.
2 Copyright (C) 1997, 1998, 1999, 2000, 2002 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
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.
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
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, write to the Free
17 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
23 #include <shlib-compat.h>
25 #include <bits/wordsize.h>
27 #define PTR_SIZE_STR "4"
28 #elif __WORDSIZE == 64
29 #define PTR_SIZE_STR "8"
31 #error unexpected wordsize __WORDSIZE
35 #if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)
36 asm (".data\n\t.globl __old_sys_siglist\n__old_sys_siglist:");
39 const char *const __new_sys_siglist
[NSIG
] =
41 #define init_sig(sig, abbrev, desc) [sig] desc,
45 strong_alias (__new_sys_siglist
, _sys_siglist_internal
)
47 #if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)
48 asm (".type __old_sys_siglist,@object\n\t.size __old_sys_siglist,"
49 OLD_SIGLIST_SIZE_STR
"*" PTR_SIZE_STR
);
51 asm (".data\n\t.globl __old_sys_sigabbrev\n__old_sys_sigabbrev:");
54 const char *const __new_sys_sigabbrev
[NSIG
] =
56 #define init_sig(sig, abbrev, desc) [sig] abbrev,
61 #if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)
62 asm (".type __old_sys_sigabbrev,@object\n\t.size __old_sys_sigabbrev,"
63 OLD_SIGLIST_SIZE_STR
"*" PTR_SIZE_STR
);
65 extern const char *const *__old_sys_siglist
;
66 extern const char *const *__old_sys_sigabbrev
;
68 strong_alias (__old_sys_siglist
, _old_sys_siglist
)
69 compat_symbol (libc
, __old_sys_siglist
, _sys_siglist
, GLIBC_2_0
);
70 compat_symbol (libc
, _old_sys_siglist
, sys_siglist
, GLIBC_2_0
);
71 compat_symbol (libc
, __old_sys_sigabbrev
, sys_sigabbrev
, GLIBC_2_0
);
74 strong_alias (__new_sys_siglist
, _new_sys_siglist
)
75 versioned_symbol (libc
, __new_sys_siglist
, _sys_siglist
, GLIBC_2_1
);
76 versioned_symbol (libc
, _new_sys_siglist
, sys_siglist
, GLIBC_2_1
);
77 versioned_symbol (libc
, __new_sys_sigabbrev
, sys_sigabbrev
, GLIBC_2_1
);