Browse Source

Provide the old prototypes for scandir() and alphasort() for code that

requests the pre-standardized version
requested by millert@
OPENBSD_5_2
guenther 12 years ago
parent
commit
63956e38b6
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      src/include/dirent.h

+ 5
- 1
src/include/dirent.h View File

@ -1,4 +1,4 @@
/* $OpenBSD: dirent.h,v 1.27 2012/03/22 04:11:53 matthew Exp $ */
/* $OpenBSD: dirent.h,v 1.28 2012/03/24 01:53:51 guenther Exp $ */
/* $NetBSD: dirent.h,v 1.9 1995/03/26 20:13:37 jtc Exp $ */ /* $NetBSD: dirent.h,v 1.9 1995/03/26 20:13:37 jtc Exp $ */
/*- /*-
@ -98,6 +98,10 @@ int readdir_r(DIR *__restrict, struct dirent *__restrict,
int scandir(const char *, struct dirent ***, int (*)(struct dirent *), int scandir(const char *, struct dirent ***, int (*)(struct dirent *),
int (*)(const struct dirent **, const struct dirent **)); int (*)(const struct dirent **, const struct dirent **));
int alphasort(const struct dirent **, const struct dirent **); int alphasort(const struct dirent **, const struct dirent **);
#elif __BSD_VISIBLE
int scandir(const char *, struct dirent ***, int (*)(struct dirent *),
int (*)(const void *, const void *));
int alphasort(const void *, const void *);
#endif #endif
#if __POSIX_VISIBLE >= 200809 || __XPG_VISIBLE > 600 #if __POSIX_VISIBLE >= 200809 || __XPG_VISIBLE > 600
int dirfd(DIR *); int dirfd(DIR *);


Loading…
Cancel
Save