projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aaa9eb5
)
publicly expose getdents api under _BSD_SOURCE
author
Rich Felker
<dalias@aerifal.cx>
Mon, 13 Aug 2012 18:50:30 +0000
(14:50 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Mon, 13 Aug 2012 18:50:30 +0000
(14:50 -0400)
include/dirent.h
patch
|
blob
|
history
diff --git
a/include/dirent.h
b/include/dirent.h
index 6241220fddb35c48fdf84298b9b99a193730b67d..a51526d4694eb4eecaf131d931fb08c1a31bee2e 100644
(file)
--- a/
include/dirent.h
+++ b/
include/dirent.h
@@
-54,6
+54,10
@@
int scandir(const char *, struct dirent ***, int (*)(const struct dirent *), int
int versionsort(const struct dirent **, const struct dirent **);
#endif
+#ifdef _BSD_SOURCE
+int getdents(int, struct dirent *, size_t);
+#endif
+
#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
#define dirent64 dirent
#define readdir64 readdir
@@
-63,6
+67,9
@@
int versionsort(const struct dirent **, const struct dirent **);
#define versionsort64 versionsort
#define off64_t off_t
#define ino64_t ino_t
+#ifdef _BSD_SOURCE
+#define getdents64 getdents
+#endif
#endif
#ifdef __cplusplus