ucontexth.inc 1.3 KB

123456789101112131415161718192021
  1. type
  2. TMakeContextProc = procedure; // Used anonymously in header file.
  3. function getcontext(__ucp:Pucontext_t):longint;cdecl;external clib name 'getcontext';
  4. function setcontext(__ucp:Pucontext_t):longint;cdecl;external clib name 'setcontext';
  5. function swapcontext(__oucp:Pucontext_t; __ucp:Pucontext_t):longint;cdecl;external clib name 'swapcontext';
  6. procedure makecontext(__ucp:Pucontext_t; __func:TMakeContextProc; __argc:longint; args:array of const);cdecl;external clib name 'makecontext';
  7. procedure makecontext(__ucp:Pucontext_t; __func:TMakeContextProc; __argc:longint);cdecl;external clib name 'makecontext';
  8. { ---------------------------------------------------------------------
  9. Borland compatibility types
  10. ---------------------------------------------------------------------}
  11. // Type
  12. function getcontext(var __ucp:ucontext_t):longint;cdecl;external clib name 'getcontext';
  13. function setcontext(const __ucp: ucontext_t):longint;cdecl;external clib name 'setcontext';
  14. function swapcontext(var __oucp:ucontext_t; const __ucp: ucontext_t):longint;cdecl;external clib name 'swapcontext';
  15. procedure makecontext(var __ucp:ucontext_t; __func:TMakeContextProc; __argc:longint; args:array of const);cdecl;external clib name 'makecontext';
  16. procedure makecontext(var __ucp:ucontext_t; __func:TMakeContextProc; __argc:longint);cdecl;external clib name 'makecontext';