Back to index

glibc  2.9
dirent.h
Go to the documentation of this file.
00001 #ifndef _DIRENT_H
00002 # include <dirstream.h>
00003 # include <dirent/dirent.h>
00004 # include <sys/stat.h>
00005 # include <stdbool.h>
00006 
00007 /* Now define the internal interfaces.  */
00008 extern DIR *__opendir (__const char *__name);
00009 extern DIR *__fdopendir (int __fd);
00010 extern int __closedir (DIR *__dirp);
00011 extern struct dirent *__readdir (DIR *__dirp);
00012 extern struct dirent64 *__readdir64 (DIR *__dirp);
00013 extern int __readdir_r (DIR *__dirp, struct dirent *__entry,
00014                      struct dirent **__result);
00015 extern int __readdir64_r (DIR *__dirp, struct dirent64 *__entry,
00016                        struct dirent64 **__result);
00017 extern int __scandir64 (__const char * __dir,
00018                      struct dirent64 *** __namelist,
00019                      int (*__selector) (__const struct dirent64 *),
00020                      int (*__cmp) (__const void *, __const void *));
00021 extern __ssize_t __getdents (int __fd, char *__buf, size_t __nbytes)
00022      internal_function;
00023 extern __ssize_t __getdents64 (int __fd, char *__buf, size_t __nbytes)
00024      internal_function;
00025 extern int __alphasort64 (const void *a, const void *b)
00026      __attribute_pure__;
00027 extern int __versionsort64 (const void *a, const void *b)
00028      __attribute_pure__;
00029 extern DIR *__alloc_dir (int fd, bool close_fd, const struct stat64 *statp)
00030      internal_function;
00031 
00032 #endif