Module Name: src Committed By: nros Date: Thu Dec 30 16:20:19 UTC 2021
Modified Files: src/include: dirent.h Log Message: Make fdopendir visible according to POSIX.1 spec. To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 src/include/dirent.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/include/dirent.h diff -u src/include/dirent.h:1.36 src/include/dirent.h:1.37 --- src/include/dirent.h:1.36 Fri Dec 16 04:45:04 2016 +++ src/include/dirent.h Thu Dec 30 16:20:19 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: dirent.h,v 1.36 2016/12/16 04:45:04 mrg Exp $ */ +/* $NetBSD: dirent.h,v 1.37 2021/12/30 16:20:19 nros Exp $ */ /*- * Copyright (c) 1989, 1993 @@ -104,9 +104,14 @@ int readdir_r(DIR * __restrict, struct d void seekdir(DIR *, long); long telldir(DIR *); #endif /* defined(_NETBSD_SOURCE) || defined(_XOPEN_SOURCE) */ -#if defined(_NETBSD_SOURCE) +#if (_POSIX_C_SOURCE - 0) >= 200809L || (_XOPEN_SOURCE - 0) >= 700 || \ + defined(_NETBSD_SOURCE) #ifndef __LIBC12_SOURCE__ DIR *fdopendir(int); +#endif +#endif +#if defined(_NETBSD_SOURCE) +#ifndef __LIBC12_SOURCE__ DIR *__opendir2(const char *, int) __RENAME(__opendir230); int scandir(const char *, struct dirent ***, int (*)(const struct dirent *), int (*)(const struct dirent **,