summaryrefslogtreecommitdiff
path: root/rtl/netware/initc.pp
blob: d199bf70d7bb8e24de541356af59d22704783a3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
    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
uses
  ctypes;
{$i nwsys.inc}

function fpgetCerrno:cint;
procedure fpsetCerrno(err:cint);

property cerrno:cint read fpgetCerrno write fpsetcerrno;

implementation

function fpgetCerrno:cint;
begin
  fpgetCerrno:=__get_errno_ptr^;
end;

procedure fpsetCerrno(err:cint);
begin
  __get_errno_ptr^:=err;
end;


end.