signum-arch.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /* Signal number definitions. Linux version.
  2. Copyright (C) 1995-2021 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, see
  14. <https://www.gnu.org/licenses/>. */
  15. #ifndef _BITS_SIGNUM_ARCH_H
  16. #define _BITS_SIGNUM_ARCH_H 1
  17. #ifndef _SIGNAL_H
  18. #error "Never include <bits/signum-arch.h> directly; use <signal.h> instead."
  19. #endif
  20. /* Adjustments and additions to the signal number constants for
  21. most Linux systems. */
  22. #define SIGSTKFLT 16 /* Stack fault (obsolete). */
  23. #define SIGPWR 30 /* Power failure imminent. */
  24. /* Historical signals specified by POSIX. */
  25. #define SIGBUS 7 /* Bus error. */
  26. #define SIGSYS 31 /* Bad system call. */
  27. /* New(er) POSIX signals (1003.1-2008, 1003.1-2013). */
  28. #define SIGURG 23 /* Urgent data is available at a socket. */
  29. #define SIGSTOP 19 /* Stop, unblockable. */
  30. #define SIGTSTP 20 /* Keyboard stop. */
  31. #define SIGCONT 18 /* Continue. */
  32. #define SIGCHLD 17 /* Child terminated or stopped. */
  33. #define SIGTTIN 21 /* Background read from control terminal. */
  34. #define SIGTTOU 22 /* Background write to control terminal. */
  35. #define SIGPOLL 29 /* Pollable event occurred (System V). */
  36. #define SIGXFSZ 25 /* File size limit exceeded. */
  37. #define SIGXCPU 24 /* CPU time limit exceeded. */
  38. #define SIGVTALRM 26 /* Virtual timer expired. */
  39. #define SIGPROF 27 /* Profiling timer expired. */
  40. #define SIGUSR1 10 /* User-defined signal 1. */
  41. #define SIGUSR2 12 /* User-defined signal 2. */
  42. /* Nonstandard signals found in all modern POSIX systems
  43. (including both BSD and Linux). */
  44. #define SIGWINCH 28 /* Window size change (4.3 BSD, Sun). */
  45. /* Archaic names for compatibility. */
  46. #define SIGIO SIGPOLL /* I/O now possible (4.2 BSD). */
  47. #define SIGIOT SIGABRT /* IOT instruction, abort() on a PDP-11. */
  48. #define SIGCLD SIGCHLD /* Old System V name */
  49. #define __SIGRTMIN 32
  50. #define __SIGRTMAX 64
  51. #endif /* <signal.h> included. */