signum-arch.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /* Signal number constants. Specific architecture definitions.
  2. Copyright (C) 2020-2026 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-generic.h> directly; use <signal.h> instead."
  19. #endif
  20. /* Historical signals specified by POSIX. */
  21. #define SIGBUS 10 /* Bus error. */
  22. #define SIGSYS 12 /* Bad system call. */
  23. /* New(er) POSIX signals (1003.1-2008, 1003.1-2013). */
  24. #define SIGURG 16 /* Urgent data is available at a socket. */
  25. #define SIGSTOP 17 /* Stop, unblockable. */
  26. #define SIGTSTP 18 /* Keyboard stop. */
  27. #define SIGCONT 19 /* Continue. */
  28. #define SIGCHLD 20 /* Child terminated or stopped. */
  29. #define SIGTTIN 21 /* Background read from control terminal. */
  30. #define SIGTTOU 22 /* Background write to control terminal. */
  31. #define SIGPOLL 23 /* Pollable event occurred (System V). */
  32. #define SIGXCPU 24 /* CPU time limit exceeded. */
  33. #define SIGVTALRM 26 /* Virtual timer expired. */
  34. #define SIGPROF 27 /* Profiling timer expired. */
  35. #define SIGXFSZ 25 /* File size limit exceeded. */
  36. #define SIGUSR1 30 /* User-defined signal 1. */
  37. #define SIGUSR2 31 /* User-defined signal 2. */
  38. /* Nonstandard signals found in all modern POSIX systems
  39. (including both BSD and Linux). */
  40. #define SIGWINCH 28 /* Window size change (4.3 BSD, Sun). */
  41. /* Archaic names for compatibility. */
  42. #define SIGIO SIGPOLL /* I/O now possible (4.2 BSD). */
  43. #define SIGIOT SIGABRT /* IOT instruction, abort() on a PDP-11. */
  44. #define SIGCLD SIGCHLD /* Old System V name */
  45. /* By default no real-time signals are supported. */
  46. #define __SIGRTMIN 32
  47. #define __SIGRTMAX __SIGRTMIN
  48. #endif