sighndh.inc 1.4 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
  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. const
  14. __SUNOS_MAXWIN = 31;
  15. type
  16. twbuf = record
  17. locals : array[0..7] of longint;
  18. ins : array[0..7] of longint;
  19. end;
  20. PSigContext = ^TSigContext;
  21. TSigContext = record
  22. sigc_onstack, { state to restore }
  23. sigc_mask, { sigmask to restore }
  24. sigc_sp, { stack pointer }
  25. sigc_pc, { program counter }
  26. sigc_npc, { next program counter }
  27. sigc_psr, { for condition codes etc }
  28. sigc_g1, { User uses these two registers }
  29. sigc_o0, { within the trampoline code. }
  30. { Now comes information regarding the users window set
  31. * at the time of the signal. }
  32. sigc_oswins : longint; { outstanding windows }
  33. { stack ptrs for each regwin buf }
  34. sigc_spbuf : array[0..__SUNOS_MAXWIN-1] of pchar;
  35. { Windows to restore after signal }
  36. sigc_wbuf : array[0..__SUNOS_MAXWIN] of twbuf;
  37. end;