sys_siglist.c 1.8 KB

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