1 MODULE PosixCdirent
['dirent
.h'
];
3 (* generated by genposix.sh, do not modify *)
5 IMPORT SYSTEM
, PosixCtypes
, PosixCsys_types
;
8 char
* = PosixCtypes
.char
;
9 signed_char
* = PosixCtypes
.signed_char
;
10 unsigned_char
* = PosixCtypes
.unsigned_char
;
11 short
* = PosixCtypes
.short
;
12 short_int
* = PosixCtypes
.short_int
;
13 signed_short
* = PosixCtypes
.signed_short
;
14 signed_short_int
* = PosixCtypes
.signed_short_int
;
15 unsigned_short
* = PosixCtypes
.unsigned_short
;
16 unsigned_short_int
* = PosixCtypes
.unsigned_short_int
;
17 int
* = PosixCtypes
.int
;
18 signed
* = PosixCtypes
.signed
;
19 signed_int
* = PosixCtypes
.signed_int
;
20 unsigned
* = PosixCtypes
.unsigned
;
21 unsigned_int
* = PosixCtypes
.unsigned_int
;
22 long
* = PosixCtypes
.long
;
23 long_int
* = PosixCtypes
.long_int
;
24 signed_long
* = PosixCtypes
.signed_long
;
25 signed_long_int
* = PosixCtypes
.signed_long_int
;
26 unsigned_long
* = PosixCtypes
.unsigned_long
;
27 unsigned_long_int
* = PosixCtypes
.unsigned_long_int
;
28 long_long
* = PosixCtypes
.long_long
;
29 long_long_int
* = PosixCtypes
.long_long_int
;
30 signed_long_long
* = PosixCtypes
.signed_long_long
;
31 signed_long_long_int
* = PosixCtypes
.signed_long_long_int
;
32 unsigned_long_long
* = PosixCtypes
.unsigned_long_long
;
33 unsigned_long_long_int
* = PosixCtypes
.unsigned_long_long_int
;
34 float
* = PosixCtypes
.float
;
35 double
* = PosixCtypes
.double
;
36 long_double
* = PosixCtypes
.long_double
;
39 PDIR
* = POINTER TO DIR
;
40 DIR
['DIR'
] = LIMITED
RECORD [untagged
] END;
43 Pstruct_dirent
* = POINTER TO struct_dirent
;
44 struct_dirent
* ['struct dirent'
] = RECORD [noalign
] (* 268 *)
45 d_ino
*: ino_t
; (* 0+4 *)
46 d_name
*: ARRAY [untagged
] 256 OF SHORTCHAR
; (* 11+256 *)
50 ino_t
* = PosixCsys_types
.ino_t
;
52 PROCEDURE [ccall
] alphasort
* (IN a
, b
: Pstruct_dirent
): int
;
53 PROCEDURE [ccall
] closedir
* (dirp
: PDIR
): int
;
54 PROCEDURE [ccall
] dirfd
* (dirp
: PDIR
): int
;
55 PROCEDURE [ccall
] fdopendir
* (fd
: int
): PDIR
;
56 PROCEDURE [ccall
] opendir
* (IN name
: ARRAY [untagged
] OF SHORTCHAR
): PDIR
;
57 PROCEDURE [ccall
] readdir
* (dirp
: PDIR
): Pstruct_dirent
;
58 PROCEDURE [ccall
] readdir_r
* (dirp
: PDIR
; entry
: Pstruct_dirent
; VAR result
: Pstruct_dirent
): int
;
59 PROCEDURE [ccall
] rewinddir
* (dirp
: PDIR
);
60 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
;
61 PROCEDURE [ccall
] seekdir
* (dirp
: PDIR
; loc
: long
);
62 PROCEDURE [ccall
] telldir
* (dirp
: PDIR
): long
;