mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-29 22:11:18 +00:00
980e58323a
* include/dirent.h: Remove __getdirentries declaration, add __getdents and __getdents64. * sysdeps/unix/readdir.c: Use __getdents, not __getdirentries. * sysdeps/unix/readdir_r.c: Likewise. * sysdeps/unix/sysv/linux/readdir64.c: Likewise. * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise. * sysdeps/unix/sysv/linux/getdents.c: Define __getdents, not __getdirentries. Remove fourth argument. * sysdeps/unix/sysv/linux/getdirentries.c: New file. * sysdeps/unix/sysv/linux/getdirentries64.c: New file. * sysdeps/unix/sysv/linux/Makefile [subdir=dirent] (sysdep_routines): Add getdirentries and getdirentries64. * sysdeps/unix/sysv/linux/Dist: Add getdirentries and getdirentries64.
16 lines
604 B
C
16 lines
604 B
C
#ifndef _DIRENT_H
|
|
# include <dirent/dirent.h>
|
|
|
|
/* Now define the internal interfaces. */
|
|
extern DIR *__opendir __P ((__const char *__name));
|
|
extern int __closedir __P ((DIR *__dirp));
|
|
extern struct dirent *__readdir __P ((DIR *__dirp));
|
|
extern struct dirent64 *__readdir64 __P ((DIR *__dirp));
|
|
extern int __readdir_r __P ((DIR *__dirp, struct dirent *__entry,
|
|
struct dirent **__result));
|
|
extern __ssize_t __getdents __P ((int __fd, char *__buf, size_t __nbytes))
|
|
internal_function;
|
|
extern __ssize_t __getdents64 __P ((int __fd, char *__buf, size_t __nbytes))
|
|
internal_function;
|
|
#endif
|