sighndh.inc 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. PContext_Info = ^TContext_Info;
  15. TContext_Info = record
  16. magic,
  17. size : DWord;
  18. __padding : cULong;
  19. end;
  20. PFPU_Context = ^TFPU_Context;
  21. TFPU_Context = record
  22. regs : array[0..31] of cULong;
  23. fcc : cULong;
  24. fcsr : cUInt;
  25. end;
  26. PLSX_Context = ^TLSX_Context;
  27. TLSX_Context = record
  28. regs : array[0..31] of array[0..15] of Byte;
  29. fcc : cULong;
  30. fcsr : cUInt;
  31. end;
  32. PLASX_Context = ^TLASX_Context;
  33. TLASX_Context = record
  34. regs : array[0..31] of array[0..31] of Byte;
  35. fcc : cULong;
  36. fcsr : cUInt;
  37. end;
  38. PSigContext = ^TSigContext;
  39. TSigContext = record
  40. pc : cULong;
  41. regs : array[0..31] of cULong;
  42. flags : cUInt;
  43. { __pad : cULong; }
  44. { The following fields should be 16-byte-aligned. Currently the
  45. directive for specifying alignment is buggy, so the preceding
  46. field was added so that the record has the right size.
  47. It is noted by aarch64 and we drop here at present. }
  48. end;
  49. stack_t = record
  50. ss_sp : pointer;
  51. ss_flags : cInt;
  52. ss_size : size_t;
  53. end;
  54. PUContext = ^TUContext;
  55. TUContext = record
  56. uc_flags : cULong;
  57. uc_link : PUContext;
  58. uc_stack : stack_t;
  59. uc_sigmask : sigset_t;
  60. {$if sizeof(sigset_t) < 128 }
  61. __padding : array[1..128 - sizeof(sigset_t)] of byte;
  62. {$endif}
  63. __pad : cULong;
  64. { The following field should be 16-byte-aligned. Currently the
  65. directive for specifying alignment is buggy, so the preceding
  66. field was added so that the record has the right size.
  67. It is noted by aarch64 and we keep here at present. }
  68. uc_mcontext : TSigContext;
  69. end;