| 12345678910111213141516171819202122232425262728293031323334353637383940 | {    This file is part of the Free Pascal run time library.    This unit implements cygwin initialization    Copyright (c) 1999-2006 by the Free Pascal development team.    See the file COPYING.FPC, included in this distribution,    for details about the copyright.    This program is distributed in the hope that it will be useful,    but WITHOUT ANY WARRANTY; without even the implied warranty of    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. **********************************************************************}unit initc;interfaceuses  ctypes;  function fpgetCerrno:cint;procedure fpsetCerrno(err:cint);property cerrno:cint read fpgetCerrno write fpsetcerrno;implementationfunction geterrnolocation: pcint; cdecl;external 'cygwin1.dll' name '__errno';function fpgetCerrno:cint;begin  fpgetCerrno:=geterrnolocation^;end;procedure fpsetCerrno(err:cint);begin  geterrnolocation^:=err;end;end.
 |