~ubuntu-branches/debian/lenny/fpc/lenny

« back to all changes in this revision

Viewing changes to rtl/bsd/x86_64/syscallh.inc

  • Committer: Bazaar Package Importer
  • Author(s): Mazen Neifer, Torsten Werner, Mazen Neifer
  • Date: 2008-05-17 17:12:11 UTC
  • mfrom: (3.1.9 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080517171211-9qi33xhd9evfa0kg
Tags: 2.2.0-dfsg1-9
[ Torsten Werner ]
* Add Mazen Neifer to Uploaders field.

[ Mazen Neifer ]
* Moved FPC sources into a version dependent directory from /usr/share/fpcsrc
  to /usr/share/fpcsrc/${FPCVERSION}. This allow installing more than on FPC
  release.
* Fixed far call issue in compiler preventing building huge binearies.
  (closes: #477743)
* Updated building dependencies, recomennded and suggested packages.
* Moved fppkg to fp-utils as it is just a helper tool and is not required by
  compiler.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
{
2
 
    $Id: syscallh.inc,v 1.1 2004/05/16 20:48:32 marco Exp $
3
 
    Copyright (c) 2002 by Marco van de Voort
4
 
 
5
 
    Header for syscall in system unit for i386 *BSD.
6
 
 
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.
11
 
 
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.
16
 
 
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.
20
 
 
21
 
 ****************************************************************************
22
 
 
23
 
}
24
 
 
25
 
{$ifdef FPC_USE_SYSCALL}
26
 
 
27
 
Type
28
 
 
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.
33
 
 
34
 
  TSysParam  = int64;
35
 
 
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';
43
 
 
44
 
// special
45
 
function do__sysCall(sysnr,param1,param2,param3,param4,param5,param6,param7,Param8:TSysParam):TSysResult; {$ifndef VER1_0} oldfpccall;{$endif}  external name 'FPC_DOSYS8';
46
 
{$endif}
47
 
 
48
 
{
49
 
  $Log: syscallh.inc,v $
50
 
  Revision 1.1  2004/05/16 20:48:32  marco
51
 
   * Initial versions
52
 
 
53
 
  Revision 1.9  2003/12/30 12:26:21  marco
54
 
   * FPC_USE_LIBC
55
 
 
56
 
  Revision 1.8  2003/09/15 20:08:49  marco
57
 
   * small fixes. FreeBSD now cycles
58
 
 
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.
61
 
 
62
 
  Revision 1.6  2003/05/30 19:58:40  marco
63
 
   * Getting NetBSD/i386 to compile.
64
 
 
65
 
  Revision 1.5  2003/01/05 19:01:28  marco
66
 
   * FreeBSD compiles now with baseunix mods.
67
 
 
68
 
  Revision 1.4  2002/10/16 18:44:00  marco
69
 
   * and again for ftruncate (sigh)
70
 
 
71
 
  Revision 1.3  2002/10/16 18:41:14  marco
72
 
   * the 7 param syscall (for lseek and truncate) now returns a int64.
73
 
 
74
 
  Revision 1.2  2002/09/07 16:01:17  peter
75
 
    * old logs removed and tabs fixed
76
 
 
77
 
  Revision 1.1  2002/08/20 08:28:14  marco
78
 
   * Updates for new errno scheme.
79
 
 
80
 
}