mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 03:10:05 +00:00
1812d50bc9
* dirent/Versions: Export fdopendir for GLIBC_2.4. * dirent/Makefile (routines): Add fdopendir. (tests): Add tst-fdopendir. * dirent/tst-fdopendir.c: New file. * include/dirent.h: Declare __alloc_dir. * sysdeps/generic/fdopendir.c: New file. * sysdeps/unix/fdopendir.c: New file. * sysdeps/unix/opendir.c: Split off back part of opendir into new function __alloc_dir.
29 lines
1.1 KiB
C
29 lines
1.1 KiB
C
#ifndef _DIRENT_H
|
|
# include <dirstream.h>
|
|
# include <dirent/dirent.h>
|
|
# include <sys/stat.h>
|
|
|
|
/* Now define the internal interfaces. */
|
|
extern DIR *__opendir (__const char *__name);
|
|
extern int __closedir (DIR *__dirp);
|
|
extern struct dirent *__readdir (DIR *__dirp);
|
|
extern struct dirent64 *__readdir64 (DIR *__dirp);
|
|
extern int __readdir_r (DIR *__dirp, struct dirent *__entry,
|
|
struct dirent **__result);
|
|
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 *));
|
|
extern __ssize_t __getdents (int __fd, char *__buf, size_t __nbytes)
|
|
internal_function;
|
|
extern __ssize_t __getdents64 (int __fd, char *__buf, size_t __nbytes)
|
|
internal_function;
|
|
extern int __alphasort64 (const void *a, const void *b)
|
|
__attribute_pure__;
|
|
extern int __versionsort64 (const void *a, const void *b)
|
|
__attribute_pure__;
|
|
extern DIR *__alloc_dir (int fd, struct stat64 *statp) internal_function;
|
|
#endif
|