#include <DIRENT.H>
Link against:
estlib.lib
__MAXNAMLEN 255
Description
d_ino d_fileno
Description
typedef struct __EPOC32_DIR DIR;
Description
typedef struct __EPOC32_WDIR WDIR;
Description
IMPORT_C DIR* opendir(const char *);
Description
Opens a directory.
Parameters
const char * |
path to the directory to be opened.
|
|
Return value
__EPOC32_DIR *
|
a pointer to the dir object. This object describes the directory and is used in subsequent operations on the directory If
error, returns NULL.
|
|
wopendir(const wchar_t *)
IMPORT_C WDIR* wopendir(const wchar_t *);
Description
A wide-character version of opendir(const char *)
opendir(const char *)
Parameters
Return value
IMPORT_C struct dirent* readdir(DIR *);
Description
Returns a pointer to a dirent structure representing the next directory entry in the directory stream pointed to be dir. It
returns NULL on reaching the end-of-file or if an error occurred.
Parameters
__EPOC32_DIR * |
Points to the directory stream of the directory.
|
|
Return value
struct dirent dirent * |
a pointer to a dirent structure, or NULL if an error occurs or end-of-file is reached.
|
|
IMPORT_C struct wdirent* wreaddir(WDIR *);
Description
Parameters
Return value
IMPORT_C void rewinddir(DIR *);
Description
Sets the position (associated with the directory stream that dirp points to) to the beginning of the directory. Additionally,
it causes the directory stream to refer to the current state of the corresponding directory.
Parameters
__EPOC32_DIR * |
Points to the directory stream of the directory to rewind.
|
|
IMPORT_C int closedir(DIR *);
Description
closes the directory stream that dirp refers to. The memory associated with the directory stream is released. When this function
returns, the value of dirp no longer point to an accessible object of type DIR
Parameters
Return value
int |
a value of zero. On failure, it returns -1
|
|
IMPORT_C void wrewinddir(WDIR *);
Description
Resets the position to the beginning of the directory.
Parameters
__EPOC32_WDIR * |
directory
|
|
IMPORT_C int wclosedir(WDIR *);
Description
Closes the directory.
Parameters
__EPOC32_WDIR * |
directory to close.
|
|
Return value
IMPORT_C off_t telldir(const DIR *);
Description
Returns the current location associated with the directory stream dir.
Parameters
const __EPOC32_DIR * |
Points to the directory stream of the directory
|
|
Return value
off_t off_t
|
the current location in the directory stream or -1 if an error occurs.
|
|
IMPORT_C void seekdir(DIR *, off_t);
Description
sets the position of the next readdir(DIR *)
readdir(DIR *)
operation on the directory stream specified by dp to the position specified by index
Parameters
__EPOC32_DIR * |
Points to the directory stream of the directory
|
off_t off_t
|
|
|
IMPORT_C off_t wtelldir(const WDIR *);
Description
Parameters
Return value
IMPORT_C void wseekdir(WDIR *, off_t);
Description
Sets the index position of the directory stream specified by dp to the position specified by index.
Parameters
_opendir_r(struct _reent *,const char *)
IMPORT_C DIR* _opendir_r(struct _reent *, const char *);
Description
A reentrant version of opendir(const char *)
opendir(const char *)
.
Parameters
Return value
_wopendir_r(struct _reent *,const wchar_t *)
IMPORT_C WDIR* _wopendir_r(struct _reent *, const wchar_t *);
Description
A reentrant version of wopendir(const wchar_t *)
wopendir(const wchar_t *)
.
Parameters
Return value
_readdir_r(struct _reent *,DIR *)
IMPORT_C struct dirent* _readdir_r(struct _reent *, DIR *);
Description
A reentrant version of readdir(DIR *)
readdir(DIR *)
.
Parameters
Return value