DEADSOFTWARE

first cpc release
[cpc.git] / src / native / linux / 486 / C99 / Mod / dirent.cp
1 MODULE C99dirent ['libc.so.6'];
3 (* generated by genposix.sh, do not modify *)
5 IMPORT SYSTEM, C99types, C99sys_types;
7 TYPE
8 char* = C99types.char;
9 signed_char* = C99types.signed_char;
10 unsigned_char* = C99types.unsigned_char;
11 short* = C99types.short;
12 short_int* = C99types.short_int;
13 signed_short* = C99types.signed_short;
14 signed_short_int* = C99types.signed_short_int;
15 unsigned_short* = C99types.unsigned_short;
16 unsigned_short_int* = C99types.unsigned_short_int;
17 int* = C99types.int;
18 signed* = C99types.signed;
19 signed_int* = C99types.signed_int;
20 unsigned* = C99types.unsigned;
21 unsigned_int* = C99types.unsigned_int;
22 long* = C99types.long;
23 long_int* = C99types.long_int;
24 signed_long* = C99types.signed_long;
25 signed_long_int* = C99types.signed_long_int;
26 unsigned_long* = C99types.unsigned_long;
27 unsigned_long_int* = C99types.unsigned_long_int;
28 long_long* = C99types.long_long;
29 long_long_int* = C99types.long_long_int;
30 signed_long_long* = C99types.signed_long_long;
31 signed_long_long_int* = C99types.signed_long_long_int;
32 unsigned_long_long* = C99types.unsigned_long_long;
33 unsigned_long_long_int* = C99types.unsigned_long_long_int;
34 float* = C99types.float;
35 double* = C99types.double;
36 long_double* = C99types.long_double;
38 TYPE
39 PDIR* = POINTER TO DIR;
40 DIR = LIMITED RECORD [untagged] END;
42 TYPE
43 Pstruct_dirent* = POINTER TO struct_dirent;
44 struct_dirent* = RECORD [noalign] (* 268 *)
45 d_ino*: ino_t; (* 0+4 *)
46 _____align0_____: ARRAY 7 OF BYTE;
47 d_name*: ARRAY [untagged] 256 OF SHORTCHAR; (* 11+256 *)
48 _____align1_____: ARRAY 1 OF BYTE;
49 END;
51 TYPE
52 ino_t* = C99sys_types.ino_t;
54 PROCEDURE [ccall] alphasort* (IN a, b: Pstruct_dirent): int;
55 PROCEDURE [ccall] closedir* (dirp: PDIR): int;
56 PROCEDURE [ccall] dirfd* (dirp: PDIR): int;
57 PROCEDURE [ccall] fdopendir* (fd: int): PDIR;
58 PROCEDURE [ccall] opendir* (IN name: ARRAY [untagged] OF SHORTCHAR): PDIR;
59 PROCEDURE [ccall] readdir* (dirp: PDIR): Pstruct_dirent;
60 PROCEDURE [ccall] readdir_r* (dirp: PDIR; entry: Pstruct_dirent; VAR result: Pstruct_dirent): int;
61 PROCEDURE [ccall] rewinddir* (dirp: PDIR);
62 PROCEDURE [ccall] scandir* (IN dirp: ARRAY [untagged] OF SHORTCHAR; filter: PROCEDURE [ccall] (IN d: struct_dirent): int; compar: PROCEDURE [ccall] (IN a, b: Pstruct_dirent): int): int;
63 PROCEDURE [ccall] seekdir* (dirp: PDIR; loc: long);
64 PROCEDURE [ccall] telldir* (dirp: PDIR): long;
66 END C99dirent.