sighndh.inc 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1999-2000 by Jonas Maebe,
  5. member of the Free Pascal development team.
  6. Sigcontext and Sigaction
  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. {$packrecords C}
  14. type
  15. tfpreg = record
  16. significand: array[0..3] of word;
  17. exponent: word;
  18. end;
  19. pfpstate = ^tfpstate;
  20. tfpstate = record
  21. cw, sw, tag, ipoff, cssel, dataoff, datasel: cardinal;
  22. st: array[0..7] of tfpreg;
  23. status: cardinal;
  24. end;
  25. PSigContext = ^TSigContext;
  26. TSigContext = record
  27. gs, __gsh: word;
  28. fs, __fsh: word;
  29. es, __esh: word;
  30. ds, __dsh: word;
  31. edi: cardinal;
  32. esi: cardinal;
  33. ebp: cardinal;
  34. esp: cardinal;
  35. ebx: cardinal;
  36. edx: cardinal;
  37. ecx: cardinal;
  38. eax: cardinal;
  39. trapno: cardinal;
  40. err: cardinal;
  41. eip: cardinal;
  42. cs, __csh: word;
  43. eflags: cardinal;
  44. esp_at_signal: cardinal;
  45. ss, __ssh: word;
  46. fpstate: pfpstate;
  47. oldmask: cardinal;
  48. cr2: cardinal;
  49. end;
  50. {
  51. $Log$
  52. Revision 1.1 2005-01-30 18:01:15 peter
  53. * signal cleanup for linux
  54. * sigactionhandler instead of tsigaction for bsds
  55. * sigcontext moved to cpu dir
  56. }