signal.inc 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 2001 by Free Pascal development team
  5. This file implements all the types/constants related
  6. to signal for Solaris.
  7. See the file COPYING.FPC, included in this distribution,
  8. for details about the copyright.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12. **********************************************************************}
  13. { requires osposixh types first }
  14. type
  15. sigset_t = array[0..3] of cardinal; { used for additional signal }
  16. sighandler_t = procedure (signo: cint); cdecl;
  17. { signal services }
  18. sigactionrec = packed record
  19. sa_flags : cint;
  20. sa_handler : sighandler_t; { this is overlapped with sa_sigaction field on solaris }
  21. sa_mask : sigset_t;
  22. sa_resv : array[1..2] of cint; { for non-_LP64 platforms only }
  23. end;
  24. const
  25. {************************ signals *****************************}
  26. { more can be provided. Herein are only included the required }
  27. { values. }
  28. {**************************************************************}
  29. SIGABRT = 6; { abnormal termination }
  30. SIGALRM = 14; { alarm clock (used with alarm() }
  31. SIGFPE = 8; { illegal arithmetic operation }
  32. SIGHUP = 1; { Hangup }
  33. SIGILL = 4; { Illegal instruction }
  34. SIGINT = 2; { Interactive attention signal }
  35. SIGKILL = 9; { Kill, cannot be caught }
  36. SIGPIPE = 13; { Broken pipe signal }
  37. SIGQUIT = 3; { Interactive termination signal }
  38. SIGSEGV = 11; { Detection of invalid memory reference }
  39. SIGTERM = 15; { Termination request }
  40. SIGUSR1 = 16; { Application defined signal 1 }
  41. SIGUSR2 = 17; { Application defined signal 2 }
  42. SIGCHLD = 18; { Child process terminated / stopped }
  43. SIGCONT = 25; { Continue if stopped }
  44. SIGSTOP = 23; { Stop signal. cannot be cuaght }
  45. SIGSTP = 24; { Interactive stop signal }
  46. SIGTTIN = 26; { Background read from TTY }
  47. SIGTTOU = 27; { Background write to TTY }
  48. SIGBUS = 10; { Access to undefined memory }
  49. { Solaris specific signals }
  50. SIGTRAP = 5; { trace trap (not reset when caught) }
  51. SIGIOT = 6; { IOT instruction }
  52. SIGEMT = 7; { EMT instruction }
  53. SIGSYS = 12; { bad argument to system call }
  54. SIGCLD = 18; { child status change }
  55. SIGPWR = 19; { power-fail restart }
  56. SIGWINCH = 20; { window size change }
  57. SIGURG = 21; { urgent socket condition }
  58. SIGPOLL = 22; { pollable event occured }
  59. SIGIO = SIGPOLL;{ socket I/O possible (SIGPOLL alias) }
  60. SIGVTALRM = 28; { virtual timer expired }
  61. SIGPROF = 29; { profiling timer expired }
  62. SIGXCPU = 30; { exceeded cpu limit }
  63. SIGXFSZ = 31; { exceeded file size limit }
  64. SIGWAITING = 32; { process's lwps are blocked }
  65. SIGLWP = 33; { special signal used by thread library }
  66. SIGFREEZE = 34; { special signal used by CPR }
  67. SIGTHAW = 35; { special signal used by CPR }
  68. SIGCANCEL = 36; { thread cancellation signal used by libthread }
  69. SIGLOST = 37; { resource lost (eg, record-lock lost) }
  70. {
  71. $Log$
  72. Revision 1.2 2004-11-06 22:22:28 florian
  73. * some sunos stuff from 1.0.x merged
  74. }