initc.pp 570 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {
  2. $Id$
  3. }
  4. unit initc;
  5. interface
  6. type
  7. libcint = longint;
  8. plibcint = ^libcint;
  9. function fpgetCerrno:libcint;
  10. procedure fpsetCerrno(err:libcint);
  11. {$ifndef ver1_0}
  12. property cerrno:libcint read fpgetCerrno write fpsetcerrno;
  13. {$endif}
  14. implementation
  15. function geterrnolocation: Plibcint; cdecl;external 'cygwin1.dll' name '__errno';
  16. function fpgetCerrno:libcint;
  17. begin
  18. fpgetCerrno:=geterrnolocation^;
  19. end;
  20. procedure fpsetCerrno(err:libcint);
  21. begin
  22. geterrnolocation^:=err;
  23. end;
  24. end.
  25. {
  26. $Log$
  27. Revision 1.16 2005-02-14 17:13:32 peter
  28. * truncate log
  29. }