Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/include scandir(3) and alphasort(3) are part of POSIX-2008, ...



details:   https://anonhg.NetBSD.org/src/rev/307d4ef46c19
branches:  trunk
changeset: 372811:307d4ef46c19
user:      nia <nia%NetBSD.org@localhost>
date:      Wed Dec 28 11:51:21 2022 +0000

description:
scandir(3) and alphasort(3) are part of POSIX-2008, so don't require
_NETBSD_SOURCE to use them.

diffstat:

 include/dirent.h |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (34 lines):

diff -r 9e1d4b514092 -r 307d4ef46c19 include/dirent.h
--- a/include/dirent.h  Wed Dec 28 11:50:25 2022 +0000
+++ b/include/dirent.h  Wed Dec 28 11:51:21 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dirent.h,v 1.37 2021/12/30 16:20:19 nros Exp $ */
+/*     $NetBSD: dirent.h,v 1.38 2022/12/28 11:51:21 nia Exp $  */
 
 /*-
  * Copyright (c) 1989, 1993
@@ -108,18 +108,18 @@
     defined(_NETBSD_SOURCE)
 #ifndef __LIBC12_SOURCE__
 DIR *fdopendir(int);
+int scandir(const char *, struct dirent ***,
+    int (*)(const struct dirent *), int (*)(const struct dirent **,
+    const struct dirent **))
+    __RENAME(__scandir30);
+int alphasort(const struct dirent **, const struct dirent **)
+    __RENAME(__alphasort30);
 #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 **,
-    const struct dirent **))
-    __RENAME(__scandir30);
 int getdents(int, char *, size_t) __RENAME(__getdents30);
-int alphasort(const struct dirent **, const struct dirent **)
-    __RENAME(__alphasort30);
 #endif
 #endif /* defined(_NETBSD_SOURCE) */
 __END_DECLS



Home | Main Index | Thread Index | Old Index