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

« back to all changes in this revision

Viewing changes to rtl/unix/bunxh.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: bunxh.inc,v 1.11 2003/12/30 12:24:01 marco Exp $
3
 
    This file is part of the Free Pascal run time library.
4
 
    Copyright (c) 2002 by Marco van de Voort
5
 
 
6
 
    The interface part of the baseunix unit.
7
 
 
8
 
    See the file COPYING.FPC, included in this distribution,
9
 
    for details about the copyright.
10
 
 
11
 
    This program is distributed in the hope that it will be useful,
12
 
    but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14
 
 
15
 
 **********************************************************************}
16
 
 
17
 
Type TGrpArr = Array [0..0] of TGid;            { C style array workarounds}
18
 
     pGrpArr = ^TGrpArr;
19
 
     TFilDes = Array [0..1] of cInt;
20
 
     pFilDes = ^TFilDes;
21
 
 
22
 
// if you are looking for macro definitions, they are moved to bunxovlh.inc
23
 
 
24
 
    Function  FpSigProcMask(how : cInt; nset : pSigSet; oset : pSigSet): cInt;
25
 
    Function  FpSigProcMask(how : cInt; Const nset : TSigSet; var oset : TSigSet): cInt;
26
 
    Function  FpSigPending (var nset : TSigSet): cInt;
27
 
    Function  FpSigSuspend (Const sigmask : TSigSet): cInt;
28
 
 
29
 
    Function  FpUmask      (cmask : TMode): TMode;
30
 
    Function  FpLink       (existing : pChar; newone : pChar): cInt;
31
 
    Function  FpMkfifo     (path : pChar; Mode : TMode): cInt;
32
 
    Function  FpChmod      (path : pChar; Mode : TMode): cInt;
33
 
    Function  FpChown      (path : pChar; owner : TUid; group : TGid): cInt;
34
 
    Function  FpUtime      (path : pChar; times : putimbuf): cInt;
35
 
    Function  FpPipe       (var fildes : tfildes):cInt;
36
 
    Function  FpDup        (fildes : cInt): cInt;
37
 
    Function  FpDup2       (fildes, fildes2 : cInt): cInt;
38
 
    Function  FpTimes      (var buffer : tms): TClock;
39
 
 
40
 
    Function  FpAlarm      (seconds : cuint): cuint;
41
 
    Function  FpPause : cInt;
42
 
    Function  FpSleep      (seconds : cuint): cuint;
43
 
 
44
 
    Function  FpGetpid  : TPid;
45
 
    Function  FpGetppid : TPid;
46
 
    Function  FpGetuid  : TUid;
47
 
    Function  FpGeteuid : TUid;
48
 
    Function  FpGetgid  : TGid;
49
 
    Function  FpGetegid : TGid;
50
 
    Function  FpSetuid     (uid : TUid): cInt;
51
 
    Function  FpSetgid     (gid : TGid): cInt;
52
 
    Function  FpGetgroups (gidsetsize : cInt; var grouplist : tgrparr): cInt;
53
 
    Function  FpGetpgrp : TPid;
54
 
    Function  FpSetsid  : TPid;
55
 
    Function  FpFcntl      (fildes : cInt; cmd : cInt): cInt;
56
 
    Function  FpFcntl      (fildes : cInt; cmd : cInt; arg : cInt): cInt;
57
 
    Function  FpFcntl      (fildes : cInt; cmd : cInt; var arg : flock): cInt;
58
 
 
59
 
    Function  FpGetcwd     (path:pChar; siz:TSize):pChar;
60
 
    Function  FpFork : TPid;
61
 
    Function  FpExecve     (path : pChar; argv : ppChar; envp: ppChar): cInt;
62
 
    Function  FpExecv      (path : pChar; argv : ppChar): cInt;
63
 
    Function  FpWaitpid    (pid : TPid; stat_loc : pcInt; options: cInt): TPid;
64
 
    Function  FpWait       (var stat_loc : cInt): TPid;
65
 
    Procedure FpExit       (Status : cInt);
66
 
    Function  FpKill       (pid : TPid; sig: cInt): cInt;
67
 
    Function  FpUname      (var name: utsname): cInt;
68
 
    Function  FpOpendir    (dirname : pChar): pDir;
69
 
    Function  FpReaddir    (var dirp : Dir) : pDirent;
70
 
    Function  FpClosedir   (var dirp : Dir): cInt;
71
 
    Function  FpChdir      (path : pChar): cInt;
72
 
    Function  FpOpen       (path : pChar; flags : cInt; Mode: TMode):cInt;
73
 
    Function  FpMkdir      (path : pChar; Mode: TMode):cInt;
74
 
    Function  FpUnlink     (path : pChar): cInt;
75
 
    Function  FpRmdir      (path : pChar): cInt;
76
 
    Function  FpRename     (old  : pChar; newpath: pChar): cInt;
77
 
    Function  FpFStat      (fd : cInt; var sb : stat): cInt;
78
 
    Function  FpStat       (path: pChar; var buf : stat): cInt;
79
 
    Function  FpAccess     (pathname : pChar; aMode : cInt): cInt;
80
 
    Function  FpClose      (fd : cInt): cInt;
81
 
    Function  FpRead       (fd : cInt; buf: pChar; nbytes : TSize): TSsize;
82
 
    Function  FpWrite      (fd : cInt; buf:pChar; nbytes : TSize): TSsize;
83
 
    Function  FpLseek      (fd : cInt; offset : TOff; whence : cInt): TOff;
84
 
    Function  FpTime       (var tloc : TTime): TTime;
85
 
    Function  FpFtruncate  (fd : cInt; flength : TOff): cInt;
86
 
    Function  FPSigaction  (sig: cInt; act : pSigActionRec; oact : pSigActionRec): cint;
87
 
    Function  FPSelect     (N:cint;readfds,writefds,exceptfds:pfdSet;TimeOut:PTimeVal):cint;
88
 
    Function  FpIOCtl      (Handle:cint;Ndx: culong;Data: Pointer):cint;
89
 
    Function  FpNanoSleep  (req : ptimespec;rem : ptimespec):cint;
90
 
 
91
 
    Function  FpGetEnv     (name : pChar): pChar;
92
 
//    Function  FpGetEnv     (name : String): pChar; overloaded to bunxovlh.inc
93
 
 
94
 
{
95
 
  $Log: bunxh.inc,v $
96
 
  Revision 1.11  2003/12/30 12:24:01  marco
97
 
   * FPC_USE_LIBC
98
 
 
99
 
  Revision 1.10  2003/09/27 13:49:41  peter
100
 
    * fpnanosleep exported
101
 
 
102
 
  Revision 1.9  2003/09/27 12:51:33  peter
103
 
    * fpISxxx macros renamed to C compliant fpS_ISxxx
104
 
 
105
 
  Revision 1.8  2003/09/20 12:38:29  marco
106
 
   * FCL now compiles for FreeBSD with new 1.1. Now Linux.
107
 
 
108
 
  Revision 1.7  2003/09/17 11:24:46  marco
109
 
   * fixes for new macro's
110
 
 
111
 
  Revision 1.6  2003/09/17 11:14:25  marco
112
 
   * two extra FPIS added
113
 
 
114
 
  Revision 1.5  2003/09/16 16:13:56  marco
115
 
   * fdset functions renamed to fp<posix name>
116
 
 
117
 
  Revision 1.4  2003/09/14 20:15:01  marco
118
 
   * Unix reform stage two. Remove all calls from Unix that exist in Baseunix.
119
 
 
120
 
  Revision 1.3  2003/06/01 16:28:41  marco
121
 
   * Enhancements to make the compiler baseunix using.
122
 
 
123
 
  Revision 1.2  2003/01/05 19:11:32  marco
124
 
   * small changes originating from introduction of Baseunix to FreeBSD
125
 
 
126
 
  Revision 1.1  2002/12/18 16:49:02  marco
127
 
   * New RTL. Linux system unit and baseunix operational.
128
 
 
129
 
 
130
 
}
 
 
b'\\ No newline at end of file'