MODULE PosixCdirent ['dirent.h']; (* generated by genposix.sh, do not modify *) IMPORT SYSTEM, PosixCtypes, PosixCsys_types; TYPE char* = PosixCtypes.char; signed_char* = PosixCtypes.signed_char; unsigned_char* = PosixCtypes.unsigned_char; short* = PosixCtypes.short; short_int* = PosixCtypes.short_int; signed_short* = PosixCtypes.signed_short; signed_short_int* = PosixCtypes.signed_short_int; unsigned_short* = PosixCtypes.unsigned_short; unsigned_short_int* = PosixCtypes.unsigned_short_int; int* = PosixCtypes.int; signed* = PosixCtypes.signed; signed_int* = PosixCtypes.signed_int; unsigned* = PosixCtypes.unsigned; unsigned_int* = PosixCtypes.unsigned_int; long* = PosixCtypes.long; long_int* = PosixCtypes.long_int; signed_long* = PosixCtypes.signed_long; signed_long_int* = PosixCtypes.signed_long_int; unsigned_long* = PosixCtypes.unsigned_long; unsigned_long_int* = PosixCtypes.unsigned_long_int; long_long* = PosixCtypes.long_long; long_long_int* = PosixCtypes.long_long_int; signed_long_long* = PosixCtypes.signed_long_long; signed_long_long_int* = PosixCtypes.signed_long_long_int; unsigned_long_long* = PosixCtypes.unsigned_long_long; unsigned_long_long_int* = PosixCtypes.unsigned_long_long_int; float* = PosixCtypes.float; double* = PosixCtypes.double; long_double* = PosixCtypes.long_double; TYPE PDIR* = POINTER TO DIR; DIR ['DIR'] = LIMITED RECORD [untagged] END; TYPE Pstruct_dirent* = POINTER TO struct_dirent; struct_dirent* ['struct dirent'] = RECORD [noalign] (* 268 *) d_ino*: ino_t; (* 0+4 *) d_name*: ARRAY [untagged] 256 OF SHORTCHAR; (* 11+256 *) END; TYPE ino_t* = PosixCsys_types.ino_t; PROCEDURE [ccall] alphasort* (IN a, b: Pstruct_dirent): int; PROCEDURE [ccall] closedir* (dirp: PDIR): int; PROCEDURE [ccall] dirfd* (dirp: PDIR): int; PROCEDURE [ccall] fdopendir* (fd: int): PDIR; PROCEDURE [ccall] opendir* (IN name: ARRAY [untagged] OF SHORTCHAR): PDIR; PROCEDURE [ccall] readdir* (dirp: PDIR): Pstruct_dirent; PROCEDURE [ccall] readdir_r* (dirp: PDIR; entry: Pstruct_dirent; VAR result: Pstruct_dirent): int; PROCEDURE [ccall] rewinddir* (dirp: PDIR); 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; PROCEDURE [ccall] seekdir* (dirp: PDIR; loc: long); PROCEDURE [ccall] telldir* (dirp: PDIR): long; END PosixCdirent.