posix_signal.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /*
  2. * File : signals.h
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2017, RT-Thread Development Team
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License along
  17. * with this program; if not, write to the Free Software Foundation, Inc.,
  18. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  19. *
  20. * Change Logs:
  21. * Date Author Notes
  22. * 2017/10/1 Bernard The first version
  23. */
  24. #ifndef POSIX_SIGNAL_H__
  25. #define POSIX_SIGNAL_H__
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29. #include <rtthread.h>
  30. #include <sys/signal.h>
  31. enum rt_signal_value{
  32. SIG1 = SIGHUP,
  33. SIG2 = SIGINT,
  34. SIG3 = SIGQUIT,
  35. SIG4 = SIGILL,
  36. SIG5 = SIGTRAP,
  37. SIG6 = SIGABRT,
  38. SIG7 = SIGEMT,
  39. SIG8 = SIGFPE,
  40. SIG9 = SIGKILL,
  41. SIG10 = SIGBUS,
  42. SIG11 = SIGSEGV,
  43. SIG12 = SIGSYS,
  44. SIG13 = SIGPIPE,
  45. SIG14 = SIGALRM,
  46. SIG15 = SIGTERM,
  47. SIG16 = SIGURG,
  48. SIG17 = SIGSTOP,
  49. SIG18 = SIGTSTP,
  50. SIG19 = SIGCONT,
  51. SIG20 = SIGCHLD,
  52. SIG21 = SIGTTIN,
  53. SIG22 = SIGTTOU,
  54. SIG23 = SIGPOLL,
  55. SIG24 = 24, // SIGXCPU,
  56. SIG25 = 25, // SIGXFSZ,
  57. SIG26 = 26, // SIGVTALRM,
  58. SIG27 = 27, // SIGPROF,
  59. SIG28 = SIGWINCH,
  60. SIG29 = 29, // SIGLOST,
  61. SIG30 = SIGUSR1,
  62. SIG31 = SIGUSR2,
  63. SIGRT_MIN = 27, // SIGRTMIN,
  64. SIGRT_MAX = 31, // SIGRTMAX,
  65. SIGMAX = NSIG,
  66. };
  67. #ifdef __cplusplus
  68. }
  69. #endif
  70. #endif