sighndh.inc 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. TSigContext
  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. PSigContext = ^TSigContext;
  16. TSigContext = record
  17. trap_no : dword;
  18. error_code : dword;
  19. oldmask : dword;
  20. arm_r0 : dword;
  21. arm_r1 : dword;
  22. arm_r2 : dword;
  23. arm_r3 : dword;
  24. arm_r4 : dword;
  25. arm_r5 : dword;
  26. arm_r6 : dword;
  27. arm_r7 : dword;
  28. arm_r8 : dword;
  29. arm_r9 : dword;
  30. arm_r10 : dword;
  31. arm_fp : dword;
  32. arm_ip : dword;
  33. arm_sp : dword;
  34. arm_lr : dword;
  35. arm_pc : dword;
  36. arm_cpsr : dword;
  37. fault_address : dword;
  38. end;
  39. { from include/asm-ppc/signal.h }
  40. stack_t = record
  41. ss_sp: pointer;
  42. ss_flags: longint;
  43. ss_size: size_t;
  44. end;
  45. { from include/asm-arm/ucontext.h }
  46. pucontext = ^tucontext;
  47. tucontext = record
  48. uc_flags : dword;
  49. uc_link : pucontext;
  50. uc_stack : stack_t;
  51. uc_mcontext : TSigContext;
  52. uc_sigmask : sigset_t;
  53. end;
  54. {
  55. $Log$
  56. Revision 1.1 2005-01-30 18:01:15 peter
  57. * signal cleanup for linux
  58. * sigactionhandler instead of tsigaction for bsds
  59. * sigcontext moved to cpu dir
  60. }