Move scandir(3) and alphasort(3) into XSI namespace.
Noted and reviewed by: bde MFC after: 2 weeks
This commit is contained in:
parent
a573c11cf5
commit
c4ecd13b77
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=201602
@ -93,9 +93,11 @@ typedef void * DIR;
|
|||||||
#ifndef _KERNEL
|
#ifndef _KERNEL
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
#if __POSIX_VISIBLE >= 200809 || __XSI_VISIBLE >= 700
|
||||||
|
int alphasort(const struct dirent **, const struct dirent **);
|
||||||
|
#endif
|
||||||
#if __BSD_VISIBLE
|
#if __BSD_VISIBLE
|
||||||
DIR *__opendir2(const char *, int);
|
DIR *__opendir2(const char *, int);
|
||||||
int alphasort(const struct dirent **, const struct dirent **);
|
|
||||||
int getdents(int, char *, int);
|
int getdents(int, char *, int);
|
||||||
int getdirentries(int, char *, int, long *);
|
int getdirentries(int, char *, int, long *);
|
||||||
#endif
|
#endif
|
||||||
@ -107,7 +109,7 @@ struct dirent *
|
|||||||
int readdir_r(DIR *, struct dirent *, struct dirent **);
|
int readdir_r(DIR *, struct dirent *, struct dirent **);
|
||||||
#endif
|
#endif
|
||||||
void rewinddir(DIR *);
|
void rewinddir(DIR *);
|
||||||
#if __BSD_VISIBLE
|
#if __POSIX_VISIBLE >= 200809 || __XSI_VISIBLE >= 700
|
||||||
int scandir(const char *, struct dirent ***,
|
int scandir(const char *, struct dirent ***,
|
||||||
int (*)(const struct dirent *), int (*)(const struct dirent **,
|
int (*)(const struct dirent *), int (*)(const struct dirent **,
|
||||||
const struct dirent **));
|
const struct dirent **));
|
||||||
|
Loading…
Reference in New Issue
Block a user