initc.pp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 2004 the Free Pascal development team
  5. This file handles the clib errno abstraction for netware.
  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. unit initc;
  13. interface
  14. {$i nwsys.inc}
  15. type libcint = longint;
  16. plibcint = ^libcint;
  17. function fpgetCerrno:libcint;
  18. procedure fpsetCerrno(err:libcint);
  19. {$ifdef HASGLOBALPROPERTY}
  20. property cerrno:libcint read fpgetCerrno write fpsetcerrno;
  21. {$endif HASGLOBALPROPERTY}
  22. implementation
  23. function fpgetCerrno:libcint;
  24. begin
  25. fpgetCerrno:=__get_errno_ptr^;
  26. end;
  27. procedure fpsetCerrno(err:libcint);
  28. begin
  29. __get_errno_ptr^:=err;
  30. end;
  31. end.
  32. {
  33. $Log$
  34. Revision 1.1 2004-07-30 14:51:21 armin
  35. first version for netware
  36. }