From 1812d50bc9ad034c8406f5e3de83b5a6c668f3a9 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 28 Sep 2005 21:19:53 +0000 Subject: * dirent/dirent.h: Declare fdopendir. * 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. --- include/dirent.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/dirent.h') diff --git a/include/dirent.h b/include/dirent.h index f09a88f21c..b040a042d3 100644 --- a/include/dirent.h +++ b/include/dirent.h @@ -1,6 +1,7 @@ #ifndef _DIRENT_H # include # include +# include /* Now define the internal interfaces. */ extern DIR *__opendir (__const char *__name); @@ -23,4 +24,5 @@ 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 -- cgit 1.4.1