signum-arch.h 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. //
  2. // Copyright 2026 Aarav Ravindra Kharade
  3. //
  4. // Licensed under the Apache License, Version 2.0 (the "License");
  5. // you may not use this file except in compliance with the License.
  6. // You may obtain a copy of the License at
  7. //
  8. // http://www.apache.org/licenses/LICENSE-2.0
  9. //
  10. // Unless required by applicable law or agreed to in writing, software
  11. // distributed under the License is distributed on an "AS IS" BASIS,
  12. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. // See the License for the specific language governing permissions and
  14. // limitations under the License.
  15. //
  16. /* Signal number definitions. Linux version.
  17. Copyright (C) 1995-2026 Free Software Foundation, Inc.
  18. This file is part of the GNU C Library.
  19. The GNU C Library is free software; you can redistribute it and/or
  20. modify it under the terms of the GNU Lesser General Public
  21. License as published by the Free Software Foundation; either
  22. version 2.1 of the License, or (at your option) any later version.
  23. The GNU C Library is distributed in the hope that it will be useful,
  24. but WITHOUT ANY WARRANTY; without even the implied warranty of
  25. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  26. Lesser General Public License for more details.
  27. You should have received a copy of the GNU Lesser General Public
  28. License along with the GNU C Library; if not, see
  29. <https://www.gnu.org/licenses/>. */
  30. #ifndef _BITS_SIGNUM_ARCH_H
  31. #define _BITS_SIGNUM_ARCH_H 1
  32. #ifndef _SIGNAL_H
  33. #error "Never include <bits/signum-arch.h> directly; use <signal.h> instead."
  34. #endif
  35. /* Adjustments and additions to the signal number constants for
  36. most Linux systems. */
  37. #define SIGSTKFLT 16 /* Stack fault (obsolete). */
  38. #define SIGPWR 30 /* Power failure imminent. */
  39. /* Historical signals specified by POSIX. */
  40. #define SIGBUS 7 /* Bus error. */
  41. #define SIGSYS 31 /* Bad system call. */
  42. /* New(er) POSIX signals (1003.1-2008, 1003.1-2013). */
  43. #define SIGURG 23 /* Urgent data is available at a socket. */
  44. #define SIGSTOP 19 /* Stop, unblockable. */
  45. #define SIGTSTP 20 /* Keyboard stop. */
  46. #define SIGCONT 18 /* Continue. */
  47. #define SIGCHLD 17 /* Child terminated or stopped. */
  48. #define SIGTTIN 21 /* Background read from control terminal. */
  49. #define SIGTTOU 22 /* Background write to control terminal. */
  50. #define SIGPOLL 29 /* Pollable event occurred (System V). */
  51. #define SIGXFSZ 25 /* File size limit exceeded. */
  52. #define SIGXCPU 24 /* CPU time limit exceeded. */
  53. #define SIGVTALRM 26 /* Virtual timer expired. */
  54. #define SIGPROF 27 /* Profiling timer expired. */
  55. #define SIGUSR1 10 /* User-defined signal 1. */
  56. #define SIGUSR2 12 /* User-defined signal 2. */
  57. /* Nonstandard signals found in all modern POSIX systems
  58. (including both BSD and Linux). */
  59. #define SIGWINCH 28 /* Window size change (4.3 BSD, Sun). */
  60. /* Archaic names for compatibility. */
  61. #define SIGIO SIGPOLL /* I/O now possible (4.2 BSD). */
  62. #define SIGIOT SIGABRT /* IOT instruction, abort() on a PDP-11. */
  63. #define SIGCLD SIGCHLD /* Old System V name */
  64. #define __SIGRTMIN 32
  65. #define __SIGRTMAX 64
  66. #endif /* <signal.h> included. */