mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-02 13:19:34 +01:00
first version for netware
This commit is contained in:
parent
8ad5722cb1
commit
3cb6e124b3
49
rtl/netware/initc.pp
Normal file
49
rtl/netware/initc.pp
Normal file
@ -0,0 +1,49 @@
|
||||
{
|
||||
$Id$
|
||||
This file is part of the Free Pascal run time library.
|
||||
Copyright (c) 2004 the Free Pascal development team
|
||||
|
||||
This file handles the clib errno abstraction for netware.
|
||||
|
||||
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;
|
||||
interface
|
||||
{$i nwsys.inc}
|
||||
|
||||
type libcint = longint;
|
||||
plibcint = ^libcint;
|
||||
|
||||
function fpgetCerrno:libcint;
|
||||
procedure fpsetCerrno(err:libcint);
|
||||
|
||||
{$ifdef HASGLOBALPROPERTY}
|
||||
property cerrno:libcint read fpgetCerrno write fpsetcerrno;
|
||||
{$endif HASGLOBALPROPERTY}
|
||||
|
||||
implementation
|
||||
|
||||
function fpgetCerrno:libcint;
|
||||
begin
|
||||
fpgetCerrno:=__get_errno_ptr^;
|
||||
end;
|
||||
|
||||
procedure fpsetCerrno(err:libcint);
|
||||
begin
|
||||
__get_errno_ptr^:=err;
|
||||
end;
|
||||
|
||||
|
||||
end.
|
||||
{
|
||||
$Log$
|
||||
Revision 1.1 2004-07-30 14:51:21 armin
|
||||
first version for netware
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user