1
0

posix_signal.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2017/10/1 Bernard The first version
  9. */
  10. #ifndef POSIX_SIGNAL_H__
  11. #define POSIX_SIGNAL_H__
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. #include <sys/signal.h>
  16. enum rt_signal_value{
  17. SIG1 = SIGHUP, // Hangup detected on controlling terminal or death of controlling process
  18. SIG2 = SIGINT, // Interrupt from keyboard
  19. SIG3 = SIGQUIT, // Quit from keyboard
  20. SIG4 = SIGILL, // Illegal instruction
  21. SIG5 = SIGTRAP, // Trace trap
  22. SIG6 = SIGABRT, // Abort signal from abort(3)
  23. SIG7 = SIGEMT, // Emulator trap
  24. SIG8 = SIGFPE, // Floating-point exception
  25. SIG9 = SIGKILL, // Kill signal
  26. SIG10 = SIGBUS, // Bus error
  27. SIG11 = SIGSEGV, // Segmentation fault
  28. SIG12 = SIGSYS, // Bad system call
  29. SIG13 = SIGPIPE, // Broken pipe
  30. SIG14 = SIGALRM, // Timer signal from alarm(2)
  31. SIG15 = SIGTERM, // Termination signal
  32. SIG16 = SIGURG, // Urgent condition on socket
  33. SIG17 = SIGSTOP, // Stop executing (cannot be caught or ignored)
  34. SIG18 = SIGTSTP, // Stop signal from keyboard to suspend execution
  35. SIG19 = SIGCONT, // Continue if stopped
  36. SIG20 = SIGCHLD, // Child status has changed
  37. SIG21 = SIGTTIN, // Background read from control terminal attempted by background process
  38. SIG22 = SIGTTOU, // Background write to control terminal attempted by background process
  39. SIG23 = SIGPOLL, // Pollable event
  40. SIG24 = 24, // SIGXCPU: CPU time limit exceeded
  41. SIG25 = 25, // SIGXFSZ: File size limit exceeded
  42. SIG26 = 26, // SIGVTALRM: Virtual timer expired
  43. SIG27 = 27, // SIGPROF: Profiling timer expired
  44. SIG28 = SIGWINCH,// Window size changed
  45. SIG29 = 29, // SIGLOST
  46. SIG30 = SIGUSR1, // User-defined signal 1
  47. SIG31 = SIGUSR2, // User-defined signal 2
  48. SIGRT_MIN = 27, // SIGRTMIN: Minimum real-time signal number
  49. SIGRT_MAX = 31, // SIGRTMAX: Maximum real-time signal number
  50. SIGMAX = NSIG // Number of signals (total)
  51. };
  52. #ifdef __cplusplus
  53. }
  54. #endif
  55. #endif