aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2012-08-15 10:09:18 -0700
committerRoland McGrath <roland@hack.frob.com>2012-08-15 10:09:18 -0700
commit67cc348d55b886eac7c3b3b028d22ec8e8c349a4 (patch)
treec12d28b302ec8abd71a70d38e35655b4273597a7
parenta3f95dcc57e5d2e8fb2ec4675475172f75e739ce (diff)
downloadglibc-67cc348d55b886eac7c3b3b028d22ec8e8c349a4.zip
glibc-67cc348d55b886eac7c3b3b028d22ec8e8c349a4.tar.gz
glibc-67cc348d55b886eac7c3b3b028d22ec8e8c349a4.tar.bz2
Declare __getdirentries in internal dirent.h.
-rw-r--r--ChangeLog2
-rw-r--r--include/dirent.h4
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 8e0a080..7ab9bc3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2012-08-15 Roland McGrath <roland@hack.frob.com>
+ * include/dirent.h: Declare __getdirentries.
+
* sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
diff --git a/include/dirent.h b/include/dirent.h
index 8e4823c..096a977 100644
--- a/include/dirent.h
+++ b/include/dirent.h
@@ -30,6 +30,10 @@ extern int __scandir64 (const char * __dir,
int (*__selector) (const struct dirent64 *),
int (*__cmp) (const struct dirent64 **,
const struct dirent64 **));
+extern __ssize_t __getdirentries (int __fd, char *__restrict __buf,
+ size_t __nbytes,
+ __off_t *__restrict __basep)
+ __THROW __nonnull ((2, 4));
extern __ssize_t __getdents (int __fd, char *__buf, size_t __nbytes)
internal_function;
extern __ssize_t __getdents64 (int __fd, char *__buf, size_t __nbytes)