aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2010-01-24 12:35:36 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2010-01-24 12:35:36 +0000
commitb3c4be736e48225b08b699ae9200e585441a8d5e (patch)
treec96ffe7ab80950945f7669f3be0d541f0c85f20d /include
parentbe6797dde88efc84055db6a0661ab512eeabe8a5 (diff)
Notes
Diffstat (limited to 'include')
-rw-r--r--include/dirent.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/dirent.h b/include/dirent.h
index 63626b59bc72..375a3d2301b7 100644
--- a/include/dirent.h
+++ b/include/dirent.h
@@ -93,9 +93,11 @@ typedef void * DIR;
#ifndef _KERNEL
__BEGIN_DECLS
+#if __POSIX_VISIBLE >= 200809 || __XSI_VISIBLE >= 700
+int alphasort(const struct dirent **, const struct dirent **);
+#endif
#if __BSD_VISIBLE
DIR *__opendir2(const char *, int);
-int alphasort(const void *, const void *);
int getdents(int, char *, int);
int getdirentries(int, char *, int, long *);
#endif
@@ -107,9 +109,10 @@ struct dirent *
int readdir_r(DIR *, struct dirent *, struct dirent **);
#endif
void rewinddir(DIR *);
-#if __BSD_VISIBLE
+#if __POSIX_VISIBLE >= 200809 || __XSI_VISIBLE >= 700
int scandir(const char *, struct dirent ***,
- int (*)(struct dirent *), int (*)(const void *, const void *));
+ int (*)(const struct dirent *), int (*)(const struct dirent **,
+ const struct dirent **));
#endif
#if __XSI_VISIBLE
void seekdir(DIR *, long);