mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-27 15:30:07 +00:00
d369ad760d
2006-02-12 Ulrich Drepper <drepper@redhat.com> * io/ftw.c: Start using *at functions. * io/ftw64.c: Likewise. * sysdeps/generic/not-cancel.h: Define openat_not_cancel, openat_not_cancel_3, openat64_not_cancel, and openat64_not_cancel_3. * sysdeps/unix/sysv/linux/not-cancel.h: Likewise. * sysdeps/unix/sysv/linux/openat.c: Create separate _nocancel functions. * io/fxstatat.c: Add __fxstatat alias. * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise. * sysdeps/unix/sysv/linux/fxstatat.c: Likewise. Add support for newfstatat syscall. * sysdeps/unix/sysv/linux/i386/fxstatat.c: Add __fxstatat alias. Add support for fstatat64 syscall. * include/sys/stat.h: Declare __fxstatat. * io/fxstatat64.c: Add __fxstatat64 alias. * sysdeps/unix/sysv/linux/fxstatat64.c: Add support for fstatat64 syscall. * dirent/fdopendir.c: Add __fdopendir alias. * sysdeps/unix/fdopendir.c: Likewise. * sysdeps/mach/hurd/fdopendir.c: Likewise. * include/dirent.h: Add __fdopendir declaration. [BZ #2226] * libio/wgenops.c (_IO_wsetb): Use correct size of wide char buffer in FREE_BUF call.
33 lines
1.2 KiB
C
33 lines
1.2 KiB
C
#ifndef _DIRENT_H
|
|
# include <dirstream.h>
|
|
# include <dirent/dirent.h>
|
|
# include <sys/stat.h>
|
|
# include <stdbool.h>
|
|
|
|
/* Now define the internal interfaces. */
|
|
extern DIR *__opendir (__const char *__name);
|
|
extern DIR *__fdopendir (int __fd);
|
|
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, bool close_fd, const struct stat64 *statp)
|
|
internal_function;
|
|
|
|
#endif
|