sysos.inc 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 2001 by Free Pascal development team
  5. This file implements all the base types and limits required
  6. for a minimal POSIX compliant subset required to port the compiler
  7. to a new OS.
  8. See the file COPYING.FPC, included in this distribution,
  9. for details about the copyright.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. **********************************************************************}
  14. { some declarations for Netware API calls }
  15. { I nwlibc.inc}
  16. {$I errno.inc}
  17. {$define INCLUDED_FROM_SYSTEM}
  18. {$I libc.pp}
  19. var
  20. {$ifdef autoHeapRelease}
  21. HeapListAllocResourceTag,
  22. {$endif}
  23. HeapAllocResourceTag : rtag_t;
  24. NLMHandle : pointer;
  25. ReleaseThreadVars : TSysReleaseThreadVars = nil;
  26. AllocateThreadVars: TSysReleaseThreadVars = nil;
  27. SetThreadDataAreaPtr : TSysSetThreadDataAreaPtr = nil;
  28. TerminatingThreadID : dword = 0;
  29. procedure NWSysSetThreadFunctions (atv:TSysReleaseThreadVars;
  30. rtv:TSysReleaseThreadVars;
  31. stdata:TSysSetThreadDataAreaPtr);
  32. begin
  33. AllocateThreadVars := atv;
  34. ReleaseThreadVars := rtv;
  35. SetThreadDataAreaPtr := stdata;
  36. end;
  37. {
  38. $Log$
  39. Revision 1.1 2005-02-06 16:57:18 peter
  40. * threads for go32v2,os,emx,netware
  41. Revision 1.1 2005/02/06 13:06:20 peter
  42. * moved file and dir functions to sysfile/sysdir
  43. * win32 thread in systemunit
  44. }