dirent#

Defines

WIN32_LEAN_AND_MEAN#
_DIRENT_HAVE_D_TYPE#
_DIRENT_HAVE_D_NAMLEN#
FILE_ATTRIBUTE_DEVICE#
S_IFMT#
S_IFDIR#
S_IFCHR#
S_IFFIFO#
S_IFREG#
S_IREAD#
S_IWRITE#
S_IEXEC#
S_IFIFO#
S_IFBLK#
S_IFLNK#
S_IFSOCK#
S_IRUSR#
S_IWUSR#
S_IXUSR#
S_IRGRP#
S_IWGRP#
S_IXGRP#
S_IROTH#
S_IWOTH#
S_IXOTH#
PATH_MAX#
FILENAME_MAX#
NAME_MAX#
DT_UNKNOWN#
DT_REG#
DT_DIR#
DT_FIFO#
DT_SOCK#
DT_CHR#
DT_BLK#
DT_LNK#
IFTODT(mode)#
DTTOIF(type)#
S_ISFIFO(mode)#
S_ISDIR(mode)#
S_ISREG(mode)#
S_ISLNK(mode)#
S_ISSOCK(mode)#
S_ISCHR(mode)#
S_ISBLK(mode)#
_D_EXACT_NAMLEN(p)#
_D_ALLOC_NAMLEN(p)#
wdirent#
WDIR#
wopendir#
wreaddir#
wclosedir#
wrewinddir#

Typedefs

typedef struct dirent dirent#
typedef struct DIR DIR#

Functions

static DIR *opendir(const char *dirname)#
static _WDIR *_wopendir(const wchar_t *dirname)#
static struct dirent *readdir(DIR *dirp)#
static struct _wdirent *_wreaddir(_WDIR *dirp)#
static int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result)#
static int _wreaddir_r(_WDIR *dirp, struct _wdirent *entry, struct _wdirent **result)#
static int closedir(DIR *dirp)#
static int _wclosedir(_WDIR *dirp)#
static void rewinddir(DIR *dirp)#
static void _wrewinddir(_WDIR *dirp)#
static int scandir(const char *dirname, struct dirent ***namelist, int (*filter)(const struct dirent*), int (*compare)(const struct dirent**, const struct dirent**))#
static int alphasort(const struct dirent **a, const struct dirent **b)#
static int versionsort(const struct dirent **a, const struct dirent **b)#
static WIN32_FIND_DATAW *dirent_first(_WDIR *dirp)#
static WIN32_FIND_DATAW *dirent_next(_WDIR *dirp)#
static int dirent_mbstowcs_s(size_t *pReturnValue, wchar_t *wcstr, size_t sizeInWords, const char *mbstr, size_t count)#
static int dirent_wcstombs_s(size_t *pReturnValue, char *mbstr, size_t sizeInBytes, const wchar_t *wcstr, size_t count)#
static void dirent_set_errno(int error)#
struct dirent

Public Members

long d_ino#
long d_off#
unsigned short d_reclen#
size_t d_namlen#
int d_type#
char d_name[PATH_MAX + 1]#
struct DIR

Public Members

struct dirent ent#
struct _WDIR *wdirp#