libdl: first execute all destructors, then munmap library
[uclibc-ng.git] / libc / string / sys_siglist.c
blob844337536fe2f42b177467e6226e177e5c5c2f98
1 /*
2 * Copyright (C) 2002 Manuel Novoa III
3 * Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
5 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
6 */
8 #include <features.h>
9 #define __need_NULL
10 #include <stddef.h>
11 #include <signal.h>
13 extern const char _string_syssigmsgs[] attribute_hidden;
15 #ifdef __UCLIBC_HAS_SYS_SIGLIST__
17 const char *const sys_siglist[_NSIG] = {
18 [0] = NULL,
19 [SIGHUP] = _string_syssigmsgs + 1,
20 [SIGINT] = _string_syssigmsgs + 8,
21 [SIGQUIT] = _string_syssigmsgs + 18,
22 [SIGILL] = _string_syssigmsgs + 23,
23 [SIGTRAP] = _string_syssigmsgs + 43,
24 [SIGABRT] = _string_syssigmsgs + 65,
25 [SIGBUS] = _string_syssigmsgs + 73,
26 [SIGFPE] = _string_syssigmsgs + 83,
27 [SIGKILL] = _string_syssigmsgs + 108,
28 [SIGUSR1] = _string_syssigmsgs + 115,
29 [SIGSEGV] = _string_syssigmsgs + 137,
30 [SIGUSR2] = _string_syssigmsgs + 156,
31 [SIGPIPE] = _string_syssigmsgs + 178,
32 [SIGALRM] = _string_syssigmsgs + 190,
33 [SIGTERM] = _string_syssigmsgs + 202,
34 #if defined SIGSTKFLT /* not all arches define this, yeah ! */
35 [SIGSTKFLT] = _string_syssigmsgs + 213,
36 #endif
37 [SIGCHLD] = _string_syssigmsgs + 225,
38 [SIGCONT] = _string_syssigmsgs + 238,
39 [SIGSTOP] = _string_syssigmsgs + 248,
40 [SIGTSTP] = _string_syssigmsgs + 265,
41 [SIGTTIN] = _string_syssigmsgs + 273,
42 [SIGTTOU] = _string_syssigmsgs + 293,
43 [SIGURG] = _string_syssigmsgs + 314,
44 [SIGXCPU] = _string_syssigmsgs + 335,
45 [SIGXFSZ] = _string_syssigmsgs + 359,
46 [SIGVTALRM] = _string_syssigmsgs + 384,
47 [SIGPROF] = _string_syssigmsgs + 406,
48 [SIGWINCH] = _string_syssigmsgs + 430,
49 [SIGIO] = _string_syssigmsgs + 445,
50 [SIGPWR] = _string_syssigmsgs + 458,
51 [SIGSYS] = _string_syssigmsgs + 472,
52 #if defined SIGEMT /* only some arches define this, yeah ! */
53 [SIGEMT] = _string_syssigmsgs + 488,
54 #endif
57 #endif