Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <DIRENT.H>
Link against: estlib.lib

__MAXNAMLEN

__MAXNAMLEN 255

Description

[Top]


d_ino

d_ino d_fileno

Description

[Top]


Typedef DIR

typedef struct __EPOC32_DIR DIR;

Description

[Top]


Typedef WDIR

typedef struct __EPOC32_WDIR WDIR;

Description

[Top]


opendir(const char *)

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.

[Top]


wopendir(const wchar_t *)

IMPORT_C WDIR* wopendir(const wchar_t *);

Description

A wide-character version of opendir(const char *)opendir(const char *)

Parameters

const wchar_twchar_t *

Return value

__EPOC32_WDIR *

[Top]


readdir(DIR *)

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 direntdirent *

a pointer to a dirent structure, or NULL if an error occurs or end-of-file is reached.

[Top]


wreaddir(WDIR *)

IMPORT_C struct wdirent* wreaddir(WDIR *);

Description

Parameters

__EPOC32_WDIR *

Return value

struct wdirentwdirent *

[Top]


rewinddir(DIR *)

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.

[Top]


closedir(DIR *)

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

__EPOC32_DIR *

Is the directory pointer to close (from opendir(const char *)opendir(const char *)).

Return value

int

a value of zero. On failure, it returns -1

[Top]


wrewinddir(WDIR *)

IMPORT_C void wrewinddir(WDIR *);

Description

Resets the position to the beginning of the directory.

Parameters

__EPOC32_WDIR *

directory

[Top]


wclosedir(WDIR *)

IMPORT_C int wclosedir(WDIR *);

Description

Closes the directory.

Parameters

__EPOC32_WDIR *

directory to close.

Return value

int

[Top]


telldir(const DIR *)

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_toff_t

the current location in the directory stream or -1 if an error occurs.

[Top]


seekdir(DIR *,off_t)

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_toff_t

[Top]


wtelldir(const WDIR *)

IMPORT_C off_t wtelldir(const WDIR *);

Description

Parameters

const __EPOC32_WDIR *

Return value

off_toff_t

[Top]


wseekdir(WDIR *,off_t)

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

__EPOC32_WDIR *

off_toff_t

[Top]


_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

struct _reent_reent *

const char *

Return value

__EPOC32_DIR *

[Top]


_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

struct _reent_reent *

const wchar_twchar_t *

Return value

__EPOC32_WDIR *

[Top]


_readdir_r(struct _reent *,DIR *)

IMPORT_C struct dirent* _readdir_r(struct _reent *, DIR *);

Description

A reentrant version of readdir(DIR *)readdir(DIR *).

Parameters

struct _reent_reent *

__EPOC32_DIR *

Return value

struct direntdirent *