signum.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /* Signal number definitions. Linux/Alpha version.
  2. Copyright (C) 1996, 1997, 1998, 1999, 2003 Free Software Foundation, Inc.
  3. This file is part of the GNU C Library.
  4. The GNU C Library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Lesser General Public
  6. License as published by the Free Software Foundation; either
  7. version 2.1 of the License, or (at your option) any later version.
  8. The GNU C Library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Lesser General Public License for more details.
  12. You should have received a copy of the GNU Lesser General Public
  13. License along with the GNU C Library; if not, write to the Free
  14. Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
  15. 02111-1307 USA. */
  16. #ifdef _SIGNAL_H
  17. /* Fake signal functions. */
  18. #define SIG_ERR ((__sighandler_t) -1) /* Error return. */
  19. #define SIG_DFL ((__sighandler_t) 0) /* Default action. */
  20. #define SIG_IGN ((__sighandler_t) 1) /* Ignore signal. */
  21. #ifdef __USE_UNIX98
  22. # define SIG_HOLD ((__sighandler_t) 2) /* Add signal to hold mask. */
  23. #endif
  24. /*
  25. * Linux/AXP has different signal numbers that Linux/i386: I'm trying
  26. * to make it OSF/1 binary compatible, at least for normal binaries.
  27. */
  28. #define SIGHUP 1
  29. #define SIGINT 2
  30. #define SIGQUIT 3
  31. #define SIGILL 4
  32. #define SIGTRAP 5
  33. #define SIGABRT 6
  34. #define SIGEMT 7
  35. #define SIGFPE 8
  36. #define SIGKILL 9
  37. #define SIGBUS 10
  38. #define SIGSEGV 11
  39. #define SIGSYS 12
  40. #define SIGPIPE 13
  41. #define SIGALRM 14
  42. #define SIGTERM 15
  43. #define SIGURG 16
  44. #define SIGSTOP 17
  45. #define SIGTSTP 18
  46. #define SIGCONT 19
  47. #define SIGCHLD 20
  48. #define SIGCLD SIGCHLD
  49. #define SIGTTIN 21
  50. #define SIGTTOU 22
  51. #define SIGIO 23
  52. #define SIGXCPU 24
  53. #define SIGXFSZ 25
  54. #define SIGVTALRM 26
  55. #define SIGPROF 27
  56. #define SIGWINCH 28
  57. #define SIGINFO 29
  58. #define SIGUSR1 30
  59. #define SIGUSR2 31
  60. #define SIGPOLL SIGIO
  61. #define SIGPWR SIGINFO
  62. #define SIGIOT SIGABRT
  63. #define _NSIG 65 /* Biggest signal number + 1. */
  64. #define SIGRTMIN (__libc_current_sigrtmin ())
  65. #define SIGRTMAX (__libc_current_sigrtmax ())
  66. /* These are the hard limits of the kernel. These values should not be
  67. used directly at user level. */
  68. #define __SIGRTMIN 32
  69. #define __SIGRTMAX (_NSIG - 1)
  70. #endif /* <signal.h> included. */