sighndh.inc 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 1999-2000 by Jonas Maebe,
  4. member of the Free Pascal development team.
  5. TSigContext and associated structures.
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. {$packrecords C}
  13. type
  14. PSigContext = ^TSigContext;
  15. TSigContext = record
  16. fault_address : cULong;
  17. regs : array[0..30] of cULong;
  18. sp : cULong;
  19. pc : cULong;
  20. pstate : cULong;
  21. __pad : cULong;
  22. { The following field should be 16-byte-aligned. Currently the
  23. directive for specifying alignment is buggy, so the preceding
  24. field was added so that the record has the right size. }
  25. __reserved : array[0..4095] of cUChar;
  26. end;
  27. stack_t = record
  28. ss_sp : pointer;
  29. ss_flags : cInt;
  30. ss_size : size_t;
  31. end;
  32. PUContext = ^TUContext;
  33. TUContext = record
  34. uc_flags : cULong;
  35. uc_link : PUContext;
  36. uc_stack : stack_t;
  37. uc_mcontext : TSigContext;
  38. uc_sigmask : sigset_t;
  39. end;