Defines | |
#define | HAVE_GETDENTS64 1 |
If the system fulfills all necessary checks to use getdents(), this macro is set. | |
Typedefs | |
typedef int | dir__handle |
The type of handle. | |
typedef struct dirent64 | fsvs_dirent |
A compatibility structure. | |
Functions | |
int | dir__start_enum (dir__handle *dh, char *path) |
Starts enumeration of the given path. | |
int | dir__enum (dir__handle dh, fsvs_dirent *dirp, unsigned int count) |
The enumeration function. | |
int | dir__close (dir__handle dh) |
Simply closes the handle dh. | |
int | dir__get_dir_size (dir__handle dh, struct sstat_t *st) |
How to get the length of a directory (in bytes), from a handle dh, into st->size. |
Which one to use is defined by configure
.
#define HAVE_GETDENTS64 1 |
typedef int dir__handle |
typedef struct dirent64 fsvs_dirent |
int dir__close | ( | dir__handle | dh | ) | [inline] |
Simply closes the handle dh.
Definition at line 111 of file direnum.c.
References STOPIF_CODE_ERR.
Referenced by dir__enumerator().
int dir__enum | ( | dir__handle | dh, | |
fsvs_dirent * | dirp, | |||
unsigned int | count | |||
) | [inline] |
The enumeration function.
dh | The handle given by dir__start_enum. | |
dirp | The space where data should be returned | |
count | The maximum number of bytes in dirp. |
Definition at line 103 of file direnum.c.
Referenced by dir__enumerator().
int dir__get_dir_size | ( | dir__handle | dh, | |
struct sstat_t * | st | |||
) | [inline] |
How to get the length of a directory (in bytes), from a handle dh, into st->size.
Definition at line 126 of file direnum.c.
References hlp__fstat(), and STOPIF.
Referenced by dir__enumerator().
int dir__start_enum | ( | dir__handle * | dh, | |
char * | path | |||
) | [inline] |
Starts enumeration of the given path.
The directory handle is returned in *dirp.
Definition at line 83 of file direnum.c.
References STOPIF_CODE_ERR.
Referenced by dir__enumerator().