3 C_Errno_t(C_Int_t
) Posix_FileSys_Dirstream_closeDir (C_DirP_t p
) {
4 return closedir ((DIR *) p
);
7 C_Errno_t(C_DirP_t
) Posix_FileSys_Dirstream_openDir (NullString8_t p
) {
8 DIR *res
= opendir ((const char *) p
);
9 return (C_Errno_t(C_DirP_t
))res
;
12 C_Errno_t(C_String_t
) Posix_FileSys_Dirstream_readDir (C_DirP_t d
) {
16 e
= readdir ((DIR *) d
);
17 res
= (NULL
== e
) ? NULL
: e
->d_name
;
18 return (C_Errno_t(C_String_t
))res
;
21 void Posix_FileSys_Dirstream_rewindDir (C_DirP_t p
) {
22 rewinddir ((DIR *) p
);