signal.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. /* $Id: signal.h,v 1.3 1998/04/12 06:20:33 davem Exp $
  2. * signal.h: Signal emulation for Solaris
  3. *
  4. * Copyright (C) 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
  5. */
  6. #define SOLARIS_SIGHUP 1
  7. #define SOLARIS_SIGINT 2
  8. #define SOLARIS_SIGQUIT 3
  9. #define SOLARIS_SIGILL 4
  10. #define SOLARIS_SIGTRAP 5
  11. #define SOLARIS_SIGIOT 6
  12. #define SOLARIS_SIGEMT 7
  13. #define SOLARIS_SIGFPE 8
  14. #define SOLARIS_SIGKILL 9
  15. #define SOLARIS_SIGBUS 10
  16. #define SOLARIS_SIGSEGV 11
  17. #define SOLARIS_SIGSYS 12
  18. #define SOLARIS_SIGPIPE 13
  19. #define SOLARIS_SIGALRM 14
  20. #define SOLARIS_SIGTERM 15
  21. #define SOLARIS_SIGUSR1 16
  22. #define SOLARIS_SIGUSR2 17
  23. #define SOLARIS_SIGCLD 18
  24. #define SOLARIS_SIGPWR 19
  25. #define SOLARIS_SIGWINCH 20
  26. #define SOLARIS_SIGURG 21
  27. #define SOLARIS_SIGPOLL 22
  28. #define SOLARIS_SIGSTOP 23
  29. #define SOLARIS_SIGTSTP 24
  30. #define SOLARIS_SIGCONT 25
  31. #define SOLARIS_SIGTTIN 26
  32. #define SOLARIS_SIGTTOU 27
  33. #define SOLARIS_SIGVTALRM 28
  34. #define SOLARIS_SIGPROF 29
  35. #define SOLARIS_SIGXCPU 30
  36. #define SOLARIS_SIGXFSZ 31
  37. #define SOLARIS_SIGWAITING 32
  38. #define SOLARIS_SIGLWP 33
  39. #define SOLARIS_SIGFREEZE 34
  40. #define SOLARIS_SIGTHAW 35
  41. #define SOLARIS_SIGCANCEL 36
  42. #define SOLARIS_SIGRTMIN 37
  43. #define SOLARIS_SIGRTMAX 44
  44. #define SOLARIS_NSIGNALS 44
  45. #define SOLARIS_SA_ONSTACK 1
  46. #define SOLARIS_SA_RESETHAND 2
  47. #define SOLARIS_SA_RESTART 4
  48. #define SOLARIS_SA_SIGINFO 8
  49. #define SOLARIS_SA_NODEFER 16
  50. #define SOLARIS_SA_NOCLDWAIT 0x10000
  51. #define SOLARIS_SA_NOCLDSTOP 0x20000
  52. struct sol_siginfo {
  53. int si_signo;
  54. int si_code;
  55. int si_errno;
  56. union {
  57. char pad[128-3*sizeof(int)];
  58. struct {
  59. s32 _pid;
  60. union {
  61. struct {
  62. s32 _uid;
  63. s32 _value;
  64. } _kill;
  65. struct {
  66. s32 _utime;
  67. int _status;
  68. s32 _stime;
  69. } _cld;
  70. } _pdata;
  71. } _proc;
  72. struct { /* SIGSEGV, SIGBUS, SIGILL and SIGFPE */
  73. u32 _addr;
  74. int _trapno;
  75. } _fault;
  76. struct { /* SIGPOLL, SIGXFSZ */
  77. int _fd;
  78. s32 _band;
  79. } _file;
  80. } _data;
  81. };
  82. #define SOLARIS_WUNTRACED 0x04
  83. #define SOLARIS_WNOHANG 0x40
  84. #define SOLARIS_WEXITED 0x01
  85. #define SOLARIS_WTRAPPED 0x02
  86. #define SOLARIS_WSTOPPED WUNTRACED
  87. #define SOLARIS_WCONTINUED 0x08
  88. #define SOLARIS_WNOWAIT 0x80
  89. #define SOLARIS_TRAP_BRKPT 1
  90. #define SOLARIS_TRAP_TRACE 2
  91. #define SOLARIS_CLD_EXITED 1
  92. #define SOLARIS_CLD_KILLED 2
  93. #define SOLARIS_CLD_DUMPED 3
  94. #define SOLARIS_CLD_TRAPPED 4
  95. #define SOLARIS_CLD_STOPPED 5
  96. #define SOLARIS_CLD_CONTINUED 6
  97. #define SOLARIS_POLL_IN 1
  98. #define SOLARIS_POLL_OUT 2
  99. #define SOLARIS_POLL_MSG 3
  100. #define SOLARIS_POLL_ERR 4
  101. #define SOLARIS_POLL_PRI 5
  102. #define SOLARIS_POLL_HUP 6