2 # include <dirstream.h>
3 # include <dirent/dirent.h>
7 /* Now define the internal interfaces. */
8 extern DIR *__opendir (__const
char *__name
);
9 extern int __closedir (DIR *__dirp
);
10 extern struct dirent
*__readdir (DIR *__dirp
);
11 extern struct dirent64
*__readdir64 (DIR *__dirp
);
12 extern int __readdir_r (DIR *__dirp
, struct dirent
*__entry
,
13 struct dirent
**__result
);
14 extern int __readdir64_r (DIR *__dirp
, struct dirent64
*__entry
,
15 struct dirent64
**__result
);
16 extern int __scandir64 (__const
char * __dir
,
17 struct dirent64
*** __namelist
,
18 int (*__selector
) (__const
struct dirent64
*),
19 int (*__cmp
) (__const
void *, __const
void *));
20 extern __ssize_t
__getdents (int __fd
, char *__buf
, size_t __nbytes
)
22 extern __ssize_t
__getdents64 (int __fd
, char *__buf
, size_t __nbytes
)
24 extern int __alphasort64 (const void *a
, const void *b
)
26 extern int __versionsort64 (const void *a
, const void *b
)
28 extern DIR *__alloc_dir (int fd
, bool close_fd
, const struct stat64
*statp
)