sgx_signal.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * Copyright (C) 2019 Intel Corporation. All rights reserved.
  3. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. */
  5. #ifndef _SGX_SIGNAL_H
  6. #define _SGX_SIGNAL_H
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. /* Signals. */
  11. #define SIGHUP 1 /* Hangup (POSIX). */
  12. #define SIGINT 2 /* Interrupt (ANSI). */
  13. #define SIGQUIT 3 /* Quit (POSIX). */
  14. #define SIGILL 4 /* Illegal instruction (ANSI). */
  15. #define SIGTRAP 5 /* Trace trap (POSIX). */
  16. #define SIGABRT 6 /* Abort (ANSI). */
  17. #define SIGIOT 6 /* IOT trap (4.2 BSD). */
  18. #define SIGBUS 7 /* BUS error (4.2 BSD). */
  19. #define SIGFPE 8 /* Floating-point exception (ANSI). */
  20. #define SIGKILL 9 /* Kill, unblockable (POSIX). */
  21. #define SIGUSR1 10 /* User-defined signal 1 (POSIX). */
  22. #define SIGSEGV 11 /* Segmentation violation (ANSI). */
  23. #define SIGUSR2 12 /* User-defined signal 2 (POSIX). */
  24. #define SIGPIPE 13 /* Broken pipe (POSIX). */
  25. #define SIGALRM 14 /* Alarm clock (POSIX). */
  26. #define SIGTERM 15 /* Termination (ANSI). */
  27. #define SIGSTKFLT 16 /* Stack fault. */
  28. #define SIGCLD SIGCHLD /* Same as SIGCHLD (System V). */
  29. #define SIGCHLD 17 /* Child status has changed (POSIX). */
  30. #define SIGCONT 18 /* Continue (POSIX). */
  31. #define SIGSTOP 19 /* Stop, unblockable (POSIX). */
  32. #define SIGTSTP 20 /* Keyboard stop (POSIX). */
  33. #define SIGTTIN 21 /* Background read from tty (POSIX). */
  34. #define SIGTTOU 22 /* Background write to tty (POSIX). */
  35. #define SIGURG 23 /* Urgent condition on socket (4.2 BSD). */
  36. #define SIGXCPU 24 /* CPU limit exceeded (4.2 BSD). */
  37. #define SIGXFSZ 25 /* File size limit exceeded (4.2 BSD). */
  38. #define SIGVTALRM 26 /* Virtual alarm clock (4.2 BSD). */
  39. #define SIGPROF 27 /* Profiling alarm clock (4.2 BSD). */
  40. #define SIGWINCH 28 /* Window size change (4.3 BSD, Sun). */
  41. #define SIGPOLL SIGIO /* Pollable event occurred (System V). */
  42. #define SIGIO 29 /* I/O now possible (4.2 BSD). */
  43. #define SIGPWR 30 /* Power failure restart (System V). */
  44. #define SIGSYS 31 /* Bad system call. */
  45. #define SIGUNUSED 31
  46. int
  47. raise(int sig);
  48. #ifdef __cplusplus
  49. }
  50. #endif
  51. #endif /* end of _SGX_SIGNAL_H */