sighndh.inc 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. type
  14. PSigContext = ^TSigContext;
  15. TSigContext = record
  16. trap_no : dword;
  17. error_code : dword;
  18. oldmask : dword;
  19. arm_r0 : dword;
  20. arm_r1 : dword;
  21. arm_r2 : dword;
  22. arm_r3 : dword;
  23. arm_r4 : dword;
  24. arm_r5 : dword;
  25. arm_r6 : dword;
  26. arm_r7 : dword;
  27. arm_r8 : dword;
  28. arm_r9 : dword;
  29. arm_r10 : dword;
  30. arm_fp : dword;
  31. arm_ip : dword;
  32. arm_sp : dword;
  33. arm_lr : dword;
  34. arm_pc : dword;
  35. arm_cpsr : dword;
  36. fault_address : dword;
  37. end;
  38. { from include/asm-ppc/signal.h }
  39. stack_t = record
  40. ss_sp: pointer;
  41. ss_flags: longint;
  42. ss_size: size_t;
  43. end;
  44. { from include/asm-arm/ucontext.h }
  45. pucontext = ^tucontext;
  46. tucontext = record
  47. uc_flags : dword;
  48. uc_link : pucontext;
  49. uc_stack : stack_t;
  50. uc_mcontext : TSigContext;
  51. uc_sigmask : sigset_t;
  52. end;