]> git.ipfire.org Git - thirdparty/glibc.git/blame - include/dirent.h
2.5-18.1
[thirdparty/glibc.git] / include / dirent.h
CommitLineData
a5f4e34a 1#ifndef _DIRENT_H
0028f16e 2# include <dirstream.h>
a5f4e34a 3# include <dirent/dirent.h>
0ecb606c
JJ
4# include <sys/stat.h>
5# include <stdbool.h>
bdbf022d
UD
6
7/* Now define the internal interfaces. */
c19559b0 8extern DIR *__opendir (__const char *__name);
0ecb606c 9extern DIR *__fdopendir (int __fd);
c19559b0
UD
10extern int __closedir (DIR *__dirp);
11extern struct dirent *__readdir (DIR *__dirp);
12extern struct dirent64 *__readdir64 (DIR *__dirp);
4d3a563f 13extern int __readdir_r (DIR *__dirp, struct dirent *__entry,
c19559b0 14 struct dirent **__result);
56ddf355
UD
15extern int __readdir64_r (DIR *__dirp, struct dirent64 *__entry,
16 struct dirent64 **__result);
17extern int __scandir64 (__const char * __dir,
18 struct dirent64 *** __namelist,
19 int (*__selector) (__const struct dirent64 *),
20 int (*__cmp) (__const void *, __const void *));
4d3a563f 21extern __ssize_t __getdents (int __fd, char *__buf, size_t __nbytes)
980e5832 22 internal_function;
4d3a563f 23extern __ssize_t __getdents64 (int __fd, char *__buf, size_t __nbytes)
980e5832 24 internal_function;
fb4dfa0c
AJ
25extern int __alphasort64 (const void *a, const void *b)
26 __attribute_pure__;
27extern int __versionsort64 (const void *a, const void *b)
28 __attribute_pure__;
0ecb606c
JJ
29extern DIR *__alloc_dir (int fd, bool close_fd, const struct stat64 *statp)
30 internal_function;
31
a5f4e34a 32#endif