blob: 3e79efa61cb07d196d00520f2fcbd7f550a293c6 (
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
40
41
42
43
44
45
46
47
48
|
const
MNTTAB = _PATH_MNTTAB;
MOUNTED = _PATH_MOUNTED;
MNTTYPE_IGNORE = 'ignore';
MNTTYPE_NFS = 'nfs';
MNTTYPE_SWAP = 'swap';
MNTOPT_DEFAULTS = 'defaults';
MNTOPT_RO = 'ro';
MNTOPT_RW = 'rw';
MNTOPT_SUID = 'suid';
MNTOPT_NOSUID = 'nosuid';
MNTOPT_NOAUTO = 'noauto';
type
Pmntent = ^mntent;
mntent = record
mnt_fsname : Pchar;
mnt_dir : Pchar;
mnt_type : Pchar;
mnt_opts : Pchar;
mnt_freq : longint;
mnt_passno : longint;
end;
function setmntent(__file:Pchar; __mode:Pchar):PFILE;cdecl;external clib name 'setmntent';
function getmntent(__stream:PFILE):Pmntent;cdecl;external clib name 'getmntent';
function getmntent_r(__stream:PFILE; __result:Pmntent; __buffer:Pchar; __bufsize:longint):Pmntent;cdecl;external clib name 'getmntent_r';
function addmntent(__stream:PFILE; __mnt:Pmntent):longint;cdecl;external clib name 'addmntent';
function endmntent(__stream:PFILE):longint;cdecl;external clib name 'endmntent';
function hasmntopt(__mnt:Pmntent; __opt:Pchar):Pchar;cdecl;external clib name 'hasmntopt';
{ ---------------------------------------------------------------------
Borland compatibility types
---------------------------------------------------------------------}
Type
TMountEntry = mntent;
PMountEntry = ^TMountEntry;
function getmntent_r(__stream:PFILE; var __result: mntent; __buffer:Pchar; __bufsize:longint):Pmntent;cdecl;external clib name 'getmntent_r';
function addmntent(__stream:PFILE; const __mnt: mntent):longint;cdecl;external clib name 'addmntent';
function hasmntopt(const __mnt: mntent; __opt:Pchar):Pchar;cdecl;external clib name 'hasmntopt';
|