sigactionh.inc 911 B

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