2
$Id: syscallh.inc,v 1.1 2004/05/16 20:48:32 marco Exp $
3
Copyright (c) 2002 by Marco van de Voort
5
Header for syscall in system unit for i386 *BSD.
7
This program is free software; you can redistribute it and/or modify
8
it under the terms of the GNU General Public License as published by
9
the Free Software Foundation; either version 2 of the License, or
10
(at your option) any later version.
12
This program is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
17
You should have received a copy of the GNU General Public License
18
along with this program; if not, write to the Free Software
19
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21
****************************************************************************
25
{$ifdef FPC_USE_SYSCALL}
29
TSysResult = int64; // all platforms, cint=32-bit.
30
// On platforms with off_t =64-bit, people should
31
// use int64, and typecast all calls that don't
32
// return off_t to cint.
36
function do_sysCall(sysnr:TSysParam):TSysResult;{$ifndef VER1_0} oldfpccall;{$endif} external name 'FPC_DOSYS0';
37
function do_sysCall(sysnr,param1:TSysParam):TSysResult; {$ifndef VER1_0} oldfpccall;{$endif}external name 'FPC_DOSYS1';
38
function do_sysCall(sysnr,param1,param2:TSysParam):TSysResult; {$ifndef VER1_0} oldfpccall;{$endif} external name 'FPC_DOSYS2';
39
function do_sysCall(sysnr,param1,param2,param3:TSysParam):TSysResult;{$ifndef VER1_0} oldfpccall;{$endif} external name 'FPC_DOSYS3';
40
function do_sysCall(sysnr,param1,param2,param3,param4:TSysParam):TSysResult;{$ifndef VER1_0} oldfpccall;{$endif} external name 'FPC_DOSYS4';
41
function do_sysCall(sysnr,param1,param2,param3,param4,param5:TSysParam):TSysResult; {$ifndef VER1_0} oldfpccall;{$endif} external name 'FPC_DOSYS5';
42
function do_sysCall(sysnr,param1,param2,param3,param4,param5,param6:TSysParam):int64;{$ifndef VER1_0} oldfpccall;{$endif} external name 'FPC_DOSYS6';
45
function do__sysCall(sysnr,param1,param2,param3,param4,param5,param6,param7,Param8:TSysParam):TSysResult; {$ifndef VER1_0} oldfpccall;{$endif} external name 'FPC_DOSYS8';
49
$Log: syscallh.inc,v $
50
Revision 1.1 2004/05/16 20:48:32 marco
53
Revision 1.9 2003/12/30 12:26:21 marco
56
Revision 1.8 2003/09/15 20:08:49 marco
57
* small fixes. FreeBSD now cycles
59
Revision 1.7 2003/09/14 20:15:01 marco
60
* Unix reform stage two. Remove all calls from Unix that exist in Baseunix.
62
Revision 1.6 2003/05/30 19:58:40 marco
63
* Getting NetBSD/i386 to compile.
65
Revision 1.5 2003/01/05 19:01:28 marco
66
* FreeBSD compiles now with baseunix mods.
68
Revision 1.4 2002/10/16 18:44:00 marco
69
* and again for ftruncate (sigh)
71
Revision 1.3 2002/10/16 18:41:14 marco
72
* the 7 param syscall (for lseek and truncate) now returns a int64.
74
Revision 1.2 2002/09/07 16:01:17 peter
75
* old logs removed and tabs fixed
77
Revision 1.1 2002/08/20 08:28:14 marco
78
* Updates for new errno scheme.