signum.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /* Signal number definitions. Linux/SPARC version.
  2. Copyright (C) 1996, 1997, 1998, 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/SPARC 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 SIGIOT 6
  35. #define SIGEMT 7
  36. #define SIGFPE 8
  37. #define SIGKILL 9
  38. #define SIGBUS 10
  39. #define SIGSEGV 11
  40. #define SIGSYS 12
  41. #define SIGPIPE 13
  42. #define SIGALRM 14
  43. #define SIGTERM 15
  44. #define SIGURG 16
  45. /* SunOS values which deviate from the Linux/i386 ones */
  46. #define SIGSTOP 17
  47. #define SIGTSTP 18
  48. #define SIGCONT 19
  49. #define SIGCHLD 20
  50. #define SIGCLD SIGCHLD /* Same as SIGCHLD (System V). */
  51. #define SIGTTIN 21
  52. #define SIGTTOU 22
  53. #define SIGIO 23
  54. #define SIGPOLL SIGIO /* SysV name for SIGIO */
  55. #define SIGXCPU 24
  56. #define SIGXFSZ 25
  57. #define SIGVTALRM 26
  58. #define SIGPROF 27
  59. #define SIGWINCH 28
  60. #define SIGLOST 29
  61. #define SIGPWR SIGLOST
  62. #define SIGUSR1 30
  63. #define SIGUSR2 31
  64. #define _NSIG 65 /* Biggest signal number + 1
  65. (including real-time signals). */
  66. #define SIGRTMIN (__libc_current_sigrtmin ())
  67. #define SIGRTMAX (__libc_current_sigrtmax ())
  68. /* These are the hard limits of the kernel. These values should not be
  69. used directly at user level. */
  70. #define __SIGRTMIN 32
  71. #define __SIGRTMAX (_NSIG - 1)
  72. #endif /* <signal.h> included. */