sigactionh.inc 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. type
  2. P_sigaction = ^_sigaction;
  3. _sigaction = record // Renamed, avoid conflict with sigaction function
  4. case integer of
  5. 1: (sa_handler : __sighandler_t;
  6. sa_mask : __sigset_t;
  7. sa_flags : longint;
  8. sa_restorer : procedure ;cdecl;
  9. );
  10. // Kylix compatibility
  11. 2: (__sigaction_handler: __sighandler_t);
  12. end;
  13. const
  14. SA_NOCLDSTOP = 1;
  15. SA_NOCLDWAIT = 2;
  16. SA_SIGINFO = 4;
  17. const
  18. SA_ONSTACK = $08000000;
  19. SA_RESTART = $10000000;
  20. SA_NODEFER = $40000000;
  21. SA_RESETHAND = $80000000;
  22. SA_INTERRUPT = $20000000;
  23. SA_NOMASK = SA_NODEFER;
  24. SA_ONESHOT = SA_RESETHAND;
  25. SA_STACK = SA_ONSTACK;
  26. const
  27. SIG_BLOCK = 0;
  28. SIG_UNBLOCK = 1;
  29. SIG_SETMASK = 2;
  30. { ---------------------------------------------------------------------
  31. Borland compatibility types
  32. ---------------------------------------------------------------------}
  33. Type
  34. TSigAction = _sigaction;
  35. PSigAction = ^TSigAction;
  36. TRestoreHandler = procedure; cdecl;
  37. __sigaction = _sigaction;
  38. TSigActionHandler = procedure(Signal: Integer); cdecl;