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
6
The interface part of the baseunix unit.
8
See the file COPYING.FPC, included in this distribution,
9
for details about the copyright.
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.
15
**********************************************************************}
17
Type TGrpArr = Array [0..0] of TGid; { C style array workarounds}
19
TFilDes = Array [0..1] of cInt;
22
// if you are looking for macro definitions, they are moved to bunxovlh.inc
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;
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;
40
Function FpAlarm (seconds : cuint): cuint;
41
Function FpPause : cInt;
42
Function FpSleep (seconds : cuint): cuint;
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;
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;
91
Function FpGetEnv (name : pChar): pChar;
92
// Function FpGetEnv (name : String): pChar; overloaded to bunxovlh.inc
96
Revision 1.11 2003/12/30 12:24:01 marco
99
Revision 1.10 2003/09/27 13:49:41 peter
100
* fpnanosleep exported
102
Revision 1.9 2003/09/27 12:51:33 peter
103
* fpISxxx macros renamed to C compliant fpS_ISxxx
105
Revision 1.8 2003/09/20 12:38:29 marco
106
* FCL now compiles for FreeBSD with new 1.1. Now Linux.
108
Revision 1.7 2003/09/17 11:24:46 marco
109
* fixes for new macro's
111
Revision 1.6 2003/09/17 11:14:25 marco
112
* two extra FPIS added
114
Revision 1.5 2003/09/16 16:13:56 marco
115
* fdset functions renamed to fp<posix name>
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.
120
Revision 1.3 2003/06/01 16:28:41 marco
121
* Enhancements to make the compiler baseunix using.
123
Revision 1.2 2003/01/05 19:11:32 marco
124
* small changes originating from introduction of Baseunix to FreeBSD
126
Revision 1.1 2002/12/18 16:49:02 marco
127
* New RTL. Linux system unit and baseunix operational.
b'\\ No newline at end of file'