17#ifndef _SCHILY_DIRENT_H
18#define _SCHILY_DIRENT_H
20#ifndef _SCHILY_MCONFIG_H
29# ifdef HAVE_SYS_STYPES_H
30# ifndef _INCL_SYS_STYPES_H
31# include <sys/stypes.h>
32# define _INCL_SYS_STYPES_H
35# ifdef HAVE_SYS_FILEDESC_H
36# ifndef _INCL_SYS_FILEDESC_H
37# include <sys/filedesc.h>
38# define _INCL_SYS_FILEDESC_H
42# define dirent _direct
43# define DIR_NAMELEN(dirent) strlen((dirent)->d_name)
53# ifndef _SCHILY_TYPES_H
56# ifndef _SCHILY_STAT_H
59# ifndef _SCHILY_LIMITS_H
62# ifndef _SCHILY_PARAM_H
65# ifndef _SCHILY_STDLIB_H
70# ifndef _INCL_DIRENT_H
72# define _INCL_DIRENT_H
74# define DIR_NAMELEN(dirent) strlen((dirent)->d_name)
79# define DIR_NAMELEN(dirent) (dirent)->d_namlen
81# if defined(HAVE_SYS_DIR_H)
82# ifndef _INCL_SYS_DIR_H
84# define _INCL_SYS_DIR_H
89# if defined(HAVE_NDIR_H) && !defined(_FOUND_DIR_)
97# if defined(HAVE_SYS_NDIR_H) && !defined(_FOUND_DIR_)
98# ifndef _INCL_SYS_NDIR_H
100# define _INCL_SYS_NDIR_H
106# if defined(_FOUND_DIR_)
110# if !defined(FOUND_DIRSIZE) && defined(MAXNAMELEN)
111# define DIRSIZE MAXNAMELEN
112# define FOUND_DIRSIZE
115# if !defined(FOUND_DIRSIZE) && defined(MAXNAMLEN)
116# define DIRSIZE MAXNAMLEN
117# define FOUND_DIRSIZE
124# if !defined(FOUND_DIRSIZE) && defined(DIRSIZ)
125# define DIRSIZE DIRSIZ
126# define FOUND_DIRSIZE
130# if !defined(FOUND_DIRSIZE) && defined(NAME_MAX)
131# define DIRSIZE NAME_MAX
132# define FOUND_DIRSIZE
137# if !defined(FOUND_DIRSIZE) && defined(_MAX_DIR)
138# if defined(__MINGW32__) || defined(_MSC_VER)
139# define DIRSIZE _MAX_DIR
140# define FOUND_DIRSIZE
143# define dirent _direct
145# define DIR_NAMELEN(dirent) strlen((dirent)->d_name)
153# define dirent _direct
155# define DIR_NAMELEN(dirent) strlen((dirent)->d_name)
179#ifndef _SCHILY_STDIO_H
182#if defined(__MINGW32__) || defined(_MSC_VER)
186#ifndef _SCHILY_UTYPES_H
197#define HAVE_DIRENT_D_INO
202#if defined(__MINGW32__) || defined(_MSC_VER)
217#if !defined(HAVE_DIRFD) && defined(HAVE_DIR_DD_FD)
218# define dirfd(dirp) ((dirp)->dd_fd)
int __cdecl closedir(DIR *)
DIR *__cdecl opendir(const char *)
struct dirent *__cdecl readdir(DIR *)