Module Name: src Committed By: riastradh Date: Fri Nov 1 18:52:29 UTC 2024
Modified Files: src/include: strings.h Log Message: strings.h: Fix visibility of bcmp/bcopy/bzero/index/rindex again. These have always been X/Open / XSI options, and they were nixed in POSIX 2008, not in POSIX 2024. POSIX 2001 (marked legacy): https://pubs.opengroup.org/onlinepubs/009695399/basedefs/strings.h.html POSIX 2008 (removed): https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/strings.h.html POSIX 2024: https://pubs.opengroup.org/onlinepubs/9799919799.2024edition/functions/strcasecmp_l.html Cleanup after fix for: PR lib/58802: missing ffsl(), ffsll() functions from POSIX 2024 To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/include/strings.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/strings.h diff -u src/include/strings.h:1.20 src/include/strings.h:1.21 --- src/include/strings.h:1.20 Fri Nov 1 18:42:30 2024 +++ src/include/strings.h Fri Nov 1 18:52:29 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: strings.h,v 1.20 2024/11/01 18:42:30 riastradh Exp $ */ +/* $NetBSD: strings.h,v 1.21 2024/11/01 18:52:29 riastradh Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -50,7 +50,7 @@ typedef _BSD_SIZE_T_ size_t; __BEGIN_DECLS #if defined(_NETBSD_SOURCE) || \ - (defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE - 0 < 202405L) + (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE - 0 < 700) int bcmp(const void *, const void *, size_t); void bcopy(const void *, void *, size_t); void bzero(void *, size_t); @@ -70,7 +70,7 @@ unsigned int popcount32(__uint32_t) __co unsigned int popcount64(__uint64_t) __constfunc; #endif #if defined(_NETBSD_SOURCE) || \ - (defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE - 0 < 202405L) + (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE - 0 < 700) char *index(const char *, int); char *rindex(const char *, int); #endif