1998-08-10 15:54:54 +00:00
|
|
|
#ifndef _DIRENT_H
|
2001-08-20 07:17:10 +00:00
|
|
|
# include <dirstream.h>
|
1998-08-10 15:54:54 +00:00
|
|
|
# include <dirent/dirent.h>
|
1998-08-09 17:39:48 +00:00
|
|
|
|
|
|
|
|
/* Now define the internal interfaces. */
|
1999-11-23 17:22:17 +00:00
|
|
|
extern DIR *__opendir (__const char *__name);
|
|
|
|
|
extern int __closedir (DIR *__dirp);
|
|
|
|
|
extern struct dirent *__readdir (DIR *__dirp);
|
|
|
|
|
extern struct dirent64 *__readdir64 (DIR *__dirp);
|
1999-10-19 03:14:36 +00:00
|
|
|
extern int __readdir_r (DIR *__dirp, struct dirent *__entry,
|
1999-11-23 17:22:17 +00:00
|
|
|
struct dirent **__result);
|
2000-08-12 05:14:52 +00:00
|
|
|
extern int __readdir64_r (DIR *__dirp, struct dirent64 *__entry,
|
|
|
|
|
struct dirent64 **__result);
|
|
|
|
|
extern int __scandir64 (__const char * __dir,
|
|
|
|
|
struct dirent64 *** __namelist,
|
|
|
|
|
int (*__selector) (__const struct dirent64 *),
|
|
|
|
|
int (*__cmp) (__const void *, __const void *));
|
1999-10-19 03:14:36 +00:00
|
|
|
extern __ssize_t __getdents (int __fd, char *__buf, size_t __nbytes)
|
1999-04-27 13:06:39 +00:00
|
|
|
internal_function;
|
1999-10-19 03:14:36 +00:00
|
|
|
extern __ssize_t __getdents64 (int __fd, char *__buf, size_t __nbytes)
|
1999-04-27 13:06:39 +00:00
|
|
|
internal_function;
|
2000-08-23 07:23:46 +00:00
|
|
|
extern int __alphasort64 (const void *a, const void *b)
|
|
|
|
|
__attribute_pure__;
|
|
|
|
|
extern int __versionsort64 (const void *a, const void *b)
|
|
|
|
|
__attribute_pure__;
|
1998-08-10 15:54:54 +00:00
|
|
|
#endif
|