diff options
| author | Paul Eggert | 2025-11-25 22:13:37 -0800 |
|---|---|---|
| committer | Paul Eggert | 2025-11-25 23:08:33 -0800 |
| commit | 8cdc8a51efdcaefe3632370e7c3ce9c0cfe77e9d (patch) | |
| tree | 2706ced060603fa07e7891477ce42975e14f1a23 /lib | |
| parent | 16a70518880ef8f54bd853020f1606d3abf04d8e (diff) | |
| download | emacs-8cdc8a51efdcaefe3632370e7c3ce9c0cfe77e9d.tar.gz emacs-8cdc8a51efdcaefe3632370e7c3ce9c0cfe77e9d.zip | |
Update from Gnulib by running admin/merge-gnulib
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/c++defs.h | 12 | ||||
| -rw-r--r-- | lib/dirent.in.h | 8 | ||||
| -rw-r--r-- | lib/fcntl.in.h | 5 | ||||
| -rw-r--r-- | lib/inttypes.in.h | 4 | ||||
| -rw-r--r-- | lib/signal.in.h | 12 | ||||
| -rw-r--r-- | lib/stdio.in.h | 37 | ||||
| -rw-r--r-- | lib/stdlib.in.h | 52 | ||||
| -rw-r--r-- | lib/string.in.h | 53 | ||||
| -rw-r--r-- | lib/strnlen.c | 4 | ||||
| -rw-r--r-- | lib/sys_random.in.h | 1 | ||||
| -rw-r--r-- | lib/sys_select.in.h | 2 | ||||
| -rw-r--r-- | lib/sys_stat.in.h | 16 | ||||
| -rw-r--r-- | lib/sys_time.in.h | 1 | ||||
| -rw-r--r-- | lib/time.in.h | 16 | ||||
| -rw-r--r-- | lib/unistd.in.h | 57 |
15 files changed, 29 insertions, 251 deletions
diff --git a/lib/c++defs.h b/lib/c++defs.h index b77979a3259..b887cc3fb80 100644 --- a/lib/c++defs.h +++ b/lib/c++defs.h | |||
| @@ -127,6 +127,16 @@ | |||
| 127 | #define _GL_FUNCDECL_RPL_1(rpl_func,rettype,parameters,...) \ | 127 | #define _GL_FUNCDECL_RPL_1(rpl_func,rettype,parameters,...) \ |
| 128 | _GL_EXTERN_C_FUNC __VA_ARGS__ rettype rpl_func parameters | 128 | _GL_EXTERN_C_FUNC __VA_ARGS__ rettype rpl_func parameters |
| 129 | 129 | ||
| 130 | /* _GL_FUNCDECL_SYS_NAME (func) expands to plain func if C++, and to | ||
| 131 | parenthesized func otherwise. Parenthesization is needed in C23 if | ||
| 132 | the function is like strchr and so is a qualifier-generic macro | ||
| 133 | that expands to something more complicated. */ | ||
| 134 | #ifdef __cplusplus | ||
| 135 | # define _GL_FUNCDECL_SYS_NAME(func) func | ||
| 136 | #else | ||
| 137 | # define _GL_FUNCDECL_SYS_NAME(func) (func) | ||
| 138 | #endif | ||
| 139 | |||
| 130 | /* _GL_FUNCDECL_SYS (func, rettype, parameters, [attributes]); | 140 | /* _GL_FUNCDECL_SYS (func, rettype, parameters, [attributes]); |
| 131 | declares the system function, named func, with the given prototype, | 141 | declares the system function, named func, with the given prototype, |
| 132 | consisting of return type, parameters, and attributes. | 142 | consisting of return type, parameters, and attributes. |
| @@ -139,7 +149,7 @@ | |||
| 139 | _GL_FUNCDECL_SYS (posix_openpt, int, (int flags), _GL_ATTRIBUTE_NODISCARD); | 149 | _GL_FUNCDECL_SYS (posix_openpt, int, (int flags), _GL_ATTRIBUTE_NODISCARD); |
| 140 | */ | 150 | */ |
| 141 | #define _GL_FUNCDECL_SYS(func,rettype,parameters,...) \ | 151 | #define _GL_FUNCDECL_SYS(func,rettype,parameters,...) \ |
| 142 | _GL_EXTERN_C_FUNC __VA_ARGS__ rettype func parameters | 152 | _GL_EXTERN_C_FUNC __VA_ARGS__ rettype _GL_FUNCDECL_SYS_NAME (func) parameters |
| 143 | 153 | ||
| 144 | /* _GL_CXXALIAS_RPL (func, rettype, parameters); | 154 | /* _GL_CXXALIAS_RPL (func, rettype, parameters); |
| 145 | declares a C++ alias called GNULIB_NAMESPACE::func | 155 | declares a C++ alias called GNULIB_NAMESPACE::func |
diff --git a/lib/dirent.in.h b/lib/dirent.in.h index e6c59e5a41d..2fa347f1d16 100644 --- a/lib/dirent.in.h +++ b/lib/dirent.in.h | |||
| @@ -173,7 +173,6 @@ _GL_CXXALIAS_SYS (closedir, int, (DIR *dirp)); | |||
| 173 | # endif | 173 | # endif |
| 174 | _GL_CXXALIASWARN (closedir); | 174 | _GL_CXXALIASWARN (closedir); |
| 175 | #elif defined GNULIB_POSIXCHECK | 175 | #elif defined GNULIB_POSIXCHECK |
| 176 | # undef closedir | ||
| 177 | # if HAVE_RAW_DECL_CLOSEDIR | 176 | # if HAVE_RAW_DECL_CLOSEDIR |
| 178 | _GL_WARN_ON_USE (closedir, "closedir is not portable - " | 177 | _GL_WARN_ON_USE (closedir, "closedir is not portable - " |
| 179 | "use gnulib module closedir for portability"); | 178 | "use gnulib module closedir for portability"); |
| @@ -213,7 +212,6 @@ _GL_FUNCDECL_SYS (opendir, DIR *, | |||
| 213 | _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC (closedir, 1)); | 212 | _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC (closedir, 1)); |
| 214 | # endif | 213 | # endif |
| 215 | # if defined GNULIB_POSIXCHECK | 214 | # if defined GNULIB_POSIXCHECK |
| 216 | # undef opendir | ||
| 217 | # if HAVE_RAW_DECL_OPENDIR | 215 | # if HAVE_RAW_DECL_OPENDIR |
| 218 | _GL_WARN_ON_USE (opendir, "opendir is not portable - " | 216 | _GL_WARN_ON_USE (opendir, "opendir is not portable - " |
| 219 | "use gnulib module opendir for portability"); | 217 | "use gnulib module opendir for portability"); |
| @@ -237,7 +235,6 @@ _GL_CXXALIAS_SYS (readdir, struct dirent *, (DIR *dirp)); | |||
| 237 | # endif | 235 | # endif |
| 238 | _GL_CXXALIASWARN (readdir); | 236 | _GL_CXXALIASWARN (readdir); |
| 239 | #elif defined GNULIB_POSIXCHECK | 237 | #elif defined GNULIB_POSIXCHECK |
| 240 | # undef readdir | ||
| 241 | # if HAVE_RAW_DECL_READDIR | 238 | # if HAVE_RAW_DECL_READDIR |
| 242 | _GL_WARN_ON_USE (readdir, "readdir is not portable - " | 239 | _GL_WARN_ON_USE (readdir, "readdir is not portable - " |
| 243 | "use gnulib module readdir for portability"); | 240 | "use gnulib module readdir for portability"); |
| @@ -260,7 +257,6 @@ _GL_CXXALIAS_SYS (rewinddir, void, (DIR *dirp)); | |||
| 260 | # endif | 257 | # endif |
| 261 | _GL_CXXALIASWARN (rewinddir); | 258 | _GL_CXXALIASWARN (rewinddir); |
| 262 | #elif defined GNULIB_POSIXCHECK | 259 | #elif defined GNULIB_POSIXCHECK |
| 263 | # undef rewinddir | ||
| 264 | # if HAVE_RAW_DECL_REWINDDIR | 260 | # if HAVE_RAW_DECL_REWINDDIR |
| 265 | _GL_WARN_ON_USE (rewinddir, "rewinddir is not portable - " | 261 | _GL_WARN_ON_USE (rewinddir, "rewinddir is not portable - " |
| 266 | "use gnulib module rewinddir for portability"); | 262 | "use gnulib module rewinddir for portability"); |
| @@ -293,7 +289,6 @@ _GL_CXXALIAS_SYS (dirfd, int, (DIR *)); | |||
| 293 | # endif | 289 | # endif |
| 294 | _GL_CXXALIASWARN (dirfd); | 290 | _GL_CXXALIASWARN (dirfd); |
| 295 | #elif defined GNULIB_POSIXCHECK | 291 | #elif defined GNULIB_POSIXCHECK |
| 296 | # undef dirfd | ||
| 297 | # if HAVE_RAW_DECL_DIRFD | 292 | # if HAVE_RAW_DECL_DIRFD |
| 298 | _GL_WARN_ON_USE (dirfd, "dirfd is unportable - " | 293 | _GL_WARN_ON_USE (dirfd, "dirfd is unportable - " |
| 299 | "use gnulib module dirfd for portability"); | 294 | "use gnulib module dirfd for portability"); |
| @@ -335,7 +330,6 @@ _GL_FUNCDECL_SYS (fdopendir, DIR *, | |||
| 335 | _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC (closedir, 1)); | 330 | _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC (closedir, 1)); |
| 336 | # endif | 331 | # endif |
| 337 | # if defined GNULIB_POSIXCHECK | 332 | # if defined GNULIB_POSIXCHECK |
| 338 | # undef fdopendir | ||
| 339 | # if HAVE_RAW_DECL_FDOPENDIR | 333 | # if HAVE_RAW_DECL_FDOPENDIR |
| 340 | _GL_WARN_ON_USE (fdopendir, "fdopendir is unportable - " | 334 | _GL_WARN_ON_USE (fdopendir, "fdopendir is unportable - " |
| 341 | "use gnulib module fdopendir for portability"); | 335 | "use gnulib module fdopendir for portability"); |
| @@ -363,7 +357,6 @@ _GL_CXXALIAS_SYS_CAST (scandir, int, | |||
| 363 | int (*cmp) (const struct dirent **, const struct dirent **))); | 357 | int (*cmp) (const struct dirent **, const struct dirent **))); |
| 364 | _GL_CXXALIASWARN (scandir); | 358 | _GL_CXXALIASWARN (scandir); |
| 365 | #elif defined GNULIB_POSIXCHECK | 359 | #elif defined GNULIB_POSIXCHECK |
| 366 | # undef scandir | ||
| 367 | # if HAVE_RAW_DECL_SCANDIR | 360 | # if HAVE_RAW_DECL_SCANDIR |
| 368 | _GL_WARN_ON_USE (scandir, "scandir is unportable - " | 361 | _GL_WARN_ON_USE (scandir, "scandir is unportable - " |
| 369 | "use gnulib module scandir for portability"); | 362 | "use gnulib module scandir for portability"); |
| @@ -384,7 +377,6 @@ _GL_CXXALIAS_SYS_CAST (alphasort, int, | |||
| 384 | (const struct dirent **, const struct dirent **)); | 377 | (const struct dirent **, const struct dirent **)); |
| 385 | _GL_CXXALIASWARN (alphasort); | 378 | _GL_CXXALIASWARN (alphasort); |
| 386 | #elif defined GNULIB_POSIXCHECK | 379 | #elif defined GNULIB_POSIXCHECK |
| 387 | # undef alphasort | ||
| 388 | # if HAVE_RAW_DECL_ALPHASORT | 380 | # if HAVE_RAW_DECL_ALPHASORT |
| 389 | _GL_WARN_ON_USE (alphasort, "alphasort is unportable - " | 381 | _GL_WARN_ON_USE (alphasort, "alphasort is unportable - " |
| 390 | "use gnulib module alphasort for portability"); | 382 | "use gnulib module alphasort for portability"); |
diff --git a/lib/fcntl.in.h b/lib/fcntl.in.h index bcb5606b13e..a27cc4620e0 100644 --- a/lib/fcntl.in.h +++ b/lib/fcntl.in.h | |||
| @@ -122,7 +122,6 @@ _GL_CXXALIAS_SYS (creat, int, (const char *filename, mode_t mode)); | |||
| 122 | # endif | 122 | # endif |
| 123 | _GL_CXXALIASWARN (creat); | 123 | _GL_CXXALIASWARN (creat); |
| 124 | #elif defined GNULIB_POSIXCHECK | 124 | #elif defined GNULIB_POSIXCHECK |
| 125 | # undef creat | ||
| 126 | /* Assume creat is always declared. */ | 125 | /* Assume creat is always declared. */ |
| 127 | _GL_WARN_ON_USE (creat, "creat is not always POSIX compliant - " | 126 | _GL_WARN_ON_USE (creat, "creat is not always POSIX compliant - " |
| 128 | "use gnulib module creat for portability"); | 127 | "use gnulib module creat for portability"); |
| @@ -165,7 +164,6 @@ _GL_CXXALIAS_SYS (fcntl, int, (int fd, int action, ...)); | |||
| 165 | # endif | 164 | # endif |
| 166 | _GL_CXXALIASWARN (fcntl); | 165 | _GL_CXXALIASWARN (fcntl); |
| 167 | #elif defined GNULIB_POSIXCHECK | 166 | #elif defined GNULIB_POSIXCHECK |
| 168 | # undef fcntl | ||
| 169 | # if HAVE_RAW_DECL_FCNTL | 167 | # if HAVE_RAW_DECL_FCNTL |
| 170 | _GL_WARN_ON_USE (fcntl, "fcntl is not always POSIX compliant - " | 168 | _GL_WARN_ON_USE (fcntl, "fcntl is not always POSIX compliant - " |
| 171 | "use gnulib module fcntl for portability"); | 169 | "use gnulib module fcntl for portability"); |
| @@ -196,7 +194,6 @@ _GL_CXXALIAS_SYS (open, int, (const char *filename, int flags, ...)); | |||
| 196 | _GL_CXXALIASWARN (open); | 194 | _GL_CXXALIASWARN (open); |
| 197 | # endif | 195 | # endif |
| 198 | #elif defined GNULIB_POSIXCHECK | 196 | #elif defined GNULIB_POSIXCHECK |
| 199 | # undef open | ||
| 200 | /* Assume open is always declared. */ | 197 | /* Assume open is always declared. */ |
| 201 | _GL_WARN_ON_USE (open, "open is not always POSIX compliant - " | 198 | _GL_WARN_ON_USE (open, "open is not always POSIX compliant - " |
| 202 | "use gnulib module open for portability"); | 199 | "use gnulib module open for portability"); |
| @@ -242,7 +239,6 @@ _GL_CXXALIAS_SYS (openat, int, | |||
| 242 | # endif | 239 | # endif |
| 243 | _GL_CXXALIASWARN (openat); | 240 | _GL_CXXALIASWARN (openat); |
| 244 | #elif defined GNULIB_POSIXCHECK | 241 | #elif defined GNULIB_POSIXCHECK |
| 245 | # undef openat | ||
| 246 | # if HAVE_RAW_DECL_OPENAT | 242 | # if HAVE_RAW_DECL_OPENAT |
| 247 | _GL_WARN_ON_USE (openat, "openat is not portable - " | 243 | _GL_WARN_ON_USE (openat, "openat is not portable - " |
| 248 | "use gnulib module openat for portability"); | 244 | "use gnulib module openat for portability"); |
| @@ -283,7 +279,6 @@ _GL_CXXALIAS_SYS (openat2, int, | |||
| 283 | size_t size)); | 279 | size_t size)); |
| 284 | _GL_CXXALIASWARN (openat2); | 280 | _GL_CXXALIASWARN (openat2); |
| 285 | #elif defined GNULIB_POSIXCHECK | 281 | #elif defined GNULIB_POSIXCHECK |
| 286 | # undef openat2 | ||
| 287 | # if HAVE_RAW_DECL_OPENAT2 | 282 | # if HAVE_RAW_DECL_OPENAT2 |
| 288 | _GL_WARN_ON_USE (openat2, "openat2 is not portable - " | 283 | _GL_WARN_ON_USE (openat2, "openat2 is not portable - " |
| 289 | "use gnulib module openat2 for portability"); | 284 | "use gnulib module openat2 for portability"); |
diff --git a/lib/inttypes.in.h b/lib/inttypes.in.h index 5520ebc5699..26d4b27b834 100644 --- a/lib/inttypes.in.h +++ b/lib/inttypes.in.h | |||
| @@ -925,7 +925,6 @@ _GL_CXXALIAS_SYS (imaxabs, intmax_t, (intmax_t x)); | |||
| 925 | _GL_CXXALIASWARN (imaxabs); | 925 | _GL_CXXALIASWARN (imaxabs); |
| 926 | # endif | 926 | # endif |
| 927 | #elif defined GNULIB_POSIXCHECK | 927 | #elif defined GNULIB_POSIXCHECK |
| 928 | # undef imaxabs | ||
| 929 | # if HAVE_RAW_DECL_IMAXABS | 928 | # if HAVE_RAW_DECL_IMAXABS |
| 930 | _GL_WARN_ON_USE (imaxabs, "imaxabs is unportable - " | 929 | _GL_WARN_ON_USE (imaxabs, "imaxabs is unportable - " |
| 931 | "use gnulib module imaxabs for portability"); | 930 | "use gnulib module imaxabs for portability"); |
| @@ -956,7 +955,6 @@ _GL_CXXALIAS_SYS (imaxdiv, imaxdiv_t, (intmax_t numer, intmax_t denom)); | |||
| 956 | _GL_CXXALIASWARN (imaxdiv); | 955 | _GL_CXXALIASWARN (imaxdiv); |
| 957 | # endif | 956 | # endif |
| 958 | #elif defined GNULIB_POSIXCHECK | 957 | #elif defined GNULIB_POSIXCHECK |
| 959 | # undef imaxdiv | ||
| 960 | # if HAVE_RAW_DECL_IMAXDIV | 958 | # if HAVE_RAW_DECL_IMAXDIV |
| 961 | _GL_WARN_ON_USE (imaxdiv, "imaxdiv is unportable - " | 959 | _GL_WARN_ON_USE (imaxdiv, "imaxdiv is unportable - " |
| 962 | "use gnulib module imaxdiv for portability"); | 960 | "use gnulib module imaxdiv for portability"); |
| @@ -986,7 +984,6 @@ _GL_CXXALIAS_SYS (strtoimax, intmax_t, | |||
| 986 | # endif | 984 | # endif |
| 987 | _GL_CXXALIASWARN (strtoimax); | 985 | _GL_CXXALIASWARN (strtoimax); |
| 988 | #elif defined GNULIB_POSIXCHECK | 986 | #elif defined GNULIB_POSIXCHECK |
| 989 | # undef strtoimax | ||
| 990 | # if HAVE_RAW_DECL_STRTOIMAX | 987 | # if HAVE_RAW_DECL_STRTOIMAX |
| 991 | _GL_WARN_ON_USE (strtoimax, "strtoimax is unportable - " | 988 | _GL_WARN_ON_USE (strtoimax, "strtoimax is unportable - " |
| 992 | "use gnulib module strtoimax for portability"); | 989 | "use gnulib module strtoimax for portability"); |
| @@ -1016,7 +1013,6 @@ _GL_CXXALIAS_SYS (strtoumax, uintmax_t, | |||
| 1016 | # endif | 1013 | # endif |
| 1017 | _GL_CXXALIASWARN (strtoumax); | 1014 | _GL_CXXALIASWARN (strtoumax); |
| 1018 | #elif defined GNULIB_POSIXCHECK | 1015 | #elif defined GNULIB_POSIXCHECK |
| 1019 | # undef strtoumax | ||
| 1020 | # if HAVE_RAW_DECL_STRTOUMAX | 1016 | # if HAVE_RAW_DECL_STRTOUMAX |
| 1021 | _GL_WARN_ON_USE (strtoumax, "strtoumax is unportable - " | 1017 | _GL_WARN_ON_USE (strtoumax, "strtoumax is unportable - " |
| 1022 | "use gnulib module strtoumax for portability"); | 1018 | "use gnulib module strtoumax for portability"); |
diff --git a/lib/signal.in.h b/lib/signal.in.h index 66e0c310ef8..45556dbbc4f 100644 --- a/lib/signal.in.h +++ b/lib/signal.in.h | |||
| @@ -156,7 +156,6 @@ _GL_CXXALIAS_SYS (sig2str, int, (int signo, char *str)); | |||
| 156 | _GL_CXXALIASWARN (sig2str); | 156 | _GL_CXXALIASWARN (sig2str); |
| 157 | # endif | 157 | # endif |
| 158 | #elif defined GNULIB_POSIXCHECK | 158 | #elif defined GNULIB_POSIXCHECK |
| 159 | # undef sig2str | ||
| 160 | # if HAVE_RAW_DECL_SIG2STR | 159 | # if HAVE_RAW_DECL_SIG2STR |
| 161 | _GL_WARN_ON_USE (sig2str, "sig2str is not portable - " | 160 | _GL_WARN_ON_USE (sig2str, "sig2str is not portable - " |
| 162 | "use gnulib module sig2str for portability"); | 161 | "use gnulib module sig2str for portability"); |
| @@ -172,7 +171,6 @@ _GL_CXXALIAS_SYS (str2sig, int, (char const *str, int *signo_p)); | |||
| 172 | _GL_CXXALIASWARN (str2sig); | 171 | _GL_CXXALIASWARN (str2sig); |
| 173 | # endif | 172 | # endif |
| 174 | #elif defined GNULIB_POSIXCHECK | 173 | #elif defined GNULIB_POSIXCHECK |
| 175 | # undef str2sig | ||
| 176 | # if HAVE_RAW_DECL_STR2SIG | 174 | # if HAVE_RAW_DECL_STR2SIG |
| 177 | _GL_WARN_ON_USE (str2sig, "str2sig is not portable - " | 175 | _GL_WARN_ON_USE (str2sig, "str2sig is not portable - " |
| 178 | "use gnulib module sig2str for portability"); | 176 | "use gnulib module sig2str for portability"); |
| @@ -210,7 +208,6 @@ _GL_CXXALIAS_SYS (pthread_sigmask, int, | |||
| 210 | _GL_CXXALIASWARN (pthread_sigmask); | 208 | _GL_CXXALIASWARN (pthread_sigmask); |
| 211 | # endif | 209 | # endif |
| 212 | #elif defined GNULIB_POSIXCHECK | 210 | #elif defined GNULIB_POSIXCHECK |
| 213 | # undef pthread_sigmask | ||
| 214 | # if HAVE_RAW_DECL_PTHREAD_SIGMASK | 211 | # if HAVE_RAW_DECL_PTHREAD_SIGMASK |
| 215 | _GL_WARN_ON_USE (pthread_sigmask, "pthread_sigmask is not portable - " | 212 | _GL_WARN_ON_USE (pthread_sigmask, "pthread_sigmask is not portable - " |
| 216 | "use gnulib module pthread_sigmask for portability"); | 213 | "use gnulib module pthread_sigmask for portability"); |
| @@ -236,7 +233,6 @@ _GL_CXXALIAS_SYS (raise, int, (int sig)); | |||
| 236 | _GL_CXXALIASWARN (raise); | 233 | _GL_CXXALIASWARN (raise); |
| 237 | # endif | 234 | # endif |
| 238 | #elif defined GNULIB_POSIXCHECK | 235 | #elif defined GNULIB_POSIXCHECK |
| 239 | # undef raise | ||
| 240 | /* Assume raise is always declared. */ | 236 | /* Assume raise is always declared. */ |
| 241 | _GL_WARN_ON_USE (raise, "raise can crash on native Windows - " | 237 | _GL_WARN_ON_USE (raise, "raise can crash on native Windows - " |
| 242 | "use gnulib module raise for portability"); | 238 | "use gnulib module raise for portability"); |
| @@ -407,37 +403,30 @@ _GL_EXTERN_C int _gl_raise_SIGPIPE (void); | |||
| 407 | # endif | 403 | # endif |
| 408 | 404 | ||
| 409 | #elif defined GNULIB_POSIXCHECK | 405 | #elif defined GNULIB_POSIXCHECK |
| 410 | # undef sigaddset | ||
| 411 | # if HAVE_RAW_DECL_SIGADDSET | 406 | # if HAVE_RAW_DECL_SIGADDSET |
| 412 | _GL_WARN_ON_USE (sigaddset, "sigaddset is unportable - " | 407 | _GL_WARN_ON_USE (sigaddset, "sigaddset is unportable - " |
| 413 | "use the gnulib module sigprocmask for portability"); | 408 | "use the gnulib module sigprocmask for portability"); |
| 414 | # endif | 409 | # endif |
| 415 | # undef sigdelset | ||
| 416 | # if HAVE_RAW_DECL_SIGDELSET | 410 | # if HAVE_RAW_DECL_SIGDELSET |
| 417 | _GL_WARN_ON_USE (sigdelset, "sigdelset is unportable - " | 411 | _GL_WARN_ON_USE (sigdelset, "sigdelset is unportable - " |
| 418 | "use the gnulib module sigprocmask for portability"); | 412 | "use the gnulib module sigprocmask for portability"); |
| 419 | # endif | 413 | # endif |
| 420 | # undef sigemptyset | ||
| 421 | # if HAVE_RAW_DECL_SIGEMPTYSET | 414 | # if HAVE_RAW_DECL_SIGEMPTYSET |
| 422 | _GL_WARN_ON_USE (sigemptyset, "sigemptyset is unportable - " | 415 | _GL_WARN_ON_USE (sigemptyset, "sigemptyset is unportable - " |
| 423 | "use the gnulib module sigprocmask for portability"); | 416 | "use the gnulib module sigprocmask for portability"); |
| 424 | # endif | 417 | # endif |
| 425 | # undef sigfillset | ||
| 426 | # if HAVE_RAW_DECL_SIGFILLSET | 418 | # if HAVE_RAW_DECL_SIGFILLSET |
| 427 | _GL_WARN_ON_USE (sigfillset, "sigfillset is unportable - " | 419 | _GL_WARN_ON_USE (sigfillset, "sigfillset is unportable - " |
| 428 | "use the gnulib module sigprocmask for portability"); | 420 | "use the gnulib module sigprocmask for portability"); |
| 429 | # endif | 421 | # endif |
| 430 | # undef sigismember | ||
| 431 | # if HAVE_RAW_DECL_SIGISMEMBER | 422 | # if HAVE_RAW_DECL_SIGISMEMBER |
| 432 | _GL_WARN_ON_USE (sigismember, "sigismember is unportable - " | 423 | _GL_WARN_ON_USE (sigismember, "sigismember is unportable - " |
| 433 | "use the gnulib module sigprocmask for portability"); | 424 | "use the gnulib module sigprocmask for portability"); |
| 434 | # endif | 425 | # endif |
| 435 | # undef sigpending | ||
| 436 | # if HAVE_RAW_DECL_SIGPENDING | 426 | # if HAVE_RAW_DECL_SIGPENDING |
| 437 | _GL_WARN_ON_USE (sigpending, "sigpending is unportable - " | 427 | _GL_WARN_ON_USE (sigpending, "sigpending is unportable - " |
| 438 | "use the gnulib module sigprocmask for portability"); | 428 | "use the gnulib module sigprocmask for portability"); |
| 439 | # endif | 429 | # endif |
| 440 | # undef sigprocmask | ||
| 441 | # if HAVE_RAW_DECL_SIGPROCMASK | 430 | # if HAVE_RAW_DECL_SIGPROCMASK |
| 442 | _GL_WARN_ON_USE (sigprocmask, "sigprocmask is unportable - " | 431 | _GL_WARN_ON_USE (sigprocmask, "sigprocmask is unportable - " |
| 443 | "use the gnulib module sigprocmask for portability"); | 432 | "use the gnulib module sigprocmask for portability"); |
| @@ -523,7 +512,6 @@ _GL_CXXALIAS_SYS (sigaction, int, (int, const struct sigaction *restrict, | |||
| 523 | _GL_CXXALIASWARN (sigaction); | 512 | _GL_CXXALIASWARN (sigaction); |
| 524 | 513 | ||
| 525 | #elif defined GNULIB_POSIXCHECK | 514 | #elif defined GNULIB_POSIXCHECK |
| 526 | # undef sigaction | ||
| 527 | # if HAVE_RAW_DECL_SIGACTION | 515 | # if HAVE_RAW_DECL_SIGACTION |
| 528 | _GL_WARN_ON_USE (sigaction, "sigaction is unportable - " | 516 | _GL_WARN_ON_USE (sigaction, "sigaction is unportable - " |
| 529 | "use the gnulib module sigaction for portability"); | 517 | "use the gnulib module sigaction for portability"); |
diff --git a/lib/stdio.in.h b/lib/stdio.in.h index cc6010119d0..c2af4f6dffc 100644 --- a/lib/stdio.in.h +++ b/lib/stdio.in.h | |||
| @@ -338,7 +338,7 @@ _GL_CXXALIAS_SYS (dprintf, int, (int fd, const char *restrict format, ...)); | |||
| 338 | _GL_CXXALIASWARN (dprintf); | 338 | _GL_CXXALIASWARN (dprintf); |
| 339 | # endif | 339 | # endif |
| 340 | #elif defined GNULIB_POSIXCHECK | 340 | #elif defined GNULIB_POSIXCHECK |
| 341 | # undef dprintf | 341 | # undef dprintf /* https://lists.gnu.org/r/bug-gnulib/2025-11/msg00254.html */ |
| 342 | # if HAVE_RAW_DECL_DPRINTF | 342 | # if HAVE_RAW_DECL_DPRINTF |
| 343 | _GL_WARN_ON_USE (dprintf, "dprintf is unportable - " | 343 | _GL_WARN_ON_USE (dprintf, "dprintf is unportable - " |
| 344 | "use gnulib module dprintf for portability"); | 344 | "use gnulib module dprintf for portability"); |
| @@ -360,7 +360,6 @@ _GL_CXXALIAS_SYS (fclose, int, (FILE *stream)); | |||
| 360 | _GL_CXXALIASWARN (fclose); | 360 | _GL_CXXALIASWARN (fclose); |
| 361 | # endif | 361 | # endif |
| 362 | #elif defined GNULIB_POSIXCHECK | 362 | #elif defined GNULIB_POSIXCHECK |
| 363 | # undef fclose | ||
| 364 | /* Assume fclose is always declared. */ | 363 | /* Assume fclose is always declared. */ |
| 365 | _GL_WARN_ON_USE (fclose, "fclose is not always POSIX compliant - " | 364 | _GL_WARN_ON_USE (fclose, "fclose is not always POSIX compliant - " |
| 366 | "use gnulib module fclose for portable POSIX compliance"); | 365 | "use gnulib module fclose for portable POSIX compliance"); |
| @@ -447,7 +446,6 @@ _GL_FUNCDECL_SYS (fdopen, FILE *, | |||
| 447 | # endif | 446 | # endif |
| 448 | # endif | 447 | # endif |
| 449 | # if defined GNULIB_POSIXCHECK | 448 | # if defined GNULIB_POSIXCHECK |
| 450 | # undef fdopen | ||
| 451 | /* Assume fdopen is always declared. */ | 449 | /* Assume fdopen is always declared. */ |
| 452 | _GL_WARN_ON_USE (fdopen, "fdopen on native Windows platforms is not POSIX compliant - " | 450 | _GL_WARN_ON_USE (fdopen, "fdopen on native Windows platforms is not POSIX compliant - " |
| 453 | "use gnulib module fdopen for portability"); | 451 | "use gnulib module fdopen for portability"); |
| @@ -488,7 +486,6 @@ _GL_CXXALIAS_SYS (fflush, int, (FILE *gl_stream)); | |||
| 488 | _GL_CXXALIASWARN (fflush); | 486 | _GL_CXXALIASWARN (fflush); |
| 489 | # endif | 487 | # endif |
| 490 | #elif defined GNULIB_POSIXCHECK | 488 | #elif defined GNULIB_POSIXCHECK |
| 491 | # undef fflush | ||
| 492 | /* Assume fflush is always declared. */ | 489 | /* Assume fflush is always declared. */ |
| 493 | _GL_WARN_ON_USE (fflush, "fflush is not always POSIX compliant - " | 490 | _GL_WARN_ON_USE (fflush, "fflush is not always POSIX compliant - " |
| 494 | "use gnulib module fflush for portable POSIX compliance"); | 491 | "use gnulib module fflush for portable POSIX compliance"); |
| @@ -581,7 +578,6 @@ _GL_FUNCDECL_SYS (fopen, FILE *, | |||
| 581 | _GL_ARG_NONNULL ((1, 2)) _GL_ATTRIBUTE_DEALLOC (fclose, 1)); | 578 | _GL_ARG_NONNULL ((1, 2)) _GL_ATTRIBUTE_DEALLOC (fclose, 1)); |
| 582 | # endif | 579 | # endif |
| 583 | # if defined GNULIB_POSIXCHECK | 580 | # if defined GNULIB_POSIXCHECK |
| 584 | # undef fopen | ||
| 585 | /* Assume fopen is always declared. */ | 581 | /* Assume fopen is always declared. */ |
| 586 | _GL_WARN_ON_USE (fopen, "fopen on native Windows platforms is not POSIX compliant - " | 582 | _GL_WARN_ON_USE (fopen, "fopen on native Windows platforms is not POSIX compliant - " |
| 587 | "use gnulib module fopen for portability"); | 583 | "use gnulib module fopen for portability"); |
| @@ -641,9 +637,6 @@ _GL_CXXALIASWARN (fprintf); | |||
| 641 | # endif | 637 | # endif |
| 642 | #endif | 638 | #endif |
| 643 | #if !@GNULIB_FPRINTF_POSIX@ && defined GNULIB_POSIXCHECK | 639 | #if !@GNULIB_FPRINTF_POSIX@ && defined GNULIB_POSIXCHECK |
| 644 | # if !GNULIB_overrides_fprintf | ||
| 645 | # undef fprintf | ||
| 646 | # endif | ||
| 647 | /* Assume fprintf is always declared. */ | 640 | /* Assume fprintf is always declared. */ |
| 648 | _GL_WARN_ON_USE (fprintf, "fprintf is not always POSIX compliant - " | 641 | _GL_WARN_ON_USE (fprintf, "fprintf is not always POSIX compliant - " |
| 649 | "use gnulib module fprintf-posix for portable " | 642 | "use gnulib module fprintf-posix for portable " |
| @@ -673,7 +666,6 @@ _GL_CXXALIAS_SYS (fpurge, int, (FILE *gl_stream)); | |||
| 673 | _GL_CXXALIASWARN (fpurge); | 666 | _GL_CXXALIASWARN (fpurge); |
| 674 | # endif | 667 | # endif |
| 675 | #elif defined GNULIB_POSIXCHECK | 668 | #elif defined GNULIB_POSIXCHECK |
| 676 | # undef fpurge | ||
| 677 | # if HAVE_RAW_DECL_FPURGE | 669 | # if HAVE_RAW_DECL_FPURGE |
| 678 | _GL_WARN_ON_USE (fpurge, "fpurge is not always present - " | 670 | _GL_WARN_ON_USE (fpurge, "fpurge is not always present - " |
| 679 | "use gnulib module fpurge for portability"); | 671 | "use gnulib module fpurge for portability"); |
| @@ -761,7 +753,6 @@ _GL_CXXALIAS_SYS (freopen, FILE *, | |||
| 761 | _GL_CXXALIASWARN (freopen); | 753 | _GL_CXXALIASWARN (freopen); |
| 762 | # endif | 754 | # endif |
| 763 | #elif defined GNULIB_POSIXCHECK | 755 | #elif defined GNULIB_POSIXCHECK |
| 764 | # undef freopen | ||
| 765 | /* Assume freopen is always declared. */ | 756 | /* Assume freopen is always declared. */ |
| 766 | _GL_WARN_ON_USE (freopen, | 757 | _GL_WARN_ON_USE (freopen, |
| 767 | "freopen on native Windows platforms is not POSIX compliant - " | 758 | "freopen on native Windows platforms is not POSIX compliant - " |
| @@ -868,7 +859,6 @@ _GL_CXXALIASWARN (fseeko); | |||
| 868 | #elif defined GNULIB_POSIXCHECK | 859 | #elif defined GNULIB_POSIXCHECK |
| 869 | # define _GL_FSEEK_WARN /* Category 1, above. */ | 860 | # define _GL_FSEEK_WARN /* Category 1, above. */ |
| 870 | # undef fseek | 861 | # undef fseek |
| 871 | # undef fseeko | ||
| 872 | # if HAVE_RAW_DECL_FSEEKO | 862 | # if HAVE_RAW_DECL_FSEEKO |
| 873 | _GL_WARN_ON_USE (fseeko, "fseeko is unportable - " | 863 | _GL_WARN_ON_USE (fseeko, "fseeko is unportable - " |
| 874 | "use gnulib module fseeko for portability"); | 864 | "use gnulib module fseeko for portability"); |
| @@ -932,7 +922,6 @@ _GL_CXXALIASWARN (ftello); | |||
| 932 | #elif defined GNULIB_POSIXCHECK | 922 | #elif defined GNULIB_POSIXCHECK |
| 933 | # define _GL_FTELL_WARN /* Category 1, above. */ | 923 | # define _GL_FTELL_WARN /* Category 1, above. */ |
| 934 | # undef ftell | 924 | # undef ftell |
| 935 | # undef ftello | ||
| 936 | # if HAVE_RAW_DECL_FTELLO | 925 | # if HAVE_RAW_DECL_FTELLO |
| 937 | _GL_WARN_ON_USE (ftello, "ftello is unportable - " | 926 | _GL_WARN_ON_USE (ftello, "ftello is unportable - " |
| 938 | "use gnulib module ftello for portability"); | 927 | "use gnulib module ftello for portability"); |
| @@ -1081,7 +1070,6 @@ _GL_CXXALIAS_SYS (getdelim, ssize_t, | |||
| 1081 | _GL_CXXALIASWARN (getdelim); | 1070 | _GL_CXXALIASWARN (getdelim); |
| 1082 | # endif | 1071 | # endif |
| 1083 | #elif defined GNULIB_POSIXCHECK | 1072 | #elif defined GNULIB_POSIXCHECK |
| 1084 | # undef getdelim | ||
| 1085 | # if HAVE_RAW_DECL_GETDELIM | 1073 | # if HAVE_RAW_DECL_GETDELIM |
| 1086 | _GL_WARN_ON_USE (getdelim, "getdelim is unportable - " | 1074 | _GL_WARN_ON_USE (getdelim, "getdelim is unportable - " |
| 1087 | "use gnulib module getdelim for portability"); | 1075 | "use gnulib module getdelim for portability"); |
| @@ -1135,7 +1123,6 @@ _GL_CXXALIAS_SYS (getline, ssize_t, | |||
| 1135 | _GL_CXXALIASWARN (getline); | 1123 | _GL_CXXALIASWARN (getline); |
| 1136 | # endif | 1124 | # endif |
| 1137 | #elif defined GNULIB_POSIXCHECK | 1125 | #elif defined GNULIB_POSIXCHECK |
| 1138 | # undef getline | ||
| 1139 | # if HAVE_RAW_DECL_GETLINE | 1126 | # if HAVE_RAW_DECL_GETLINE |
| 1140 | _GL_WARN_ON_USE (getline, "getline is unportable - " | 1127 | _GL_WARN_ON_USE (getline, "getline is unportable - " |
| 1141 | "use gnulib module getline for portability"); | 1128 | "use gnulib module getline for portability"); |
| @@ -1145,7 +1132,6 @@ _GL_WARN_ON_USE (getline, "getline is unportable - " | |||
| 1145 | /* It is very rare that the developer ever has full control of stdin, | 1132 | /* It is very rare that the developer ever has full control of stdin, |
| 1146 | so any use of gets warrants an unconditional warning; besides, C11 | 1133 | so any use of gets warrants an unconditional warning; besides, C11 |
| 1147 | removed it. */ | 1134 | removed it. */ |
| 1148 | #undef gets | ||
| 1149 | #if HAVE_RAW_DECL_GETS && !defined __cplusplus | 1135 | #if HAVE_RAW_DECL_GETS && !defined __cplusplus |
| 1150 | _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); | 1136 | _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); |
| 1151 | #endif | 1137 | #endif |
| @@ -1258,7 +1244,6 @@ _GL_FUNCDECL_SYS (pclose, int, (FILE *stream), _GL_ARG_NONNULL ((1))); | |||
| 1258 | _GL_CXXALIAS_SYS (pclose, int, (FILE *stream)); | 1244 | _GL_CXXALIAS_SYS (pclose, int, (FILE *stream)); |
| 1259 | _GL_CXXALIASWARN (pclose); | 1245 | _GL_CXXALIASWARN (pclose); |
| 1260 | #elif defined GNULIB_POSIXCHECK | 1246 | #elif defined GNULIB_POSIXCHECK |
| 1261 | # undef pclose | ||
| 1262 | # if HAVE_RAW_DECL_PCLOSE | 1247 | # if HAVE_RAW_DECL_PCLOSE |
| 1263 | _GL_WARN_ON_USE (pclose, "pclose is unportable - " | 1248 | _GL_WARN_ON_USE (pclose, "pclose is unportable - " |
| 1264 | "use gnulib module pclose for more portability"); | 1249 | "use gnulib module pclose for more portability"); |
| @@ -1282,7 +1267,6 @@ _GL_CXXALIAS_SYS (perror, void, (const char *string)); | |||
| 1282 | _GL_CXXALIASWARN (perror); | 1267 | _GL_CXXALIASWARN (perror); |
| 1283 | # endif | 1268 | # endif |
| 1284 | #elif defined GNULIB_POSIXCHECK | 1269 | #elif defined GNULIB_POSIXCHECK |
| 1285 | # undef perror | ||
| 1286 | /* Assume perror is always declared. */ | 1270 | /* Assume perror is always declared. */ |
| 1287 | _GL_WARN_ON_USE (perror, "perror is not always POSIX compliant - " | 1271 | _GL_WARN_ON_USE (perror, "perror is not always POSIX compliant - " |
| 1288 | "use gnulib module perror for portability"); | 1272 | "use gnulib module perror for portability"); |
| @@ -1319,7 +1303,6 @@ _GL_FUNCDECL_SYS (popen, FILE *, | |||
| 1319 | _GL_ATTRIBUTE_MALLOC); | 1303 | _GL_ATTRIBUTE_MALLOC); |
| 1320 | # endif | 1304 | # endif |
| 1321 | # if defined GNULIB_POSIXCHECK | 1305 | # if defined GNULIB_POSIXCHECK |
| 1322 | # undef popen | ||
| 1323 | # if HAVE_RAW_DECL_POPEN | 1306 | # if HAVE_RAW_DECL_POPEN |
| 1324 | _GL_WARN_ON_USE (popen, "popen is buggy on some platforms - " | 1307 | _GL_WARN_ON_USE (popen, "popen is buggy on some platforms - " |
| 1325 | "use gnulib module popen or pipe for more portability"); | 1308 | "use gnulib module popen or pipe for more portability"); |
| @@ -1392,9 +1375,6 @@ _GL_CXXALIASWARN (printf); | |||
| 1392 | # endif | 1375 | # endif |
| 1393 | #endif | 1376 | #endif |
| 1394 | #if !@GNULIB_PRINTF_POSIX@ && defined GNULIB_POSIXCHECK | 1377 | #if !@GNULIB_PRINTF_POSIX@ && defined GNULIB_POSIXCHECK |
| 1395 | # if !GNULIB_overrides_printf | ||
| 1396 | # undef printf | ||
| 1397 | # endif | ||
| 1398 | /* Assume printf is always declared. */ | 1378 | /* Assume printf is always declared. */ |
| 1399 | _GL_WARN_ON_USE (printf, "printf is not always POSIX compliant - " | 1379 | _GL_WARN_ON_USE (printf, "printf is not always POSIX compliant - " |
| 1400 | "use gnulib module printf-posix for portable " | 1380 | "use gnulib module printf-posix for portable " |
| @@ -1488,7 +1468,6 @@ _GL_CXXALIAS_SYS (remove, int, (const char *name)); | |||
| 1488 | _GL_CXXALIASWARN (remove); | 1468 | _GL_CXXALIASWARN (remove); |
| 1489 | # endif | 1469 | # endif |
| 1490 | #elif defined GNULIB_POSIXCHECK | 1470 | #elif defined GNULIB_POSIXCHECK |
| 1491 | # undef remove | ||
| 1492 | /* Assume remove is always declared. */ | 1471 | /* Assume remove is always declared. */ |
| 1493 | _GL_WARN_ON_USE (remove, "remove cannot handle directories on some platforms - " | 1472 | _GL_WARN_ON_USE (remove, "remove cannot handle directories on some platforms - " |
| 1494 | "use gnulib module remove for more portability"); | 1473 | "use gnulib module remove for more portability"); |
| @@ -1513,7 +1492,6 @@ _GL_CXXALIAS_SYS (rename, int, | |||
| 1513 | _GL_CXXALIASWARN (rename); | 1492 | _GL_CXXALIASWARN (rename); |
| 1514 | # endif | 1493 | # endif |
| 1515 | #elif defined GNULIB_POSIXCHECK | 1494 | #elif defined GNULIB_POSIXCHECK |
| 1516 | # undef rename | ||
| 1517 | /* Assume rename is always declared. */ | 1495 | /* Assume rename is always declared. */ |
| 1518 | _GL_WARN_ON_USE (rename, "rename is buggy on some platforms - " | 1496 | _GL_WARN_ON_USE (rename, "rename is buggy on some platforms - " |
| 1519 | "use gnulib module rename for more portability"); | 1497 | "use gnulib module rename for more portability"); |
| @@ -1541,7 +1519,6 @@ _GL_CXXALIAS_SYS (renameat, int, | |||
| 1541 | # endif | 1519 | # endif |
| 1542 | _GL_CXXALIASWARN (renameat); | 1520 | _GL_CXXALIASWARN (renameat); |
| 1543 | #elif defined GNULIB_POSIXCHECK | 1521 | #elif defined GNULIB_POSIXCHECK |
| 1544 | # undef renameat | ||
| 1545 | # if HAVE_RAW_DECL_RENAMEAT | 1522 | # if HAVE_RAW_DECL_RENAMEAT |
| 1546 | _GL_WARN_ON_USE (renameat, "renameat is not portable - " | 1523 | _GL_WARN_ON_USE (renameat, "renameat is not portable - " |
| 1547 | "use gnulib module renameat for portability"); | 1524 | "use gnulib module renameat for portability"); |
| @@ -1635,7 +1612,6 @@ _GL_CXXALIAS_SYS (snprintf, int, | |||
| 1635 | _GL_CXXALIASWARN (snprintf); | 1612 | _GL_CXXALIASWARN (snprintf); |
| 1636 | # endif | 1613 | # endif |
| 1637 | #elif defined GNULIB_POSIXCHECK | 1614 | #elif defined GNULIB_POSIXCHECK |
| 1638 | # undef snprintf | ||
| 1639 | # if HAVE_RAW_DECL_SNPRINTF | 1615 | # if HAVE_RAW_DECL_SNPRINTF |
| 1640 | _GL_WARN_ON_USE (snprintf, "snprintf is unportable - " | 1616 | _GL_WARN_ON_USE (snprintf, "snprintf is unportable - " |
| 1641 | "use gnulib module snprintf for portability"); | 1617 | "use gnulib module snprintf for portability"); |
| @@ -1691,7 +1667,6 @@ _GL_CXXALIAS_SYS (sprintf, int, | |||
| 1691 | _GL_CXXALIASWARN (sprintf); | 1667 | _GL_CXXALIASWARN (sprintf); |
| 1692 | # endif | 1668 | # endif |
| 1693 | #elif defined GNULIB_POSIXCHECK | 1669 | #elif defined GNULIB_POSIXCHECK |
| 1694 | # undef sprintf | ||
| 1695 | /* Assume sprintf is always declared. */ | 1670 | /* Assume sprintf is always declared. */ |
| 1696 | _GL_WARN_ON_USE (sprintf, "sprintf is not always POSIX compliant - " | 1671 | _GL_WARN_ON_USE (sprintf, "sprintf is not always POSIX compliant - " |
| 1697 | "use gnulib module sprintf-posix for portable " | 1672 | "use gnulib module sprintf-posix for portable " |
| @@ -1746,7 +1721,6 @@ _GL_FUNCDECL_SYS (tmpfile, FILE *, (void), | |||
| 1746 | _GL_ATTRIBUTE_MALLOC); | 1721 | _GL_ATTRIBUTE_MALLOC); |
| 1747 | # endif | 1722 | # endif |
| 1748 | # if defined GNULIB_POSIXCHECK | 1723 | # if defined GNULIB_POSIXCHECK |
| 1749 | # undef tmpfile | ||
| 1750 | # if HAVE_RAW_DECL_TMPFILE | 1724 | # if HAVE_RAW_DECL_TMPFILE |
| 1751 | _GL_WARN_ON_USE (tmpfile, "tmpfile is not usable on mingw - " | 1725 | _GL_WARN_ON_USE (tmpfile, "tmpfile is not usable on mingw - " |
| 1752 | "use gnulib module tmpfile for portability"); | 1726 | "use gnulib module tmpfile for portability"); |
| @@ -1880,7 +1854,6 @@ _GL_CXXALIAS_SYS_CAST (vdprintf, int, | |||
| 1880 | _GL_CXXALIASWARN (vdprintf); | 1854 | _GL_CXXALIASWARN (vdprintf); |
| 1881 | # endif | 1855 | # endif |
| 1882 | #elif defined GNULIB_POSIXCHECK | 1856 | #elif defined GNULIB_POSIXCHECK |
| 1883 | # undef vdprintf | ||
| 1884 | # if HAVE_RAW_DECL_VDPRINTF | 1857 | # if HAVE_RAW_DECL_VDPRINTF |
| 1885 | _GL_WARN_ON_USE (vdprintf, "vdprintf is unportable - " | 1858 | _GL_WARN_ON_USE (vdprintf, "vdprintf is unportable - " |
| 1886 | "use gnulib module vdprintf for portability"); | 1859 | "use gnulib module vdprintf for portability"); |
| @@ -1949,9 +1922,6 @@ _GL_CXXALIASWARN (vfprintf); | |||
| 1949 | # endif | 1922 | # endif |
| 1950 | #endif | 1923 | #endif |
| 1951 | #if !@GNULIB_VFPRINTF_POSIX@ && defined GNULIB_POSIXCHECK | 1924 | #if !@GNULIB_VFPRINTF_POSIX@ && defined GNULIB_POSIXCHECK |
| 1952 | # if !GNULIB_overrides_vfprintf | ||
| 1953 | # undef vfprintf | ||
| 1954 | # endif | ||
| 1955 | /* Assume vfprintf is always declared. */ | 1925 | /* Assume vfprintf is always declared. */ |
| 1956 | _GL_WARN_ON_USE (vfprintf, "vfprintf is not always POSIX compliant - " | 1926 | _GL_WARN_ON_USE (vfprintf, "vfprintf is not always POSIX compliant - " |
| 1957 | "use gnulib module vfprintf-posix for portable " | 1927 | "use gnulib module vfprintf-posix for portable " |
| @@ -2035,9 +2005,6 @@ _GL_CXXALIASWARN (vprintf); | |||
| 2035 | # endif | 2005 | # endif |
| 2036 | #endif | 2006 | #endif |
| 2037 | #if !@GNULIB_VPRINTF_POSIX@ && defined GNULIB_POSIXCHECK | 2007 | #if !@GNULIB_VPRINTF_POSIX@ && defined GNULIB_POSIXCHECK |
| 2038 | # if !GNULIB_overrides_vprintf | ||
| 2039 | # undef vprintf | ||
| 2040 | # endif | ||
| 2041 | /* Assume vprintf is always declared. */ | 2008 | /* Assume vprintf is always declared. */ |
| 2042 | _GL_WARN_ON_USE (vprintf, "vprintf is not always POSIX compliant - " | 2009 | _GL_WARN_ON_USE (vprintf, "vprintf is not always POSIX compliant - " |
| 2043 | "use gnulib module vprintf-posix for portable " | 2010 | "use gnulib module vprintf-posix for portable " |
| @@ -2116,7 +2083,6 @@ _GL_CXXALIAS_SYS (vsnprintf, int, | |||
| 2116 | _GL_CXXALIASWARN (vsnprintf); | 2083 | _GL_CXXALIASWARN (vsnprintf); |
| 2117 | # endif | 2084 | # endif |
| 2118 | #elif defined GNULIB_POSIXCHECK | 2085 | #elif defined GNULIB_POSIXCHECK |
| 2119 | # undef vsnprintf | ||
| 2120 | # if HAVE_RAW_DECL_VSNPRINTF | 2086 | # if HAVE_RAW_DECL_VSNPRINTF |
| 2121 | _GL_WARN_ON_USE (vsnprintf, "vsnprintf is unportable - " | 2087 | _GL_WARN_ON_USE (vsnprintf, "vsnprintf is unportable - " |
| 2122 | "use gnulib module vsnprintf for portability"); | 2088 | "use gnulib module vsnprintf for portability"); |
| @@ -2169,7 +2135,6 @@ _GL_CXXALIAS_SYS_CAST (vsprintf, int, | |||
| 2169 | _GL_CXXALIASWARN (vsprintf); | 2135 | _GL_CXXALIASWARN (vsprintf); |
| 2170 | # endif | 2136 | # endif |
| 2171 | #elif defined GNULIB_POSIXCHECK | 2137 | #elif defined GNULIB_POSIXCHECK |
| 2172 | # undef vsprintf | ||
| 2173 | /* Assume vsprintf is always declared. */ | 2138 | /* Assume vsprintf is always declared. */ |
| 2174 | _GL_WARN_ON_USE (vsprintf, "vsprintf is not always POSIX compliant - " | 2139 | _GL_WARN_ON_USE (vsprintf, "vsprintf is not always POSIX compliant - " |
| 2175 | "use gnulib module vsprintf-posix for portable " | 2140 | "use gnulib module vsprintf-posix for portable " |
diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h index bef0aaaf92e..b5ad275e5d6 100644 --- a/lib/stdlib.in.h +++ b/lib/stdlib.in.h | |||
| @@ -224,9 +224,9 @@ _GL_INLINE_HEADER_BEGIN | |||
| 224 | 224 | ||
| 225 | /* Declarations for ISO C N3322. */ | 225 | /* Declarations for ISO C N3322. */ |
| 226 | #if defined __GNUC__ && __GNUC__ >= 15 && !defined __clang__ | 226 | #if defined __GNUC__ && __GNUC__ >= 15 && !defined __clang__ |
| 227 | _GL_EXTERN_C void *bsearch (const void *__key, | 227 | _GL_EXTERN_C void *_GL_FUNCDECL_SYS_NAME (bsearch) |
| 228 | const void *__base, size_t __nmemb, size_t __size, | 228 | (const void *__key, const void *__base, size_t __nmemb, size_t __size, |
| 229 | int (*__compare) (const void *, const void *)) | 229 | int (*__compare) (const void *, const void *)) |
| 230 | _GL_ATTRIBUTE_NONNULL_IF_NONZERO (2, 3) _GL_ARG_NONNULL ((5)); | 230 | _GL_ATTRIBUTE_NONNULL_IF_NONZERO (2, 3) _GL_ARG_NONNULL ((5)); |
| 231 | _GL_EXTERN_C void qsort (void *__base, size_t __nmemb, size_t __size, | 231 | _GL_EXTERN_C void qsort (void *__base, size_t __nmemb, size_t __size, |
| 232 | int (*__compare) (const void *, const void *)) | 232 | int (*__compare) (const void *, const void *)) |
| @@ -254,7 +254,6 @@ _GL_CXXALIAS_SYS (_Exit, void, (int status)); | |||
| 254 | _GL_CXXALIASWARN (_Exit); | 254 | _GL_CXXALIASWARN (_Exit); |
| 255 | # endif | 255 | # endif |
| 256 | #elif defined GNULIB_POSIXCHECK | 256 | #elif defined GNULIB_POSIXCHECK |
| 257 | # undef _Exit | ||
| 258 | # if HAVE_RAW_DECL__EXIT | 257 | # if HAVE_RAW_DECL__EXIT |
| 259 | _GL_WARN_ON_USE (_Exit, "_Exit is unportable - " | 258 | _GL_WARN_ON_USE (_Exit, "_Exit is unportable - " |
| 260 | "use gnulib module _Exit for portability"); | 259 | "use gnulib module _Exit for portability"); |
| @@ -301,7 +300,6 @@ _GL_CXXALIAS_SYS (free, void, (void *ptr)); | |||
| 301 | _GL_CXXALIASWARN (free); | 300 | _GL_CXXALIASWARN (free); |
| 302 | # endif | 301 | # endif |
| 303 | #elif defined GNULIB_POSIXCHECK | 302 | #elif defined GNULIB_POSIXCHECK |
| 304 | # undef free | ||
| 305 | /* Assume free is always declared. */ | 303 | /* Assume free is always declared. */ |
| 306 | _GL_WARN_ON_USE (free, "free is not POSIX:2024 compliant everywhere - " | 304 | _GL_WARN_ON_USE (free, "free is not POSIX:2024 compliant everywhere - " |
| 307 | "use gnulib module free-posix for portability"); | 305 | "use gnulib module free-posix for portability"); |
| @@ -359,7 +357,6 @@ _GL_FUNCDECL_SYS (aligned_alloc, void *, | |||
| 359 | # endif | 357 | # endif |
| 360 | # endif | 358 | # endif |
| 361 | # if defined GNULIB_POSIXCHECK | 359 | # if defined GNULIB_POSIXCHECK |
| 362 | # undef aligned_alloc | ||
| 363 | # if HAVE_RAW_DECL_ALIGNED_ALLOC | 360 | # if HAVE_RAW_DECL_ALIGNED_ALLOC |
| 364 | _GL_WARN_ON_USE (aligned_alloc, "aligned_alloc is not portable - " | 361 | _GL_WARN_ON_USE (aligned_alloc, "aligned_alloc is not portable - " |
| 365 | "use gnulib module aligned_alloc for portability"); | 362 | "use gnulib module aligned_alloc for portability"); |
| @@ -379,7 +376,6 @@ _GL_FUNCDECL_SYS (atoll, long long, | |||
| 379 | _GL_CXXALIAS_SYS (atoll, long long, (const char *string)); | 376 | _GL_CXXALIAS_SYS (atoll, long long, (const char *string)); |
| 380 | _GL_CXXALIASWARN (atoll); | 377 | _GL_CXXALIASWARN (atoll); |
| 381 | #elif defined GNULIB_POSIXCHECK | 378 | #elif defined GNULIB_POSIXCHECK |
| 382 | # undef atoll | ||
| 383 | # if HAVE_RAW_DECL_ATOLL | 379 | # if HAVE_RAW_DECL_ATOLL |
| 384 | _GL_WARN_ON_USE (atoll, "atoll is unportable - " | 380 | _GL_WARN_ON_USE (atoll, "atoll is unportable - " |
| 385 | "use gnulib module atoll for portability"); | 381 | "use gnulib module atoll for portability"); |
| @@ -436,7 +432,6 @@ _GL_FUNCDECL_SYS (calloc, void *, | |||
| 436 | # endif | 432 | # endif |
| 437 | # endif | 433 | # endif |
| 438 | # if defined GNULIB_POSIXCHECK | 434 | # if defined GNULIB_POSIXCHECK |
| 439 | # undef calloc | ||
| 440 | /* Assume calloc is always declared. */ | 435 | /* Assume calloc is always declared. */ |
| 441 | _GL_WARN_ON_USE (calloc, "calloc is not POSIX compliant everywhere - " | 436 | _GL_WARN_ON_USE (calloc, "calloc is not POSIX compliant everywhere - " |
| 442 | "use gnulib module calloc-posix for portability"); | 437 | "use gnulib module calloc-posix for portability"); |
| @@ -497,7 +492,6 @@ _GL_FUNCDECL_SYS (canonicalize_file_name, char *, | |||
| 497 | # endif | 492 | # endif |
| 498 | # endif | 493 | # endif |
| 499 | # if defined GNULIB_POSIXCHECK | 494 | # if defined GNULIB_POSIXCHECK |
| 500 | # undef canonicalize_file_name | ||
| 501 | # if HAVE_RAW_DECL_CANONICALIZE_FILE_NAME | 495 | # if HAVE_RAW_DECL_CANONICALIZE_FILE_NAME |
| 502 | _GL_WARN_ON_USE (canonicalize_file_name, | 496 | _GL_WARN_ON_USE (canonicalize_file_name, |
| 503 | "canonicalize_file_name is unportable - " | 497 | "canonicalize_file_name is unportable - " |
| @@ -597,7 +591,6 @@ _GL_CXXALIAS_SYS (getloadavg, int, (double loadavg[], int nelem)); | |||
| 597 | _GL_CXXALIASWARN (getloadavg); | 591 | _GL_CXXALIASWARN (getloadavg); |
| 598 | # endif | 592 | # endif |
| 599 | #elif defined GNULIB_POSIXCHECK | 593 | #elif defined GNULIB_POSIXCHECK |
| 600 | # undef getloadavg | ||
| 601 | # if HAVE_RAW_DECL_GETLOADAVG | 594 | # if HAVE_RAW_DECL_GETLOADAVG |
| 602 | _GL_WARN_ON_USE (getloadavg, "getloadavg is not portable - " | 595 | _GL_WARN_ON_USE (getloadavg, "getloadavg is not portable - " |
| 603 | "use gnulib module getloadavg for portability"); | 596 | "use gnulib module getloadavg for portability"); |
| @@ -632,7 +625,6 @@ _GL_CXXALIAS_SYS (getprogname, const char *, (void)); | |||
| 632 | _GL_CXXALIASWARN (getprogname); | 625 | _GL_CXXALIASWARN (getprogname); |
| 633 | # endif | 626 | # endif |
| 634 | #elif defined GNULIB_POSIXCHECK | 627 | #elif defined GNULIB_POSIXCHECK |
| 635 | # undef getprogname | ||
| 636 | # if HAVE_RAW_DECL_GETPROGNAME | 628 | # if HAVE_RAW_DECL_GETPROGNAME |
| 637 | _GL_WARN_ON_USE (getprogname, "getprogname is unportable - " | 629 | _GL_WARN_ON_USE (getprogname, "getprogname is unportable - " |
| 638 | "use gnulib module getprogname for portability"); | 630 | "use gnulib module getprogname for portability"); |
| @@ -674,7 +666,6 @@ _GL_CXXALIAS_SYS (getsubopt, int, | |||
| 674 | _GL_CXXALIASWARN (getsubopt); | 666 | _GL_CXXALIASWARN (getsubopt); |
| 675 | # endif | 667 | # endif |
| 676 | #elif defined GNULIB_POSIXCHECK | 668 | #elif defined GNULIB_POSIXCHECK |
| 677 | # undef getsubopt | ||
| 678 | # if HAVE_RAW_DECL_GETSUBOPT | 669 | # if HAVE_RAW_DECL_GETSUBOPT |
| 679 | _GL_WARN_ON_USE (getsubopt, "getsubopt is unportable - " | 670 | _GL_WARN_ON_USE (getsubopt, "getsubopt is unportable - " |
| 680 | "use gnulib module getsubopt for portability"); | 671 | "use gnulib module getsubopt for portability"); |
| @@ -690,7 +681,6 @@ _GL_FUNCDECL_SYS (grantpt, int, (int fd), ); | |||
| 690 | _GL_CXXALIAS_SYS (grantpt, int, (int fd)); | 681 | _GL_CXXALIAS_SYS (grantpt, int, (int fd)); |
| 691 | _GL_CXXALIASWARN (grantpt); | 682 | _GL_CXXALIASWARN (grantpt); |
| 692 | #elif defined GNULIB_POSIXCHECK | 683 | #elif defined GNULIB_POSIXCHECK |
| 693 | # undef grantpt | ||
| 694 | # if HAVE_RAW_DECL_GRANTPT | 684 | # if HAVE_RAW_DECL_GRANTPT |
| 695 | _GL_WARN_ON_USE (grantpt, "grantpt is not portable - " | 685 | _GL_WARN_ON_USE (grantpt, "grantpt is not portable - " |
| 696 | "use gnulib module grantpt for portability"); | 686 | "use gnulib module grantpt for portability"); |
| @@ -751,7 +741,6 @@ _GL_FUNCDECL_SYS (malloc, void *, | |||
| 751 | # endif | 741 | # endif |
| 752 | # endif | 742 | # endif |
| 753 | # if defined GNULIB_POSIXCHECK && !_GL_USE_STDLIB_ALLOC | 743 | # if defined GNULIB_POSIXCHECK && !_GL_USE_STDLIB_ALLOC |
| 754 | # undef malloc | ||
| 755 | /* Assume malloc is always declared. */ | 744 | /* Assume malloc is always declared. */ |
| 756 | _GL_WARN_ON_USE (malloc, "malloc is not POSIX compliant everywhere - " | 745 | _GL_WARN_ON_USE (malloc, "malloc is not POSIX compliant everywhere - " |
| 757 | "use gnulib module malloc-posix for portability"); | 746 | "use gnulib module malloc-posix for portability"); |
| @@ -802,7 +791,6 @@ _GL_CXXALIAS_SYS (mbstowcs, size_t, | |||
| 802 | _GL_CXXALIASWARN (mbstowcs); | 791 | _GL_CXXALIASWARN (mbstowcs); |
| 803 | # endif | 792 | # endif |
| 804 | #elif defined GNULIB_POSIXCHECK | 793 | #elif defined GNULIB_POSIXCHECK |
| 805 | # undef mbstowcs | ||
| 806 | # if HAVE_RAW_DECL_MBSTOWCS | 794 | # if HAVE_RAW_DECL_MBSTOWCS |
| 807 | _GL_WARN_ON_USE (mbstowcs, "mbstowcs is unportable - " | 795 | _GL_WARN_ON_USE (mbstowcs, "mbstowcs is unportable - " |
| 808 | "use gnulib module mbstowcs for portability"); | 796 | "use gnulib module mbstowcs for portability"); |
| @@ -832,7 +820,6 @@ _GL_CXXALIAS_SYS (mbtowc, int, | |||
| 832 | _GL_CXXALIASWARN (mbtowc); | 820 | _GL_CXXALIASWARN (mbtowc); |
| 833 | # endif | 821 | # endif |
| 834 | #elif defined GNULIB_POSIXCHECK | 822 | #elif defined GNULIB_POSIXCHECK |
| 835 | # undef mbtowc | ||
| 836 | # if HAVE_RAW_DECL_MBTOWC | 823 | # if HAVE_RAW_DECL_MBTOWC |
| 837 | _GL_WARN_ON_USE (mbtowc, "mbtowc is not portable - " | 824 | _GL_WARN_ON_USE (mbtowc, "mbtowc is not portable - " |
| 838 | "use gnulib module mbtowc for portability"); | 825 | "use gnulib module mbtowc for portability"); |
| @@ -853,7 +840,6 @@ _GL_FUNCDECL_SYS (mkdtemp, char *, | |||
| 853 | _GL_CXXALIAS_SYS (mkdtemp, char *, (char * /*template*/)); | 840 | _GL_CXXALIAS_SYS (mkdtemp, char *, (char * /*template*/)); |
| 854 | _GL_CXXALIASWARN (mkdtemp); | 841 | _GL_CXXALIASWARN (mkdtemp); |
| 855 | #elif defined GNULIB_POSIXCHECK | 842 | #elif defined GNULIB_POSIXCHECK |
| 856 | # undef mkdtemp | ||
| 857 | # if HAVE_RAW_DECL_MKDTEMP | 843 | # if HAVE_RAW_DECL_MKDTEMP |
| 858 | _GL_WARN_ON_USE (mkdtemp, "mkdtemp is unportable - " | 844 | _GL_WARN_ON_USE (mkdtemp, "mkdtemp is unportable - " |
| 859 | "use gnulib module mkdtemp for portability"); | 845 | "use gnulib module mkdtemp for portability"); |
| @@ -892,7 +878,6 @@ _GL_CXXALIAS_SYS (mkostemp, int, (char * /*template*/, int /*flags*/)); | |||
| 892 | _GL_CXXALIASWARN (mkostemp); | 878 | _GL_CXXALIASWARN (mkostemp); |
| 893 | # endif | 879 | # endif |
| 894 | #elif defined GNULIB_POSIXCHECK | 880 | #elif defined GNULIB_POSIXCHECK |
| 895 | # undef mkostemp | ||
| 896 | # if HAVE_RAW_DECL_MKOSTEMP | 881 | # if HAVE_RAW_DECL_MKOSTEMP |
| 897 | _GL_WARN_ON_USE (mkostemp, "mkostemp is unportable - " | 882 | _GL_WARN_ON_USE (mkostemp, "mkostemp is unportable - " |
| 898 | "use gnulib module mkostemp for portability"); | 883 | "use gnulib module mkostemp for portability"); |
| @@ -936,7 +921,6 @@ _GL_CXXALIAS_SYS (mkostemps, int, | |||
| 936 | _GL_CXXALIASWARN (mkostemps); | 921 | _GL_CXXALIASWARN (mkostemps); |
| 937 | # endif | 922 | # endif |
| 938 | #elif defined GNULIB_POSIXCHECK | 923 | #elif defined GNULIB_POSIXCHECK |
| 939 | # undef mkostemps | ||
| 940 | # if HAVE_RAW_DECL_MKOSTEMPS | 924 | # if HAVE_RAW_DECL_MKOSTEMPS |
| 941 | _GL_WARN_ON_USE (mkostemps, "mkostemps is unportable - " | 925 | _GL_WARN_ON_USE (mkostemps, "mkostemps is unportable - " |
| 942 | "use gnulib module mkostemps for portability"); | 926 | "use gnulib module mkostemps for portability"); |
| @@ -969,7 +953,6 @@ _GL_CXXALIAS_SYS (mkstemp, int, (char * /*template*/)); | |||
| 969 | # endif | 953 | # endif |
| 970 | _GL_CXXALIASWARN (mkstemp); | 954 | _GL_CXXALIASWARN (mkstemp); |
| 971 | #elif defined GNULIB_POSIXCHECK | 955 | #elif defined GNULIB_POSIXCHECK |
| 972 | # undef mkstemp | ||
| 973 | # if HAVE_RAW_DECL_MKSTEMP | 956 | # if HAVE_RAW_DECL_MKSTEMP |
| 974 | _GL_WARN_ON_USE (mkstemp, "mkstemp is unportable - " | 957 | _GL_WARN_ON_USE (mkstemp, "mkstemp is unportable - " |
| 975 | "use gnulib module mkstemp for portability"); | 958 | "use gnulib module mkstemp for portability"); |
| @@ -994,7 +977,6 @@ _GL_FUNCDECL_SYS (mkstemps, int, (char * /*template*/, int /*suffixlen*/), | |||
| 994 | _GL_CXXALIAS_SYS (mkstemps, int, (char * /*template*/, int /*suffixlen*/)); | 977 | _GL_CXXALIAS_SYS (mkstemps, int, (char * /*template*/, int /*suffixlen*/)); |
| 995 | _GL_CXXALIASWARN (mkstemps); | 978 | _GL_CXXALIASWARN (mkstemps); |
| 996 | #elif defined GNULIB_POSIXCHECK | 979 | #elif defined GNULIB_POSIXCHECK |
| 997 | # undef mkstemps | ||
| 998 | # if HAVE_RAW_DECL_MKSTEMPS | 980 | # if HAVE_RAW_DECL_MKSTEMPS |
| 999 | _GL_WARN_ON_USE (mkstemps, "mkstemps is unportable - " | 981 | _GL_WARN_ON_USE (mkstemps, "mkstemps is unportable - " |
| 1000 | "use gnulib module mkstemps for portability"); | 982 | "use gnulib module mkstemps for portability"); |
| @@ -1039,7 +1021,6 @@ _GL_CXXALIAS_SYS (posix_memalign, int, | |||
| 1039 | _GL_CXXALIASWARN (posix_memalign); | 1021 | _GL_CXXALIASWARN (posix_memalign); |
| 1040 | # endif | 1022 | # endif |
| 1041 | #elif defined GNULIB_POSIXCHECK | 1023 | #elif defined GNULIB_POSIXCHECK |
| 1042 | # undef posix_memalign | ||
| 1043 | # if HAVE_RAW_DECL_POSIX_MEMALIGN | 1024 | # if HAVE_RAW_DECL_POSIX_MEMALIGN |
| 1044 | _GL_WARN_ON_USE (posix_memalign, "posix_memalign is not portable - " | 1025 | _GL_WARN_ON_USE (posix_memalign, "posix_memalign is not portable - " |
| 1045 | "use gnulib module posix_memalign for portability"); | 1026 | "use gnulib module posix_memalign for portability"); |
| @@ -1066,7 +1047,6 @@ _GL_CXXALIAS_SYS (posix_openpt, int, (int flags)); | |||
| 1066 | _GL_CXXALIASWARN (posix_openpt); | 1047 | _GL_CXXALIASWARN (posix_openpt); |
| 1067 | # endif | 1048 | # endif |
| 1068 | #elif defined GNULIB_POSIXCHECK | 1049 | #elif defined GNULIB_POSIXCHECK |
| 1069 | # undef posix_openpt | ||
| 1070 | # if HAVE_RAW_DECL_POSIX_OPENPT | 1050 | # if HAVE_RAW_DECL_POSIX_OPENPT |
| 1071 | _GL_WARN_ON_USE (posix_openpt, "posix_openpt is not portable - " | 1051 | _GL_WARN_ON_USE (posix_openpt, "posix_openpt is not portable - " |
| 1072 | "use gnulib module posix_openpt for portability"); | 1052 | "use gnulib module posix_openpt for portability"); |
| @@ -1091,7 +1071,6 @@ _GL_CXXALIAS_SYS (ptsname, char *, (int fd)); | |||
| 1091 | # endif | 1071 | # endif |
| 1092 | _GL_CXXALIASWARN (ptsname); | 1072 | _GL_CXXALIASWARN (ptsname); |
| 1093 | #elif defined GNULIB_POSIXCHECK | 1073 | #elif defined GNULIB_POSIXCHECK |
| 1094 | # undef ptsname | ||
| 1095 | # if HAVE_RAW_DECL_PTSNAME | 1074 | # if HAVE_RAW_DECL_PTSNAME |
| 1096 | _GL_WARN_ON_USE (ptsname, "ptsname is not portable - " | 1075 | _GL_WARN_ON_USE (ptsname, "ptsname is not portable - " |
| 1097 | "use gnulib module ptsname for portability"); | 1076 | "use gnulib module ptsname for portability"); |
| @@ -1120,7 +1099,6 @@ _GL_CXXALIAS_SYS (ptsname_r, int, (int fd, char *buf, size_t len)); | |||
| 1120 | # endif | 1099 | # endif |
| 1121 | _GL_CXXALIASWARN (ptsname_r); | 1100 | _GL_CXXALIASWARN (ptsname_r); |
| 1122 | #elif defined GNULIB_POSIXCHECK | 1101 | #elif defined GNULIB_POSIXCHECK |
| 1123 | # undef ptsname_r | ||
| 1124 | # if HAVE_RAW_DECL_PTSNAME_R | 1102 | # if HAVE_RAW_DECL_PTSNAME_R |
| 1125 | _GL_WARN_ON_USE (ptsname_r, "ptsname_r is not portable - " | 1103 | _GL_WARN_ON_USE (ptsname_r, "ptsname_r is not portable - " |
| 1126 | "use gnulib module ptsname_r for portability"); | 1104 | "use gnulib module ptsname_r for portability"); |
| @@ -1214,7 +1192,6 @@ _GL_CXXALIAS_SYS (qsort_r, void, (void *base, size_t nmemb, size_t size, | |||
| 1214 | _GL_CXXALIASWARN (qsort_r); | 1192 | _GL_CXXALIASWARN (qsort_r); |
| 1215 | # endif | 1193 | # endif |
| 1216 | #elif defined GNULIB_POSIXCHECK | 1194 | #elif defined GNULIB_POSIXCHECK |
| 1217 | # undef qsort_r | ||
| 1218 | # if HAVE_RAW_DECL_QSORT_R | 1195 | # if HAVE_RAW_DECL_QSORT_R |
| 1219 | _GL_WARN_ON_USE (qsort_r, "qsort_r is not portable - " | 1196 | _GL_WARN_ON_USE (qsort_r, "qsort_r is not portable - " |
| 1220 | "use gnulib module qsort_r for portability"); | 1197 | "use gnulib module qsort_r for portability"); |
| @@ -1266,7 +1243,6 @@ _GL_CXXALIAS_SYS_CAST (random, long, (void)); | |||
| 1266 | _GL_CXXALIASWARN (random); | 1243 | _GL_CXXALIASWARN (random); |
| 1267 | # endif | 1244 | # endif |
| 1268 | #elif defined GNULIB_POSIXCHECK | 1245 | #elif defined GNULIB_POSIXCHECK |
| 1269 | # undef random | ||
| 1270 | # if HAVE_RAW_DECL_RANDOM | 1246 | # if HAVE_RAW_DECL_RANDOM |
| 1271 | _GL_WARN_ON_USE (random, "random is unportable - " | 1247 | _GL_WARN_ON_USE (random, "random is unportable - " |
| 1272 | "use gnulib module random for portability"); | 1248 | "use gnulib module random for portability"); |
| @@ -1293,7 +1269,6 @@ _GL_CXXALIAS_SYS_CAST (srandom, void, (unsigned int seed)); | |||
| 1293 | _GL_CXXALIASWARN (srandom); | 1269 | _GL_CXXALIASWARN (srandom); |
| 1294 | # endif | 1270 | # endif |
| 1295 | #elif defined GNULIB_POSIXCHECK | 1271 | #elif defined GNULIB_POSIXCHECK |
| 1296 | # undef srandom | ||
| 1297 | # if HAVE_RAW_DECL_SRANDOM | 1272 | # if HAVE_RAW_DECL_SRANDOM |
| 1298 | _GL_WARN_ON_USE (srandom, "srandom is unportable - " | 1273 | _GL_WARN_ON_USE (srandom, "srandom is unportable - " |
| 1299 | "use gnulib module random for portability"); | 1274 | "use gnulib module random for portability"); |
| @@ -1326,7 +1301,6 @@ _GL_CXXALIAS_SYS_CAST (initstate, char *, | |||
| 1326 | _GL_CXXALIASWARN (initstate); | 1301 | _GL_CXXALIASWARN (initstate); |
| 1327 | # endif | 1302 | # endif |
| 1328 | #elif defined GNULIB_POSIXCHECK | 1303 | #elif defined GNULIB_POSIXCHECK |
| 1329 | # undef initstate | ||
| 1330 | # if HAVE_RAW_DECL_INITSTATE | 1304 | # if HAVE_RAW_DECL_INITSTATE |
| 1331 | _GL_WARN_ON_USE (initstate, "initstate is unportable - " | 1305 | _GL_WARN_ON_USE (initstate, "initstate is unportable - " |
| 1332 | "use gnulib module random for portability"); | 1306 | "use gnulib module random for portability"); |
| @@ -1353,7 +1327,6 @@ _GL_CXXALIAS_SYS_CAST (setstate, char *, (char *arg_state)); | |||
| 1353 | _GL_CXXALIASWARN (setstate); | 1327 | _GL_CXXALIASWARN (setstate); |
| 1354 | # endif | 1328 | # endif |
| 1355 | #elif defined GNULIB_POSIXCHECK | 1329 | #elif defined GNULIB_POSIXCHECK |
| 1356 | # undef setstate | ||
| 1357 | # if HAVE_RAW_DECL_SETSTATE | 1330 | # if HAVE_RAW_DECL_SETSTATE |
| 1358 | _GL_WARN_ON_USE (setstate, "setstate is unportable - " | 1331 | _GL_WARN_ON_USE (setstate, "setstate is unportable - " |
| 1359 | "use gnulib module random for portability"); | 1332 | "use gnulib module random for portability"); |
| @@ -1379,7 +1352,6 @@ _GL_CXXALIAS_SYS (random_r, int, (struct random_data *buf, int32_t *result)); | |||
| 1379 | # endif | 1352 | # endif |
| 1380 | _GL_CXXALIASWARN (random_r); | 1353 | _GL_CXXALIASWARN (random_r); |
| 1381 | #elif defined GNULIB_POSIXCHECK | 1354 | #elif defined GNULIB_POSIXCHECK |
| 1382 | # undef random_r | ||
| 1383 | # if HAVE_RAW_DECL_RANDOM_R | 1355 | # if HAVE_RAW_DECL_RANDOM_R |
| 1384 | _GL_WARN_ON_USE (random_r, "random_r is unportable - " | 1356 | _GL_WARN_ON_USE (random_r, "random_r is unportable - " |
| 1385 | "use gnulib module random_r for portability"); | 1357 | "use gnulib module random_r for portability"); |
| @@ -1408,7 +1380,6 @@ _GL_CXXALIAS_SYS (srandom_r, int, | |||
| 1408 | # endif | 1380 | # endif |
| 1409 | _GL_CXXALIASWARN (srandom_r); | 1381 | _GL_CXXALIASWARN (srandom_r); |
| 1410 | #elif defined GNULIB_POSIXCHECK | 1382 | #elif defined GNULIB_POSIXCHECK |
| 1411 | # undef srandom_r | ||
| 1412 | # if HAVE_RAW_DECL_SRANDOM_R | 1383 | # if HAVE_RAW_DECL_SRANDOM_R |
| 1413 | _GL_WARN_ON_USE (srandom_r, "srandom_r is unportable - " | 1384 | _GL_WARN_ON_USE (srandom_r, "srandom_r is unportable - " |
| 1414 | "use gnulib module random_r for portability"); | 1385 | "use gnulib module random_r for portability"); |
| @@ -1443,7 +1414,6 @@ _GL_CXXALIAS_SYS_CAST (initstate_r, int, | |||
| 1443 | # endif | 1414 | # endif |
| 1444 | _GL_CXXALIASWARN (initstate_r); | 1415 | _GL_CXXALIASWARN (initstate_r); |
| 1445 | #elif defined GNULIB_POSIXCHECK | 1416 | #elif defined GNULIB_POSIXCHECK |
| 1446 | # undef initstate_r | ||
| 1447 | # if HAVE_RAW_DECL_INITSTATE_R | 1417 | # if HAVE_RAW_DECL_INITSTATE_R |
| 1448 | _GL_WARN_ON_USE (initstate_r, "initstate_r is unportable - " | 1418 | _GL_WARN_ON_USE (initstate_r, "initstate_r is unportable - " |
| 1449 | "use gnulib module random_r for portability"); | 1419 | "use gnulib module random_r for portability"); |
| @@ -1474,7 +1444,6 @@ _GL_CXXALIAS_SYS_CAST (setstate_r, int, | |||
| 1474 | # endif | 1444 | # endif |
| 1475 | _GL_CXXALIASWARN (setstate_r); | 1445 | _GL_CXXALIASWARN (setstate_r); |
| 1476 | #elif defined GNULIB_POSIXCHECK | 1446 | #elif defined GNULIB_POSIXCHECK |
| 1477 | # undef setstate_r | ||
| 1478 | # if HAVE_RAW_DECL_SETSTATE_R | 1447 | # if HAVE_RAW_DECL_SETSTATE_R |
| 1479 | _GL_WARN_ON_USE (setstate_r, "setstate_r is unportable - " | 1448 | _GL_WARN_ON_USE (setstate_r, "setstate_r is unportable - " |
| 1480 | "use gnulib module random_r for portability"); | 1449 | "use gnulib module random_r for portability"); |
| @@ -1544,7 +1513,6 @@ _GL_FUNCDECL_SYS (realloc, void *, | |||
| 1544 | # endif | 1513 | # endif |
| 1545 | # endif | 1514 | # endif |
| 1546 | # if defined GNULIB_POSIXCHECK && !_GL_USE_STDLIB_ALLOC | 1515 | # if defined GNULIB_POSIXCHECK && !_GL_USE_STDLIB_ALLOC |
| 1547 | # undef realloc | ||
| 1548 | /* Assume realloc is always declared. */ | 1516 | /* Assume realloc is always declared. */ |
| 1549 | _GL_WARN_ON_USE (realloc, "realloc is not POSIX compliant everywhere - " | 1517 | _GL_WARN_ON_USE (realloc, "realloc is not POSIX compliant everywhere - " |
| 1550 | "use gnulib module realloc-posix for portability"); | 1518 | "use gnulib module realloc-posix for portability"); |
| @@ -1576,7 +1544,6 @@ _GL_CXXALIAS_SYS (reallocarray, void *, | |||
| 1576 | _GL_CXXALIASWARN (reallocarray); | 1544 | _GL_CXXALIASWARN (reallocarray); |
| 1577 | # endif | 1545 | # endif |
| 1578 | #elif defined GNULIB_POSIXCHECK | 1546 | #elif defined GNULIB_POSIXCHECK |
| 1579 | # undef reallocarray | ||
| 1580 | # if HAVE_RAW_DECL_REALLOCARRAY | 1547 | # if HAVE_RAW_DECL_REALLOCARRAY |
| 1581 | _GL_WARN_ON_USE (reallocarray, "reallocarray is not portable - " | 1548 | _GL_WARN_ON_USE (reallocarray, "reallocarray is not portable - " |
| 1582 | "use gnulib module reallocarray for portability"); | 1549 | "use gnulib module reallocarray for portability"); |
| @@ -1604,7 +1571,6 @@ _GL_CXXALIAS_SYS (realpath, char *, | |||
| 1604 | # endif | 1571 | # endif |
| 1605 | _GL_CXXALIASWARN (realpath); | 1572 | _GL_CXXALIASWARN (realpath); |
| 1606 | #elif defined GNULIB_POSIXCHECK | 1573 | #elif defined GNULIB_POSIXCHECK |
| 1607 | # undef realpath | ||
| 1608 | # if HAVE_RAW_DECL_REALPATH | 1574 | # if HAVE_RAW_DECL_REALPATH |
| 1609 | _GL_WARN_ON_USE (realpath, "realpath is unportable - use gnulib module " | 1575 | _GL_WARN_ON_USE (realpath, "realpath is unportable - use gnulib module " |
| 1610 | "canonicalize or canonicalize-lgpl for portability"); | 1576 | "canonicalize or canonicalize-lgpl for portability"); |
| @@ -1621,7 +1587,6 @@ _GL_FUNCDECL_SYS (rpmatch, int, (const char *response), | |||
| 1621 | _GL_CXXALIAS_SYS (rpmatch, int, (const char *response)); | 1587 | _GL_CXXALIAS_SYS (rpmatch, int, (const char *response)); |
| 1622 | _GL_CXXALIASWARN (rpmatch); | 1588 | _GL_CXXALIASWARN (rpmatch); |
| 1623 | #elif defined GNULIB_POSIXCHECK | 1589 | #elif defined GNULIB_POSIXCHECK |
| 1624 | # undef rpmatch | ||
| 1625 | # if HAVE_RAW_DECL_RPMATCH | 1590 | # if HAVE_RAW_DECL_RPMATCH |
| 1626 | _GL_WARN_ON_USE (rpmatch, "rpmatch is unportable - " | 1591 | _GL_WARN_ON_USE (rpmatch, "rpmatch is unportable - " |
| 1627 | "use gnulib module rpmatch for portability"); | 1592 | "use gnulib module rpmatch for portability"); |
| @@ -1638,7 +1603,6 @@ _GL_FUNCDECL_SYS (secure_getenv, char *, | |||
| 1638 | _GL_CXXALIAS_SYS (secure_getenv, char *, (char const *name)); | 1603 | _GL_CXXALIAS_SYS (secure_getenv, char *, (char const *name)); |
| 1639 | _GL_CXXALIASWARN (secure_getenv); | 1604 | _GL_CXXALIASWARN (secure_getenv); |
| 1640 | #elif defined GNULIB_POSIXCHECK | 1605 | #elif defined GNULIB_POSIXCHECK |
| 1641 | # undef secure_getenv | ||
| 1642 | # if HAVE_RAW_DECL_SECURE_GETENV | 1606 | # if HAVE_RAW_DECL_SECURE_GETENV |
| 1643 | _GL_WARN_ON_USE (secure_getenv, "secure_getenv is unportable - " | 1607 | _GL_WARN_ON_USE (secure_getenv, "secure_getenv is unportable - " |
| 1644 | "use gnulib module secure_getenv for portability"); | 1608 | "use gnulib module secure_getenv for portability"); |
| @@ -1671,7 +1635,6 @@ _GL_CXXALIAS_SYS (setenv, int, | |||
| 1671 | _GL_CXXALIASWARN (setenv); | 1635 | _GL_CXXALIASWARN (setenv); |
| 1672 | # endif | 1636 | # endif |
| 1673 | #elif defined GNULIB_POSIXCHECK | 1637 | #elif defined GNULIB_POSIXCHECK |
| 1674 | # undef setenv | ||
| 1675 | # if HAVE_RAW_DECL_SETENV | 1638 | # if HAVE_RAW_DECL_SETENV |
| 1676 | _GL_WARN_ON_USE (setenv, "setenv is unportable - " | 1639 | _GL_WARN_ON_USE (setenv, "setenv is unportable - " |
| 1677 | "use gnulib module setenv for portability"); | 1640 | "use gnulib module setenv for portability"); |
| @@ -1716,7 +1679,6 @@ _GL_CXXALIAS_SYS (strtod, double, | |||
| 1716 | _GL_CXXALIASWARN (strtod); | 1679 | _GL_CXXALIASWARN (strtod); |
| 1717 | # endif | 1680 | # endif |
| 1718 | #elif defined GNULIB_POSIXCHECK | 1681 | #elif defined GNULIB_POSIXCHECK |
| 1719 | # undef strtod | ||
| 1720 | # if HAVE_RAW_DECL_STRTOD | 1682 | # if HAVE_RAW_DECL_STRTOD |
| 1721 | _GL_WARN_ON_USE (strtod, "strtod is unportable - " | 1683 | _GL_WARN_ON_USE (strtod, "strtod is unportable - " |
| 1722 | "use gnulib module strtod for portability"); | 1684 | "use gnulib module strtod for portability"); |
| @@ -1748,7 +1710,6 @@ _GL_CXXALIAS_SYS (strtof, float, | |||
| 1748 | _GL_CXXALIASWARN (strtof); | 1710 | _GL_CXXALIASWARN (strtof); |
| 1749 | # endif | 1711 | # endif |
| 1750 | #elif defined GNULIB_POSIXCHECK | 1712 | #elif defined GNULIB_POSIXCHECK |
| 1751 | # undef strtof | ||
| 1752 | # if HAVE_RAW_DECL_STRTOF | 1713 | # if HAVE_RAW_DECL_STRTOF |
| 1753 | _GL_WARN_ON_USE (strtof, "strtof is unportable - " | 1714 | _GL_WARN_ON_USE (strtof, "strtof is unportable - " |
| 1754 | "use gnulib module strtof for portability"); | 1715 | "use gnulib module strtof for portability"); |
| @@ -1778,7 +1739,6 @@ _GL_CXXALIAS_SYS (strtold, long double, | |||
| 1778 | # endif | 1739 | # endif |
| 1779 | _GL_CXXALIASWARN (strtold); | 1740 | _GL_CXXALIASWARN (strtold); |
| 1780 | #elif defined GNULIB_POSIXCHECK | 1741 | #elif defined GNULIB_POSIXCHECK |
| 1781 | # undef strtold | ||
| 1782 | # if HAVE_RAW_DECL_STRTOLD | 1742 | # if HAVE_RAW_DECL_STRTOLD |
| 1783 | _GL_WARN_ON_USE (strtold, "strtold is unportable - " | 1743 | _GL_WARN_ON_USE (strtold, "strtold is unportable - " |
| 1784 | "use gnulib module strtold for portability"); | 1744 | "use gnulib module strtold for portability"); |
| @@ -1821,7 +1781,6 @@ _GL_CXXALIAS_SYS (strtol, long, | |||
| 1821 | _GL_CXXALIASWARN (strtol); | 1781 | _GL_CXXALIASWARN (strtol); |
| 1822 | # endif | 1782 | # endif |
| 1823 | #elif defined GNULIB_POSIXCHECK | 1783 | #elif defined GNULIB_POSIXCHECK |
| 1824 | # undef strtol | ||
| 1825 | # if HAVE_RAW_DECL_STRTOL | 1784 | # if HAVE_RAW_DECL_STRTOL |
| 1826 | _GL_WARN_ON_USE (strtol, "strtol is unportable - " | 1785 | _GL_WARN_ON_USE (strtol, "strtol is unportable - " |
| 1827 | "use gnulib module strtol for portability"); | 1786 | "use gnulib module strtol for portability"); |
| @@ -1862,7 +1821,6 @@ _GL_CXXALIAS_SYS (strtoll, long long, | |||
| 1862 | # endif | 1821 | # endif |
| 1863 | _GL_CXXALIASWARN (strtoll); | 1822 | _GL_CXXALIASWARN (strtoll); |
| 1864 | #elif defined GNULIB_POSIXCHECK | 1823 | #elif defined GNULIB_POSIXCHECK |
| 1865 | # undef strtoll | ||
| 1866 | # if HAVE_RAW_DECL_STRTOLL | 1824 | # if HAVE_RAW_DECL_STRTOLL |
| 1867 | _GL_WARN_ON_USE (strtoll, "strtoll is unportable - " | 1825 | _GL_WARN_ON_USE (strtoll, "strtoll is unportable - " |
| 1868 | "use gnulib module strtoll for portability"); | 1826 | "use gnulib module strtoll for portability"); |
| @@ -1904,7 +1862,6 @@ _GL_CXXALIAS_SYS (strtoul, unsigned long, | |||
| 1904 | _GL_CXXALIASWARN (strtoul); | 1862 | _GL_CXXALIASWARN (strtoul); |
| 1905 | # endif | 1863 | # endif |
| 1906 | #elif defined GNULIB_POSIXCHECK | 1864 | #elif defined GNULIB_POSIXCHECK |
| 1907 | # undef strtoul | ||
| 1908 | # if HAVE_RAW_DECL_STRTOUL | 1865 | # if HAVE_RAW_DECL_STRTOUL |
| 1909 | _GL_WARN_ON_USE (strtoul, "strtoul is unportable - " | 1866 | _GL_WARN_ON_USE (strtoul, "strtoul is unportable - " |
| 1910 | "use gnulib module strtoul for portability"); | 1867 | "use gnulib module strtoul for portability"); |
| @@ -1945,7 +1902,6 @@ _GL_CXXALIAS_SYS (strtoull, unsigned long long, | |||
| 1945 | # endif | 1902 | # endif |
| 1946 | _GL_CXXALIASWARN (strtoull); | 1903 | _GL_CXXALIASWARN (strtoull); |
| 1947 | #elif defined GNULIB_POSIXCHECK | 1904 | #elif defined GNULIB_POSIXCHECK |
| 1948 | # undef strtoull | ||
| 1949 | # if HAVE_RAW_DECL_STRTOULL | 1905 | # if HAVE_RAW_DECL_STRTOULL |
| 1950 | _GL_WARN_ON_USE (strtoull, "strtoull is unportable - " | 1906 | _GL_WARN_ON_USE (strtoull, "strtoull is unportable - " |
| 1951 | "use gnulib module strtoull for portability"); | 1907 | "use gnulib module strtoull for portability"); |
| @@ -1961,7 +1917,6 @@ _GL_FUNCDECL_SYS (unlockpt, int, (int fd), ); | |||
| 1961 | _GL_CXXALIAS_SYS (unlockpt, int, (int fd)); | 1917 | _GL_CXXALIAS_SYS (unlockpt, int, (int fd)); |
| 1962 | _GL_CXXALIASWARN (unlockpt); | 1918 | _GL_CXXALIASWARN (unlockpt); |
| 1963 | #elif defined GNULIB_POSIXCHECK | 1919 | #elif defined GNULIB_POSIXCHECK |
| 1964 | # undef unlockpt | ||
| 1965 | # if HAVE_RAW_DECL_UNLOCKPT | 1920 | # if HAVE_RAW_DECL_UNLOCKPT |
| 1966 | _GL_WARN_ON_USE (unlockpt, "unlockpt is not portable - " | 1921 | _GL_WARN_ON_USE (unlockpt, "unlockpt is not portable - " |
| 1967 | "use gnulib module unlockpt for portability"); | 1922 | "use gnulib module unlockpt for portability"); |
| @@ -1987,7 +1942,6 @@ _GL_CXXALIAS_SYS (unsetenv, int, (const char *name)); | |||
| 1987 | _GL_CXXALIASWARN (unsetenv); | 1942 | _GL_CXXALIASWARN (unsetenv); |
| 1988 | # endif | 1943 | # endif |
| 1989 | #elif defined GNULIB_POSIXCHECK | 1944 | #elif defined GNULIB_POSIXCHECK |
| 1990 | # undef unsetenv | ||
| 1991 | # if HAVE_RAW_DECL_UNSETENV | 1945 | # if HAVE_RAW_DECL_UNSETENV |
| 1992 | _GL_WARN_ON_USE (unsetenv, "unsetenv is unportable - " | 1946 | _GL_WARN_ON_USE (unsetenv, "unsetenv is unportable - " |
| 1993 | "use gnulib module unsetenv for portability"); | 1947 | "use gnulib module unsetenv for portability"); |
diff --git a/lib/string.in.h b/lib/string.in.h index fdcdd21bed6..a323b1cd6da 100644 --- a/lib/string.in.h +++ b/lib/string.in.h | |||
| @@ -312,7 +312,6 @@ _GL_FUNCDECL_SYS (explicit_bzero, void, | |||
| 312 | _GL_CXXALIAS_SYS (explicit_bzero, void, (void *__dest, size_t __n)); | 312 | _GL_CXXALIAS_SYS (explicit_bzero, void, (void *__dest, size_t __n)); |
| 313 | _GL_CXXALIASWARN (explicit_bzero); | 313 | _GL_CXXALIASWARN (explicit_bzero); |
| 314 | #elif defined GNULIB_POSIXCHECK | 314 | #elif defined GNULIB_POSIXCHECK |
| 315 | # undef explicit_bzero | ||
| 316 | # if HAVE_RAW_DECL_EXPLICIT_BZERO | 315 | # if HAVE_RAW_DECL_EXPLICIT_BZERO |
| 317 | _GL_WARN_ON_USE (explicit_bzero, "explicit_bzero is unportable - " | 316 | _GL_WARN_ON_USE (explicit_bzero, "explicit_bzero is unportable - " |
| 318 | "use gnulib module explicit_bzero for portability"); | 317 | "use gnulib module explicit_bzero for portability"); |
| @@ -328,7 +327,6 @@ _GL_FUNCDECL_SYS (ffsl, int, (long int i), ); | |||
| 328 | _GL_CXXALIAS_SYS (ffsl, int, (long int i)); | 327 | _GL_CXXALIAS_SYS (ffsl, int, (long int i)); |
| 329 | _GL_CXXALIASWARN (ffsl); | 328 | _GL_CXXALIASWARN (ffsl); |
| 330 | #elif defined GNULIB_POSIXCHECK | 329 | #elif defined GNULIB_POSIXCHECK |
| 331 | # undef ffsl | ||
| 332 | # if HAVE_RAW_DECL_FFSL | 330 | # if HAVE_RAW_DECL_FFSL |
| 333 | _GL_WARN_ON_USE (ffsl, "ffsl is not portable - use the ffsl module"); | 331 | _GL_WARN_ON_USE (ffsl, "ffsl is not portable - use the ffsl module"); |
| 334 | # endif | 332 | # endif |
| @@ -351,7 +349,6 @@ _GL_CXXALIAS_SYS (ffsll, int, (long long int i)); | |||
| 351 | # endif | 349 | # endif |
| 352 | _GL_CXXALIASWARN (ffsll); | 350 | _GL_CXXALIASWARN (ffsll); |
| 353 | #elif defined GNULIB_POSIXCHECK | 351 | #elif defined GNULIB_POSIXCHECK |
| 354 | # undef ffsll | ||
| 355 | # if HAVE_RAW_DECL_FFSLL | 352 | # if HAVE_RAW_DECL_FFSLL |
| 356 | _GL_WARN_ON_USE (ffsll, "ffsll is not portable - use the ffsll module"); | 353 | _GL_WARN_ON_USE (ffsll, "ffsll is not portable - use the ffsll module"); |
| 357 | # endif | 354 | # endif |
| @@ -409,10 +406,11 @@ _GL_CXXALIASWARN1 (memchr, void const *, | |||
| 409 | _GL_CXXALIASWARN (memchr); | 406 | _GL_CXXALIASWARN (memchr); |
| 410 | # endif | 407 | # endif |
| 411 | #elif defined GNULIB_POSIXCHECK | 408 | #elif defined GNULIB_POSIXCHECK |
| 412 | # undef memchr | ||
| 413 | /* Assume memchr is always declared. */ | 409 | /* Assume memchr is always declared. */ |
| 414 | _GL_WARN_ON_USE (memchr, "memchr has platform-specific bugs - " | 410 | _GL_WARN_ON_USE_CXX (memchr, |
| 415 | "use gnulib module memchr for portability" ); | 411 | const void *, void *, (void const *, int, size_t), |
| 412 | "memchr has platform-specific bugs - " | ||
| 413 | "use gnulib module memchr for portability" ); | ||
| 416 | #endif | 414 | #endif |
| 417 | 415 | ||
| 418 | /* Are S1 and S2, of size N, bytewise equal? */ | 416 | /* Are S1 and S2, of size N, bytewise equal? */ |
| @@ -458,7 +456,6 @@ _GL_CXXALIAS_SYS (memmem, void *, | |||
| 458 | # endif | 456 | # endif |
| 459 | _GL_CXXALIASWARN (memmem); | 457 | _GL_CXXALIASWARN (memmem); |
| 460 | #elif defined GNULIB_POSIXCHECK | 458 | #elif defined GNULIB_POSIXCHECK |
| 461 | # undef memmem | ||
| 462 | # if HAVE_RAW_DECL_MEMMEM | 459 | # if HAVE_RAW_DECL_MEMMEM |
| 463 | _GL_WARN_ON_USE (memmem, "memmem is unportable and often quadratic - " | 460 | _GL_WARN_ON_USE (memmem, "memmem is unportable and often quadratic - " |
| 464 | "use gnulib module memmem-simple for portability, " | 461 | "use gnulib module memmem-simple for portability, " |
| @@ -496,7 +493,6 @@ _GL_CXXALIAS_SYS (mempcpy, void *, | |||
| 496 | _GL_CXXALIASWARN (mempcpy); | 493 | _GL_CXXALIASWARN (mempcpy); |
| 497 | # endif | 494 | # endif |
| 498 | #elif defined GNULIB_POSIXCHECK | 495 | #elif defined GNULIB_POSIXCHECK |
| 499 | # undef mempcpy | ||
| 500 | # if HAVE_RAW_DECL_MEMPCPY | 496 | # if HAVE_RAW_DECL_MEMPCPY |
| 501 | _GL_WARN_ON_USE (mempcpy, "mempcpy is unportable - " | 497 | _GL_WARN_ON_USE (mempcpy, "mempcpy is unportable - " |
| 502 | "use gnulib module mempcpy for portability"); | 498 | "use gnulib module mempcpy for portability"); |
| @@ -529,7 +525,6 @@ _GL_CXXALIASWARN1 (memrchr, void const *, | |||
| 529 | _GL_CXXALIASWARN (memrchr); | 525 | _GL_CXXALIASWARN (memrchr); |
| 530 | # endif | 526 | # endif |
| 531 | #elif defined GNULIB_POSIXCHECK | 527 | #elif defined GNULIB_POSIXCHECK |
| 532 | # undef memrchr | ||
| 533 | # if HAVE_RAW_DECL_MEMRCHR | 528 | # if HAVE_RAW_DECL_MEMRCHR |
| 534 | _GL_WARN_ON_USE (memrchr, "memrchr is unportable - " | 529 | _GL_WARN_ON_USE (memrchr, "memrchr is unportable - " |
| 535 | "use gnulib module memrchr for portability"); | 530 | "use gnulib module memrchr for portability"); |
| @@ -560,7 +555,6 @@ _GL_CXXALIAS_SYS (memset_explicit, void *, (void *__dest, int __c, size_t __n)); | |||
| 560 | _GL_CXXALIASWARN (memset_explicit); | 555 | _GL_CXXALIASWARN (memset_explicit); |
| 561 | # endif | 556 | # endif |
| 562 | #elif defined GNULIB_POSIXCHECK | 557 | #elif defined GNULIB_POSIXCHECK |
| 563 | # undef memset_explicit | ||
| 564 | # if HAVE_RAW_DECL_MEMSET_EXPLICIT | 558 | # if HAVE_RAW_DECL_MEMSET_EXPLICIT |
| 565 | _GL_WARN_ON_USE (memset_explicit, "memset_explicit is unportable - " | 559 | _GL_WARN_ON_USE (memset_explicit, "memset_explicit is unportable - " |
| 566 | "use gnulib module memset_explicit for portability"); | 560 | "use gnulib module memset_explicit for portability"); |
| @@ -595,7 +589,6 @@ _GL_CXXALIASWARN1 (rawmemchr, void const *, | |||
| 595 | _GL_CXXALIASWARN (rawmemchr); | 589 | _GL_CXXALIASWARN (rawmemchr); |
| 596 | # endif | 590 | # endif |
| 597 | #elif defined GNULIB_POSIXCHECK | 591 | #elif defined GNULIB_POSIXCHECK |
| 598 | # undef rawmemchr | ||
| 599 | # if HAVE_RAW_DECL_RAWMEMCHR | 592 | # if HAVE_RAW_DECL_RAWMEMCHR |
| 600 | _GL_WARN_ON_USE (rawmemchr, "rawmemchr is unportable - " | 593 | _GL_WARN_ON_USE (rawmemchr, "rawmemchr is unportable - " |
| 601 | "use gnulib module rawmemchr for portability"); | 594 | "use gnulib module rawmemchr for portability"); |
| @@ -627,7 +620,6 @@ _GL_CXXALIAS_SYS (stpcpy, char *, | |||
| 627 | _GL_CXXALIASWARN (stpcpy); | 620 | _GL_CXXALIASWARN (stpcpy); |
| 628 | # endif | 621 | # endif |
| 629 | #elif defined GNULIB_POSIXCHECK | 622 | #elif defined GNULIB_POSIXCHECK |
| 630 | # undef stpcpy | ||
| 631 | # if HAVE_RAW_DECL_STPCPY | 623 | # if HAVE_RAW_DECL_STPCPY |
| 632 | _GL_WARN_ON_USE (stpcpy, "stpcpy is unportable - " | 624 | _GL_WARN_ON_USE (stpcpy, "stpcpy is unportable - " |
| 633 | "use gnulib module stpcpy for portability"); | 625 | "use gnulib module stpcpy for portability"); |
| @@ -664,7 +656,6 @@ _GL_CXXALIAS_SYS (stpncpy, char *, | |||
| 664 | _GL_CXXALIASWARN (stpncpy); | 656 | _GL_CXXALIASWARN (stpncpy); |
| 665 | # endif | 657 | # endif |
| 666 | #elif defined GNULIB_POSIXCHECK | 658 | #elif defined GNULIB_POSIXCHECK |
| 667 | # undef stpncpy | ||
| 668 | # if HAVE_RAW_DECL_STPNCPY | 659 | # if HAVE_RAW_DECL_STPNCPY |
| 669 | _GL_WARN_ON_USE (stpncpy, "stpncpy is unportable - " | 660 | _GL_WARN_ON_USE (stpncpy, "stpncpy is unportable - " |
| 670 | "use gnulib module stpncpy for portability"); | 661 | "use gnulib module stpncpy for portability"); |
| @@ -674,7 +665,6 @@ _GL_WARN_ON_USE (stpncpy, "stpncpy is unportable - " | |||
| 674 | #if defined GNULIB_POSIXCHECK | 665 | #if defined GNULIB_POSIXCHECK |
| 675 | /* strchr() does not work with multibyte strings if the locale encoding is | 666 | /* strchr() does not work with multibyte strings if the locale encoding is |
| 676 | GB18030 and the character to be searched is a digit. */ | 667 | GB18030 and the character to be searched is a digit. */ |
| 677 | # undef strchr | ||
| 678 | /* Assume strchr is always declared. */ | 668 | /* Assume strchr is always declared. */ |
| 679 | _GL_WARN_ON_USE_CXX (strchr, | 669 | _GL_WARN_ON_USE_CXX (strchr, |
| 680 | const char *, char *, (const char *, int), | 670 | const char *, char *, (const char *, int), |
| @@ -720,7 +710,6 @@ _GL_CXXALIASWARN1 (strchrnul, char const *, | |||
| 720 | _GL_CXXALIASWARN (strchrnul); | 710 | _GL_CXXALIASWARN (strchrnul); |
| 721 | # endif | 711 | # endif |
| 722 | #elif defined GNULIB_POSIXCHECK | 712 | #elif defined GNULIB_POSIXCHECK |
| 723 | # undef strchrnul | ||
| 724 | # if HAVE_RAW_DECL_STRCHRNUL | 713 | # if HAVE_RAW_DECL_STRCHRNUL |
| 725 | _GL_WARN_ON_USE (strchrnul, "strchrnul is unportable - " | 714 | _GL_WARN_ON_USE (strchrnul, "strchrnul is unportable - " |
| 726 | "use gnulib module strchrnul for portability"); | 715 | "use gnulib module strchrnul for portability"); |
| @@ -785,7 +774,6 @@ _GL_FUNCDECL_SYS (strdup, char *, | |||
| 785 | # endif | 774 | # endif |
| 786 | # endif | 775 | # endif |
| 787 | # if defined GNULIB_POSIXCHECK | 776 | # if defined GNULIB_POSIXCHECK |
| 788 | # undef strdup | ||
| 789 | # if HAVE_RAW_DECL_STRDUP | 777 | # if HAVE_RAW_DECL_STRDUP |
| 790 | _GL_WARN_ON_USE (strdup, "strdup is unportable - " | 778 | _GL_WARN_ON_USE (strdup, "strdup is unportable - " |
| 791 | "use gnulib module strdup for portability"); | 779 | "use gnulib module strdup for portability"); |
| @@ -846,7 +834,6 @@ _GL_CXXALIAS_SYS (strncat, char *, | |||
| 846 | _GL_CXXALIASWARN (strncat); | 834 | _GL_CXXALIASWARN (strncat); |
| 847 | # endif | 835 | # endif |
| 848 | #elif defined GNULIB_POSIXCHECK | 836 | #elif defined GNULIB_POSIXCHECK |
| 849 | # undef strncat | ||
| 850 | # if HAVE_RAW_DECL_STRNCAT | 837 | # if HAVE_RAW_DECL_STRNCAT |
| 851 | _GL_WARN_ON_USE (strncat, "strncat is unportable - " | 838 | _GL_WARN_ON_USE (strncat, "strncat is unportable - " |
| 852 | "use gnulib module strncat for portability"); | 839 | "use gnulib module strncat for portability"); |
| @@ -901,7 +888,6 @@ _GL_FUNCDECL_SYS (strndup, char *, | |||
| 901 | # endif | 888 | # endif |
| 902 | # endif | 889 | # endif |
| 903 | # if defined GNULIB_POSIXCHECK | 890 | # if defined GNULIB_POSIXCHECK |
| 904 | # undef strndup | ||
| 905 | # if HAVE_RAW_DECL_STRNDUP | 891 | # if HAVE_RAW_DECL_STRNDUP |
| 906 | _GL_WARN_ON_USE (strndup, "strndup is unportable - " | 892 | _GL_WARN_ON_USE (strndup, "strndup is unportable - " |
| 907 | "use gnulib module strndup for portability"); | 893 | "use gnulib module strndup for portability"); |
| @@ -932,7 +918,6 @@ _GL_CXXALIAS_SYS (strnlen, size_t, (char const *__s, size_t __maxlen)); | |||
| 932 | # endif | 918 | # endif |
| 933 | _GL_CXXALIASWARN (strnlen); | 919 | _GL_CXXALIASWARN (strnlen); |
| 934 | #elif defined GNULIB_POSIXCHECK | 920 | #elif defined GNULIB_POSIXCHECK |
| 935 | # undef strnlen | ||
| 936 | # if HAVE_RAW_DECL_STRNLEN | 921 | # if HAVE_RAW_DECL_STRNLEN |
| 937 | _GL_WARN_ON_USE (strnlen, "strnlen is unportable - " | 922 | _GL_WARN_ON_USE (strnlen, "strnlen is unportable - " |
| 938 | "use gnulib module strnlen for portability"); | 923 | "use gnulib module strnlen for portability"); |
| @@ -944,7 +929,6 @@ _GL_WARN_ON_USE (strnlen, "strnlen is unportable - " | |||
| 944 | Even in this simple case, it does not work with multibyte strings if the | 929 | Even in this simple case, it does not work with multibyte strings if the |
| 945 | locale encoding is GB18030 and one of the characters to be searched is a | 930 | locale encoding is GB18030 and one of the characters to be searched is a |
| 946 | digit. */ | 931 | digit. */ |
| 947 | # undef strcspn | ||
| 948 | /* Assume strcspn is always declared. */ | 932 | /* Assume strcspn is always declared. */ |
| 949 | _GL_WARN_ON_USE (strcspn, "strcspn cannot work correctly on character strings " | 933 | _GL_WARN_ON_USE (strcspn, "strcspn cannot work correctly on character strings " |
| 950 | "in multibyte locales - " | 934 | "in multibyte locales - " |
| @@ -981,7 +965,6 @@ _GL_CXXALIASWARN (strpbrk); | |||
| 981 | Even in this simple case, it does not work with multibyte strings if the | 965 | Even in this simple case, it does not work with multibyte strings if the |
| 982 | locale encoding is GB18030 and one of the characters to be searched is a | 966 | locale encoding is GB18030 and one of the characters to be searched is a |
| 983 | digit. */ | 967 | digit. */ |
| 984 | # undef strpbrk | ||
| 985 | _GL_WARN_ON_USE_CXX (strpbrk, | 968 | _GL_WARN_ON_USE_CXX (strpbrk, |
| 986 | const char *, char *, (const char *, const char *), | 969 | const char *, char *, (const char *, const char *), |
| 987 | "strpbrk cannot work correctly on character strings " | 970 | "strpbrk cannot work correctly on character strings " |
| @@ -1001,7 +984,6 @@ _GL_WARN_ON_USE_CXX (strpbrk, | |||
| 1001 | #if defined GNULIB_POSIXCHECK | 984 | #if defined GNULIB_POSIXCHECK |
| 1002 | /* strspn() assumes the second argument is a list of single-byte characters. | 985 | /* strspn() assumes the second argument is a list of single-byte characters. |
| 1003 | Even in this simple case, it cannot work with multibyte strings. */ | 986 | Even in this simple case, it cannot work with multibyte strings. */ |
| 1004 | # undef strspn | ||
| 1005 | /* Assume strspn is always declared. */ | 987 | /* Assume strspn is always declared. */ |
| 1006 | _GL_WARN_ON_USE (strspn, "strspn cannot work correctly on character strings " | 988 | _GL_WARN_ON_USE (strspn, "strspn cannot work correctly on character strings " |
| 1007 | "in multibyte locales - " | 989 | "in multibyte locales - " |
| @@ -1011,7 +993,6 @@ _GL_WARN_ON_USE (strspn, "strspn cannot work correctly on character strings " | |||
| 1011 | #if defined GNULIB_POSIXCHECK | 993 | #if defined GNULIB_POSIXCHECK |
| 1012 | /* strrchr() does not work with multibyte strings if the locale encoding is | 994 | /* strrchr() does not work with multibyte strings if the locale encoding is |
| 1013 | GB18030 and the character to be searched is a digit. */ | 995 | GB18030 and the character to be searched is a digit. */ |
| 1014 | # undef strrchr | ||
| 1015 | /* Assume strrchr is always declared. */ | 996 | /* Assume strrchr is always declared. */ |
| 1016 | _GL_WARN_ON_USE_CXX (strrchr, | 997 | _GL_WARN_ON_USE_CXX (strrchr, |
| 1017 | const char *, char *, (const char *, int), | 998 | const char *, char *, (const char *, int), |
| @@ -1046,13 +1027,11 @@ _GL_CXXALIAS_SYS (strsep, char *, | |||
| 1046 | (char **restrict __stringp, char const *restrict __delim)); | 1027 | (char **restrict __stringp, char const *restrict __delim)); |
| 1047 | _GL_CXXALIASWARN (strsep); | 1028 | _GL_CXXALIASWARN (strsep); |
| 1048 | # if defined GNULIB_POSIXCHECK | 1029 | # if defined GNULIB_POSIXCHECK |
| 1049 | # undef strsep | ||
| 1050 | _GL_WARN_ON_USE (strsep, "strsep cannot work correctly on character strings " | 1030 | _GL_WARN_ON_USE (strsep, "strsep cannot work correctly on character strings " |
| 1051 | "in multibyte locales - " | 1031 | "in multibyte locales - " |
| 1052 | "use mbssep if you care about internationalization"); | 1032 | "use mbssep if you care about internationalization"); |
| 1053 | # endif | 1033 | # endif |
| 1054 | #elif defined GNULIB_POSIXCHECK | 1034 | #elif defined GNULIB_POSIXCHECK |
| 1055 | # undef strsep | ||
| 1056 | # if HAVE_RAW_DECL_STRSEP | 1035 | # if HAVE_RAW_DECL_STRSEP |
| 1057 | _GL_WARN_ON_USE (strsep, "strsep is unportable - " | 1036 | _GL_WARN_ON_USE (strsep, "strsep is unportable - " |
| 1058 | "use gnulib module strsep for portability"); | 1037 | "use gnulib module strsep for portability"); |
| @@ -1095,11 +1074,13 @@ _GL_CXXALIASWARN (strstr); | |||
| 1095 | as a sequence of bytes, not of characters. */ | 1074 | as a sequence of bytes, not of characters. */ |
| 1096 | # undef strstr | 1075 | # undef strstr |
| 1097 | /* Assume strstr is always declared. */ | 1076 | /* Assume strstr is always declared. */ |
| 1098 | _GL_WARN_ON_USE (strstr, "strstr is quadratic on many systems, and cannot " | 1077 | _GL_WARN_ON_USE_CXX (strstr, |
| 1099 | "work correctly on character strings in most " | 1078 | const char *, char *, (const char *, const char *), |
| 1100 | "multibyte locales - " | 1079 | "strstr is quadratic on many systems, and cannot " |
| 1101 | "use mbsstr if you care about internationalization, " | 1080 | "work correctly on character strings in most " |
| 1102 | "or use strstr if you care about speed"); | 1081 | "multibyte locales - " |
| 1082 | "use mbsstr if you care about internationalization, " | ||
| 1083 | "or use strstr if you care about speed"); | ||
| 1103 | #endif | 1084 | #endif |
| 1104 | 1085 | ||
| 1105 | /* Find the first occurrence of NEEDLE in HAYSTACK, using case-insensitive | 1086 | /* Find the first occurrence of NEEDLE in HAYSTACK, using case-insensitive |
| @@ -1145,7 +1126,6 @@ _GL_CXXALIASWARN (strcasestr); | |||
| 1145 | /* strcasestr() does not work with multibyte strings: | 1126 | /* strcasestr() does not work with multibyte strings: |
| 1146 | It is a glibc extension, and glibc implements it only for unibyte | 1127 | It is a glibc extension, and glibc implements it only for unibyte |
| 1147 | locales. */ | 1128 | locales. */ |
| 1148 | # undef strcasestr | ||
| 1149 | # if HAVE_RAW_DECL_STRCASESTR | 1129 | # if HAVE_RAW_DECL_STRCASESTR |
| 1150 | _GL_WARN_ON_USE (strcasestr, "strcasestr does work correctly on character " | 1130 | _GL_WARN_ON_USE (strcasestr, "strcasestr does work correctly on character " |
| 1151 | "strings in multibyte locales - " | 1131 | "strings in multibyte locales - " |
| @@ -1191,7 +1171,7 @@ _GL_CXXALIAS_RPL (strtok_r, char *, | |||
| 1191 | (char *restrict s, char const *restrict delim, | 1171 | (char *restrict s, char const *restrict delim, |
| 1192 | char **restrict save_ptr)); | 1172 | char **restrict save_ptr)); |
| 1193 | # else | 1173 | # else |
| 1194 | # if @UNDEFINE_STRTOK_R@ || defined GNULIB_POSIXCHECK | 1174 | # if @UNDEFINE_STRTOK_R@ |
| 1195 | # undef strtok_r | 1175 | # undef strtok_r |
| 1196 | # endif | 1176 | # endif |
| 1197 | # if ! @HAVE_DECL_STRTOK_R@ | 1177 | # if ! @HAVE_DECL_STRTOK_R@ |
| @@ -1211,7 +1191,6 @@ _GL_WARN_ON_USE (strtok_r, "strtok_r cannot work correctly on character " | |||
| 1211 | "use mbstok_r if you care about internationalization"); | 1191 | "use mbstok_r if you care about internationalization"); |
| 1212 | # endif | 1192 | # endif |
| 1213 | #elif defined GNULIB_POSIXCHECK | 1193 | #elif defined GNULIB_POSIXCHECK |
| 1214 | # undef strtok_r | ||
| 1215 | # if HAVE_RAW_DECL_STRTOK_R | 1194 | # if HAVE_RAW_DECL_STRTOK_R |
| 1216 | _GL_WARN_ON_USE (strtok_r, "strtok_r is unportable - " | 1195 | _GL_WARN_ON_USE (strtok_r, "strtok_r is unportable - " |
| 1217 | "use gnulib module strtok_r for portability"); | 1196 | "use gnulib module strtok_r for portability"); |
| @@ -1579,7 +1558,6 @@ _GL_CXXALIAS_SYS (strerror, char *, (int)); | |||
| 1579 | _GL_CXXALIASWARN (strerror); | 1558 | _GL_CXXALIASWARN (strerror); |
| 1580 | # endif | 1559 | # endif |
| 1581 | #elif defined GNULIB_POSIXCHECK | 1560 | #elif defined GNULIB_POSIXCHECK |
| 1582 | # undef strerror | ||
| 1583 | /* Assume strerror is always declared. */ | 1561 | /* Assume strerror is always declared. */ |
| 1584 | _GL_WARN_ON_USE (strerror, "strerror is unportable - " | 1562 | _GL_WARN_ON_USE (strerror, "strerror is unportable - " |
| 1585 | "use gnulib module strerror to guarantee non-NULL result"); | 1563 | "use gnulib module strerror to guarantee non-NULL result"); |
| @@ -1607,7 +1585,6 @@ _GL_CXXALIAS_SYS (strerror_r, int, (int errnum, char *buf, size_t buflen)); | |||
| 1607 | _GL_CXXALIASWARN (strerror_r); | 1585 | _GL_CXXALIASWARN (strerror_r); |
| 1608 | # endif | 1586 | # endif |
| 1609 | #elif defined GNULIB_POSIXCHECK | 1587 | #elif defined GNULIB_POSIXCHECK |
| 1610 | # undef strerror_r | ||
| 1611 | # if HAVE_RAW_DECL_STRERROR_R | 1588 | # if HAVE_RAW_DECL_STRERROR_R |
| 1612 | _GL_WARN_ON_USE (strerror_r, "strerror_r is unportable - " | 1589 | _GL_WARN_ON_USE (strerror_r, "strerror_r is unportable - " |
| 1613 | "use gnulib module strerror_r-posix for portability"); | 1590 | "use gnulib module strerror_r-posix for portability"); |
| @@ -1636,7 +1613,6 @@ _GL_CXXALIAS_SYS (strerror_l, char *, (int errnum, locale_t locale)); | |||
| 1636 | _GL_CXXALIASWARN (strerror_l); | 1613 | _GL_CXXALIASWARN (strerror_l); |
| 1637 | # endif | 1614 | # endif |
| 1638 | #elif defined GNULIB_POSIXCHECK | 1615 | #elif defined GNULIB_POSIXCHECK |
| 1639 | # undef strerror_l | ||
| 1640 | # if HAVE_RAW_DECL_STRERROR_L | 1616 | # if HAVE_RAW_DECL_STRERROR_L |
| 1641 | _GL_WARN_ON_USE (strerror_l, "strerror_l is unportable - " | 1617 | _GL_WARN_ON_USE (strerror_l, "strerror_l is unportable - " |
| 1642 | "use gnulib module strerror_l for portability"); | 1618 | "use gnulib module strerror_l for portability"); |
| @@ -1671,7 +1647,6 @@ _GL_CXXALIAS_SYS (strerrorname_np, const char *, (int errnum)); | |||
| 1671 | _GL_CXXALIASWARN (strerrorname_np); | 1647 | _GL_CXXALIASWARN (strerrorname_np); |
| 1672 | # endif | 1648 | # endif |
| 1673 | #elif defined GNULIB_POSIXCHECK | 1649 | #elif defined GNULIB_POSIXCHECK |
| 1674 | # undef strerrorname_np | ||
| 1675 | # if HAVE_RAW_DECL_STRERRORNAME_NP | 1650 | # if HAVE_RAW_DECL_STRERRORNAME_NP |
| 1676 | _GL_WARN_ON_USE (strerrorname_np, "strerrorname_np is unportable - " | 1651 | _GL_WARN_ON_USE (strerrorname_np, "strerrorname_np is unportable - " |
| 1677 | "use gnulib module strerrorname_np for portability"); | 1652 | "use gnulib module strerrorname_np for portability"); |
| @@ -1686,7 +1661,6 @@ _GL_FUNCDECL_SYS (sigabbrev_np, const char *, (int sig), ); | |||
| 1686 | _GL_CXXALIAS_SYS (sigabbrev_np, const char *, (int sig)); | 1661 | _GL_CXXALIAS_SYS (sigabbrev_np, const char *, (int sig)); |
| 1687 | _GL_CXXALIASWARN (sigabbrev_np); | 1662 | _GL_CXXALIASWARN (sigabbrev_np); |
| 1688 | #elif defined GNULIB_POSIXCHECK | 1663 | #elif defined GNULIB_POSIXCHECK |
| 1689 | # undef sigabbrev_np | ||
| 1690 | # if HAVE_RAW_DECL_SIGABBREV_NP | 1664 | # if HAVE_RAW_DECL_SIGABBREV_NP |
| 1691 | _GL_WARN_ON_USE (sigabbrev_np, "sigabbrev_np is unportable - " | 1665 | _GL_WARN_ON_USE (sigabbrev_np, "sigabbrev_np is unportable - " |
| 1692 | "use gnulib module sigabbrev_np for portability"); | 1666 | "use gnulib module sigabbrev_np for portability"); |
| @@ -1701,7 +1675,6 @@ _GL_FUNCDECL_SYS (sigdescr_np, const char *, (int sig), ); | |||
| 1701 | _GL_CXXALIAS_SYS (sigdescr_np, const char *, (int sig)); | 1675 | _GL_CXXALIAS_SYS (sigdescr_np, const char *, (int sig)); |
| 1702 | _GL_CXXALIASWARN (sigdescr_np); | 1676 | _GL_CXXALIASWARN (sigdescr_np); |
| 1703 | #elif defined GNULIB_POSIXCHECK | 1677 | #elif defined GNULIB_POSIXCHECK |
| 1704 | # undef sigdescr_np | ||
| 1705 | # if HAVE_RAW_DECL_SIGDESCR_NP | 1678 | # if HAVE_RAW_DECL_SIGDESCR_NP |
| 1706 | _GL_WARN_ON_USE (sigdescr_np, "sigdescr_np is unportable - " | 1679 | _GL_WARN_ON_USE (sigdescr_np, "sigdescr_np is unportable - " |
| 1707 | "use gnulib module sigdescr_np for portability"); | 1680 | "use gnulib module sigdescr_np for portability"); |
| @@ -1725,7 +1698,6 @@ _GL_CXXALIAS_SYS_CAST (strsignal, char *, (int __sig)); | |||
| 1725 | # endif | 1698 | # endif |
| 1726 | _GL_CXXALIASWARN (strsignal); | 1699 | _GL_CXXALIASWARN (strsignal); |
| 1727 | #elif defined GNULIB_POSIXCHECK | 1700 | #elif defined GNULIB_POSIXCHECK |
| 1728 | # undef strsignal | ||
| 1729 | # if HAVE_RAW_DECL_STRSIGNAL | 1701 | # if HAVE_RAW_DECL_STRSIGNAL |
| 1730 | _GL_WARN_ON_USE (strsignal, "strsignal is unportable - " | 1702 | _GL_WARN_ON_USE (strsignal, "strsignal is unportable - " |
| 1731 | "use gnulib module strsignal for portability"); | 1703 | "use gnulib module strsignal for portability"); |
| @@ -1751,7 +1723,6 @@ _GL_CXXALIAS_SYS (strverscmp, int, (const char *, const char *)); | |||
| 1751 | # endif | 1723 | # endif |
| 1752 | _GL_CXXALIASWARN (strverscmp); | 1724 | _GL_CXXALIASWARN (strverscmp); |
| 1753 | #elif defined GNULIB_POSIXCHECK | 1725 | #elif defined GNULIB_POSIXCHECK |
| 1754 | # undef strverscmp | ||
| 1755 | # if HAVE_RAW_DECL_STRVERSCMP | 1726 | # if HAVE_RAW_DECL_STRVERSCMP |
| 1756 | _GL_WARN_ON_USE (strverscmp, "strverscmp is unportable - " | 1727 | _GL_WARN_ON_USE (strverscmp, "strverscmp is unportable - " |
| 1757 | "use gnulib module strverscmp for portability"); | 1728 | "use gnulib module strverscmp for portability"); |
diff --git a/lib/strnlen.c b/lib/strnlen.c index 155a594fccd..f6990415762 100644 --- a/lib/strnlen.c +++ b/lib/strnlen.c | |||
| @@ -25,10 +25,10 @@ | |||
| 25 | size_t | 25 | size_t |
| 26 | strnlen (const char *s, size_t maxlen) | 26 | strnlen (const char *s, size_t maxlen) |
| 27 | { | 27 | { |
| 28 | size_t i = 0; | ||
| 29 | /* Do not use memchr, because on some platforms memchr has | 28 | /* Do not use memchr, because on some platforms memchr has |
| 30 | undefined behavior if MAXLEN exceeds the number of bytes in S. */ | 29 | undefined behavior if MAXLEN exceeds the number of bytes in S. */ |
| 31 | for (; i < maxlen && s[i]; i++) | 30 | size_t i; |
| 31 | for (i = 0; i < maxlen && s[i]; i++) | ||
| 32 | continue; | 32 | continue; |
| 33 | return i; | 33 | return i; |
| 34 | } | 34 | } |
diff --git a/lib/sys_random.in.h b/lib/sys_random.in.h index 11663b2ebdc..1d9dff92995 100644 --- a/lib/sys_random.in.h +++ b/lib/sys_random.in.h | |||
| @@ -94,7 +94,6 @@ _GL_CXXALIAS_SYS (getrandom, ssize_t, | |||
| 94 | _GL_CXXALIASWARN (getrandom); | 94 | _GL_CXXALIASWARN (getrandom); |
| 95 | # endif | 95 | # endif |
| 96 | #elif defined GNULIB_POSIXCHECK | 96 | #elif defined GNULIB_POSIXCHECK |
| 97 | # undef getrandom | ||
| 98 | # if HAVE_RAW_DECL_GETRANDOM | 97 | # if HAVE_RAW_DECL_GETRANDOM |
| 99 | _GL_WARN_ON_USE (getrandom, "getrandom is unportable - " | 98 | _GL_WARN_ON_USE (getrandom, "getrandom is unportable - " |
| 100 | "use gnulib module getrandom for portability"); | 99 | "use gnulib module getrandom for portability"); |
diff --git a/lib/sys_select.in.h b/lib/sys_select.in.h index 9106702deb1..891b4aa0fe0 100644 --- a/lib/sys_select.in.h +++ b/lib/sys_select.in.h | |||
| @@ -283,7 +283,6 @@ _GL_CXXALIAS_SYS_CAST (pselect, int, | |||
| 283 | _GL_CXXALIASWARN (pselect); | 283 | _GL_CXXALIASWARN (pselect); |
| 284 | # endif | 284 | # endif |
| 285 | #elif defined GNULIB_POSIXCHECK | 285 | #elif defined GNULIB_POSIXCHECK |
| 286 | # undef pselect | ||
| 287 | # if HAVE_RAW_DECL_PSELECT | 286 | # if HAVE_RAW_DECL_PSELECT |
| 288 | _GL_WARN_ON_USE (pselect, "pselect is not portable - " | 287 | _GL_WARN_ON_USE (pselect, "pselect is not portable - " |
| 289 | "use gnulib module pselect for portability"); | 288 | "use gnulib module pselect for portability"); |
| @@ -316,7 +315,6 @@ _GL_CXXALIASWARN (select); | |||
| 316 | # define select select_used_without_requesting_gnulib_module_select | 315 | # define select select_used_without_requesting_gnulib_module_select |
| 317 | # endif | 316 | # endif |
| 318 | #elif defined GNULIB_POSIXCHECK | 317 | #elif defined GNULIB_POSIXCHECK |
| 319 | # undef select | ||
| 320 | # if HAVE_RAW_DECL_SELECT | 318 | # if HAVE_RAW_DECL_SELECT |
| 321 | _GL_WARN_ON_USE (select, "select is not always POSIX compliant - " | 319 | _GL_WARN_ON_USE (select, "select is not always POSIX compliant - " |
| 322 | "use gnulib module select for portability"); | 320 | "use gnulib module select for portability"); |
diff --git a/lib/sys_stat.in.h b/lib/sys_stat.in.h index 8f676cb390e..859f04e6b53 100644 --- a/lib/sys_stat.in.h +++ b/lib/sys_stat.in.h | |||
| @@ -451,7 +451,6 @@ _GL_CXXALIAS_SYS (chmod, int, (const char *filename, mode_t mode)); | |||
| 451 | # endif | 451 | # endif |
| 452 | _GL_CXXALIASWARN (chmod); | 452 | _GL_CXXALIASWARN (chmod); |
| 453 | #elif defined GNULIB_POSIXCHECK | 453 | #elif defined GNULIB_POSIXCHECK |
| 454 | # undef chmod | ||
| 455 | # if HAVE_RAW_DECL_CHMOD | 454 | # if HAVE_RAW_DECL_CHMOD |
| 456 | _GL_WARN_ON_USE (chmod, "chmod has portability problems - " | 455 | _GL_WARN_ON_USE (chmod, "chmod has portability problems - " |
| 457 | "use gnulib module chmod for portability"); | 456 | "use gnulib module chmod for portability"); |
| @@ -496,7 +495,6 @@ _GL_CXXALIAS_SYS (fchmodat, int, | |||
| 496 | # endif | 495 | # endif |
| 497 | _GL_CXXALIASWARN (fchmodat); | 496 | _GL_CXXALIASWARN (fchmodat); |
| 498 | #elif defined GNULIB_POSIXCHECK | 497 | #elif defined GNULIB_POSIXCHECK |
| 499 | # undef fchmodat | ||
| 500 | # if HAVE_RAW_DECL_FCHMODAT | 498 | # if HAVE_RAW_DECL_FCHMODAT |
| 501 | _GL_WARN_ON_USE (fchmodat, "fchmodat is not portable - " | 499 | _GL_WARN_ON_USE (fchmodat, "fchmodat is not portable - " |
| 502 | "use gnulib module openat for portability"); | 500 | "use gnulib module openat for portability"); |
| @@ -528,7 +526,6 @@ _GL_CXXALIASWARN (fstat); | |||
| 528 | /* Above, we define stat to _stati64. */ | 526 | /* Above, we define stat to _stati64. */ |
| 529 | # define fstat _fstati64 | 527 | # define fstat _fstati64 |
| 530 | #elif defined GNULIB_POSIXCHECK | 528 | #elif defined GNULIB_POSIXCHECK |
| 531 | # undef fstat | ||
| 532 | # if HAVE_RAW_DECL_FSTAT | 529 | # if HAVE_RAW_DECL_FSTAT |
| 533 | _GL_WARN_ON_USE (fstat, "fstat has portability problems - " | 530 | _GL_WARN_ON_USE (fstat, "fstat has portability problems - " |
| 534 | "use gnulib module fstat for portability"); | 531 | "use gnulib module fstat for portability"); |
| @@ -567,7 +564,6 @@ _GL_CXXALIASWARN (fstatat); | |||
| 567 | # define fstatat fstatat_used_without_requesting_gnulib_module_fstatat | 564 | # define fstatat fstatat_used_without_requesting_gnulib_module_fstatat |
| 568 | # endif | 565 | # endif |
| 569 | #elif defined GNULIB_POSIXCHECK | 566 | #elif defined GNULIB_POSIXCHECK |
| 570 | # undef fstatat | ||
| 571 | # if HAVE_RAW_DECL_FSTATAT | 567 | # if HAVE_RAW_DECL_FSTATAT |
| 572 | _GL_WARN_ON_USE (fstatat, "fstatat is not portable - " | 568 | _GL_WARN_ON_USE (fstatat, "fstatat is not portable - " |
| 573 | "use gnulib module openat for portability"); | 569 | "use gnulib module openat for portability"); |
| @@ -597,7 +593,6 @@ _GL_CXXALIAS_SYS (futimens, int, (int fd, struct timespec const times[2])); | |||
| 597 | _GL_CXXALIASWARN (futimens); | 593 | _GL_CXXALIASWARN (futimens); |
| 598 | # endif | 594 | # endif |
| 599 | #elif defined GNULIB_POSIXCHECK | 595 | #elif defined GNULIB_POSIXCHECK |
| 600 | # undef futimens | ||
| 601 | # if HAVE_RAW_DECL_FUTIMENS | 596 | # if HAVE_RAW_DECL_FUTIMENS |
| 602 | _GL_WARN_ON_USE (futimens, "futimens is not portable - " | 597 | _GL_WARN_ON_USE (futimens, "futimens is not portable - " |
| 603 | "use gnulib module futimens for portability"); | 598 | "use gnulib module futimens for portability"); |
| @@ -618,7 +613,6 @@ _GL_CXXALIAS_SYS (getumask, mode_t, (void)); | |||
| 618 | _GL_CXXALIASWARN (getumask); | 613 | _GL_CXXALIASWARN (getumask); |
| 619 | # endif | 614 | # endif |
| 620 | #elif defined GNULIB_POSIXCHECK | 615 | #elif defined GNULIB_POSIXCHECK |
| 621 | # undef getumask | ||
| 622 | # if HAVE_RAW_DECL_GETUMASK | 616 | # if HAVE_RAW_DECL_GETUMASK |
| 623 | _GL_WARN_ON_USE (getumask, "getumask is not portable - " | 617 | _GL_WARN_ON_USE (getumask, "getumask is not portable - " |
| 624 | "use gnulib module getumask for portability"); | 618 | "use gnulib module getumask for portability"); |
| @@ -636,7 +630,6 @@ _GL_FUNCDECL_SYS (lchmod, int, (const char *filename, mode_t mode), | |||
| 636 | _GL_CXXALIAS_SYS (lchmod, int, (const char *filename, mode_t mode)); | 630 | _GL_CXXALIAS_SYS (lchmod, int, (const char *filename, mode_t mode)); |
| 637 | _GL_CXXALIASWARN (lchmod); | 631 | _GL_CXXALIASWARN (lchmod); |
| 638 | #elif defined GNULIB_POSIXCHECK | 632 | #elif defined GNULIB_POSIXCHECK |
| 639 | # undef lchmod | ||
| 640 | # if HAVE_RAW_DECL_LCHMOD | 633 | # if HAVE_RAW_DECL_LCHMOD |
| 641 | _GL_WARN_ON_USE (lchmod, "lchmod is unportable - " | 634 | _GL_WARN_ON_USE (lchmod, "lchmod is unportable - " |
| 642 | "use gnulib module lchmod for portability"); | 635 | "use gnulib module lchmod for portability"); |
| @@ -698,7 +691,6 @@ _GL_CXXALIAS_SYS (mkdir, int, (char const *name, mode_t mode)); | |||
| 698 | # endif | 691 | # endif |
| 699 | _GL_CXXALIASWARN (mkdir); | 692 | _GL_CXXALIASWARN (mkdir); |
| 700 | #elif defined GNULIB_POSIXCHECK | 693 | #elif defined GNULIB_POSIXCHECK |
| 701 | # undef mkdir | ||
| 702 | # if HAVE_RAW_DECL_MKDIR | 694 | # if HAVE_RAW_DECL_MKDIR |
| 703 | _GL_WARN_ON_USE (mkdir, "mkdir does not always support two parameters - " | 695 | _GL_WARN_ON_USE (mkdir, "mkdir does not always support two parameters - " |
| 704 | "use gnulib module mkdir for portability"); | 696 | "use gnulib module mkdir for portability"); |
| @@ -714,7 +706,6 @@ _GL_FUNCDECL_SYS (mkdirat, int, (int fd, char const *file, mode_t mode), | |||
| 714 | _GL_CXXALIAS_SYS (mkdirat, int, (int fd, char const *file, mode_t mode)); | 706 | _GL_CXXALIAS_SYS (mkdirat, int, (int fd, char const *file, mode_t mode)); |
| 715 | _GL_CXXALIASWARN (mkdirat); | 707 | _GL_CXXALIASWARN (mkdirat); |
| 716 | #elif defined GNULIB_POSIXCHECK | 708 | #elif defined GNULIB_POSIXCHECK |
| 717 | # undef mkdirat | ||
| 718 | # if HAVE_RAW_DECL_MKDIRAT | 709 | # if HAVE_RAW_DECL_MKDIRAT |
| 719 | _GL_WARN_ON_USE (mkdirat, "mkdirat is not portable - " | 710 | _GL_WARN_ON_USE (mkdirat, "mkdirat is not portable - " |
| 720 | "use gnulib module openat for portability"); | 711 | "use gnulib module openat for portability"); |
| @@ -740,7 +731,6 @@ _GL_CXXALIAS_SYS (mkfifo, int, (char const *file, mode_t mode)); | |||
| 740 | # endif | 731 | # endif |
| 741 | _GL_CXXALIASWARN (mkfifo); | 732 | _GL_CXXALIASWARN (mkfifo); |
| 742 | #elif defined GNULIB_POSIXCHECK | 733 | #elif defined GNULIB_POSIXCHECK |
| 743 | # undef mkfifo | ||
| 744 | # if HAVE_RAW_DECL_MKFIFO | 734 | # if HAVE_RAW_DECL_MKFIFO |
| 745 | _GL_WARN_ON_USE (mkfifo, "mkfifo is not portable - " | 735 | _GL_WARN_ON_USE (mkfifo, "mkfifo is not portable - " |
| 746 | "use gnulib module mkfifo for portability"); | 736 | "use gnulib module mkfifo for portability"); |
| @@ -768,7 +758,6 @@ _GL_CXXALIAS_SYS (mkfifoat, int, (int fd, char const *file, mode_t mode)); | |||
| 768 | _GL_CXXALIASWARN (mkfifoat); | 758 | _GL_CXXALIASWARN (mkfifoat); |
| 769 | # endif | 759 | # endif |
| 770 | #elif defined GNULIB_POSIXCHECK | 760 | #elif defined GNULIB_POSIXCHECK |
| 771 | # undef mkfifoat | ||
| 772 | # if HAVE_RAW_DECL_MKFIFOAT | 761 | # if HAVE_RAW_DECL_MKFIFOAT |
| 773 | _GL_WARN_ON_USE (mkfifoat, "mkfifoat is not portable - " | 762 | _GL_WARN_ON_USE (mkfifoat, "mkfifoat is not portable - " |
| 774 | "use gnulib module mkfifoat for portability"); | 763 | "use gnulib module mkfifoat for portability"); |
| @@ -794,7 +783,6 @@ _GL_CXXALIAS_SYS (mknod, int, (char const *file, mode_t mode, dev_t dev)); | |||
| 794 | # endif | 783 | # endif |
| 795 | _GL_CXXALIASWARN (mknod); | 784 | _GL_CXXALIASWARN (mknod); |
| 796 | #elif defined GNULIB_POSIXCHECK | 785 | #elif defined GNULIB_POSIXCHECK |
| 797 | # undef mknod | ||
| 798 | # if HAVE_RAW_DECL_MKNOD | 786 | # if HAVE_RAW_DECL_MKNOD |
| 799 | _GL_WARN_ON_USE (mknod, "mknod is not portable - " | 787 | _GL_WARN_ON_USE (mknod, "mknod is not portable - " |
| 800 | "use gnulib module mknod for portability"); | 788 | "use gnulib module mknod for portability"); |
| @@ -826,7 +814,6 @@ _GL_CXXALIAS_SYS (mknodat, int, | |||
| 826 | _GL_CXXALIASWARN (mknodat); | 814 | _GL_CXXALIASWARN (mknodat); |
| 827 | # endif | 815 | # endif |
| 828 | #elif defined GNULIB_POSIXCHECK | 816 | #elif defined GNULIB_POSIXCHECK |
| 829 | # undef mknodat | ||
| 830 | # if HAVE_RAW_DECL_MKNODAT | 817 | # if HAVE_RAW_DECL_MKNODAT |
| 831 | _GL_WARN_ON_USE (mknodat, "mknodat is not portable - " | 818 | _GL_WARN_ON_USE (mknodat, "mknodat is not portable - " |
| 832 | "use gnulib module mkfifoat for portability"); | 819 | "use gnulib module mkfifoat for portability"); |
| @@ -904,7 +891,6 @@ _GL_EXTERN_C int stat (const char *restrict name, struct stat *restrict buf) | |||
| 904 | #define stat stat_used_without_requesting_gnulib_module_stat | 891 | #define stat stat_used_without_requesting_gnulib_module_stat |
| 905 | */ | 892 | */ |
| 906 | #elif defined GNULIB_POSIXCHECK | 893 | #elif defined GNULIB_POSIXCHECK |
| 907 | # undef stat | ||
| 908 | # if HAVE_RAW_DECL_STAT | 894 | # if HAVE_RAW_DECL_STAT |
| 909 | _GL_WARN_ON_USE (stat, "stat is unportable - " | 895 | _GL_WARN_ON_USE (stat, "stat is unportable - " |
| 910 | "use gnulib module stat for portability"); | 896 | "use gnulib module stat for portability"); |
| @@ -944,7 +930,6 @@ _GL_CXXALIASWARN (lstat); | |||
| 944 | # define lstat lstat_used_without_requesting_gnulib_module_lstat | 930 | # define lstat lstat_used_without_requesting_gnulib_module_lstat |
| 945 | # endif | 931 | # endif |
| 946 | #elif defined GNULIB_POSIXCHECK | 932 | #elif defined GNULIB_POSIXCHECK |
| 947 | # undef lstat | ||
| 948 | # if HAVE_RAW_DECL_LSTAT | 933 | # if HAVE_RAW_DECL_LSTAT |
| 949 | _GL_WARN_ON_USE (lstat, "lstat is unportable - " | 934 | _GL_WARN_ON_USE (lstat, "lstat is unportable - " |
| 950 | "use gnulib module lstat for portability"); | 935 | "use gnulib module lstat for portability"); |
| @@ -998,7 +983,6 @@ _GL_CXXALIAS_SYS (utimensat, int, (int fd, char const *name, | |||
| 998 | _GL_CXXALIASWARN (utimensat); | 983 | _GL_CXXALIASWARN (utimensat); |
| 999 | # endif | 984 | # endif |
| 1000 | #elif defined GNULIB_POSIXCHECK | 985 | #elif defined GNULIB_POSIXCHECK |
| 1001 | # undef utimensat | ||
| 1002 | # if HAVE_RAW_DECL_UTIMENSAT | 986 | # if HAVE_RAW_DECL_UTIMENSAT |
| 1003 | _GL_WARN_ON_USE (utimensat, "utimensat is not portable - " | 987 | _GL_WARN_ON_USE (utimensat, "utimensat is not portable - " |
| 1004 | "use gnulib module utimensat for portability"); | 988 | "use gnulib module utimensat for portability"); |
diff --git a/lib/sys_time.in.h b/lib/sys_time.in.h index e6d15613bec..470e6c321e2 100644 --- a/lib/sys_time.in.h +++ b/lib/sys_time.in.h | |||
| @@ -133,7 +133,6 @@ namespace GNULIB_NAMESPACE { | |||
| 133 | } | 133 | } |
| 134 | # endif | 134 | # endif |
| 135 | #elif defined GNULIB_POSIXCHECK | 135 | #elif defined GNULIB_POSIXCHECK |
| 136 | # undef gettimeofday | ||
| 137 | # if HAVE_RAW_DECL_GETTIMEOFDAY | 136 | # if HAVE_RAW_DECL_GETTIMEOFDAY |
| 138 | _GL_WARN_ON_USE (gettimeofday, "gettimeofday is unportable - " | 137 | _GL_WARN_ON_USE (gettimeofday, "gettimeofday is unportable - " |
| 139 | "use gnulib module gettimeofday for portability"); | 138 | "use gnulib module gettimeofday for portability"); |
diff --git a/lib/time.in.h b/lib/time.in.h index d28702d2f61..3ce2de16f2a 100644 --- a/lib/time.in.h +++ b/lib/time.in.h | |||
| @@ -161,7 +161,6 @@ _GL_CXXALIAS_SYS (timespec_get, int, (struct timespec *ts, int base)); | |||
| 161 | _GL_CXXALIASWARN (timespec_get); | 161 | _GL_CXXALIASWARN (timespec_get); |
| 162 | # endif | 162 | # endif |
| 163 | # elif defined GNULIB_POSIXCHECK | 163 | # elif defined GNULIB_POSIXCHECK |
| 164 | # undef timespec_get | ||
| 165 | # if HAVE_RAW_DECL_TIMESPEC_GET | 164 | # if HAVE_RAW_DECL_TIMESPEC_GET |
| 166 | _GL_WARN_ON_USE (timespec_get, "timespec_get is unportable - " | 165 | _GL_WARN_ON_USE (timespec_get, "timespec_get is unportable - " |
| 167 | "use gnulib module timespec_get for portability"); | 166 | "use gnulib module timespec_get for portability"); |
| @@ -190,7 +189,6 @@ _GL_CXXALIAS_SYS (timespec_getres, int, (struct timespec *ts, int base)); | |||
| 190 | _GL_CXXALIASWARN (timespec_getres); | 189 | _GL_CXXALIASWARN (timespec_getres); |
| 191 | # endif | 190 | # endif |
| 192 | # elif defined GNULIB_POSIXCHECK | 191 | # elif defined GNULIB_POSIXCHECK |
| 193 | # undef timespec_getres | ||
| 194 | # if HAVE_RAW_DECL_TIMESPEC_GETRES | 192 | # if HAVE_RAW_DECL_TIMESPEC_GETRES |
| 195 | _GL_WARN_ON_USE (timespec_getres, "timespec_getres is unportable - " | 193 | _GL_WARN_ON_USE (timespec_getres, "timespec_getres is unportable - " |
| 196 | "use gnulib module timespec_getres for portability"); | 194 | "use gnulib module timespec_getres for portability"); |
| @@ -212,7 +210,6 @@ _GL_CXXALIAS_SYS (time, time_t, (time_t *__tp)); | |||
| 212 | _GL_CXXALIASWARN (time); | 210 | _GL_CXXALIASWARN (time); |
| 213 | # endif | 211 | # endif |
| 214 | # elif defined GNULIB_POSIXCHECK | 212 | # elif defined GNULIB_POSIXCHECK |
| 215 | # undef time | ||
| 216 | # if HAVE_RAW_DECL_TIME | 213 | # if HAVE_RAW_DECL_TIME |
| 217 | _GL_WARN_ON_USE (time, "time has consistency problems - " | 214 | _GL_WARN_ON_USE (time, "time has consistency problems - " |
| 218 | "use gnulib module time for portability"); | 215 | "use gnulib module time for portability"); |
| @@ -243,7 +240,6 @@ _GL_CXXALIAS_SYS (nanosleep, int, | |||
| 243 | # endif | 240 | # endif |
| 244 | _GL_CXXALIASWARN (nanosleep); | 241 | _GL_CXXALIASWARN (nanosleep); |
| 245 | # elif defined GNULIB_POSIXCHECK | 242 | # elif defined GNULIB_POSIXCHECK |
| 246 | # undef nanosleep | ||
| 247 | # if HAVE_RAW_DECL_NANOSLEEP | 243 | # if HAVE_RAW_DECL_NANOSLEEP |
| 248 | _GL_WARN_ON_USE (nanosleep, "nanosleep is unportable - " | 244 | _GL_WARN_ON_USE (nanosleep, "nanosleep is unportable - " |
| 249 | "use gnulib module nanosleep for portability"); | 245 | "use gnulib module nanosleep for portability"); |
| @@ -284,7 +280,6 @@ _GL_CXXALIAS_SYS (tzset, void, (void)); | |||
| 284 | # endif | 280 | # endif |
| 285 | _GL_CXXALIASWARN (tzset); | 281 | _GL_CXXALIASWARN (tzset); |
| 286 | # elif defined GNULIB_POSIXCHECK | 282 | # elif defined GNULIB_POSIXCHECK |
| 287 | # undef tzset | ||
| 288 | # if HAVE_RAW_DECL_TZSET | 283 | # if HAVE_RAW_DECL_TZSET |
| 289 | _GL_WARN_ON_USE (tzset, "tzset has portability problems - " | 284 | _GL_WARN_ON_USE (tzset, "tzset has portability problems - " |
| 290 | "use gnulib module tzset for portability"); | 285 | "use gnulib module tzset for portability"); |
| @@ -306,7 +301,6 @@ _GL_CXXALIAS_SYS (mktime, time_t, (struct tm *__tp)); | |||
| 306 | _GL_CXXALIASWARN (mktime); | 301 | _GL_CXXALIASWARN (mktime); |
| 307 | # endif | 302 | # endif |
| 308 | # elif defined GNULIB_POSIXCHECK | 303 | # elif defined GNULIB_POSIXCHECK |
| 309 | # undef mktime | ||
| 310 | # if HAVE_RAW_DECL_MKTIME | 304 | # if HAVE_RAW_DECL_MKTIME |
| 311 | _GL_WARN_ON_USE (mktime, "mktime has portability problems - " | 305 | _GL_WARN_ON_USE (mktime, "mktime has portability problems - " |
| 312 | "use gnulib module mktime for portability"); | 306 | "use gnulib module mktime for portability"); |
| @@ -362,12 +356,10 @@ _GL_CXXALIAS_SYS (gmtime_r, struct tm *, (time_t const *restrict __timer, | |||
| 362 | _GL_CXXALIASWARN (gmtime_r); | 356 | _GL_CXXALIASWARN (gmtime_r); |
| 363 | # endif | 357 | # endif |
| 364 | # elif defined GNULIB_POSIXCHECK | 358 | # elif defined GNULIB_POSIXCHECK |
| 365 | # undef localtime_r | ||
| 366 | # if HAVE_RAW_DECL_LOCALTIME_R | 359 | # if HAVE_RAW_DECL_LOCALTIME_R |
| 367 | _GL_WARN_ON_USE (localtime_r, "localtime_r is unportable - " | 360 | _GL_WARN_ON_USE (localtime_r, "localtime_r is unportable - " |
| 368 | "use gnulib module time_r for portability"); | 361 | "use gnulib module time_r for portability"); |
| 369 | # endif | 362 | # endif |
| 370 | # undef gmtime_r | ||
| 371 | # if HAVE_RAW_DECL_GMTIME_R | 363 | # if HAVE_RAW_DECL_GMTIME_R |
| 372 | _GL_WARN_ON_USE (gmtime_r, "gmtime_r is unportable - " | 364 | _GL_WARN_ON_USE (gmtime_r, "gmtime_r is unportable - " |
| 373 | "use gnulib module time_r for portability"); | 365 | "use gnulib module time_r for portability"); |
| @@ -393,7 +385,6 @@ _GL_CXXALIAS_SYS (localtime, struct tm *, (time_t const *__timer)); | |||
| 393 | _GL_CXXALIASWARN (localtime); | 385 | _GL_CXXALIASWARN (localtime); |
| 394 | # endif | 386 | # endif |
| 395 | # elif defined GNULIB_POSIXCHECK | 387 | # elif defined GNULIB_POSIXCHECK |
| 396 | # undef localtime | ||
| 397 | # if HAVE_RAW_DECL_LOCALTIME | 388 | # if HAVE_RAW_DECL_LOCALTIME |
| 398 | _GL_WARN_ON_USE (localtime, "localtime has portability problems - " | 389 | _GL_WARN_ON_USE (localtime, "localtime has portability problems - " |
| 399 | "use gnulib module localtime for portability"); | 390 | "use gnulib module localtime for portability"); |
| @@ -430,7 +421,6 @@ _GL_CXXALIAS_SYS (strptime, char *, (char const *restrict __buf, | |||
| 430 | struct tm *restrict __tm)); | 421 | struct tm *restrict __tm)); |
| 431 | _GL_CXXALIASWARN (strptime); | 422 | _GL_CXXALIASWARN (strptime); |
| 432 | # elif defined GNULIB_POSIXCHECK | 423 | # elif defined GNULIB_POSIXCHECK |
| 433 | # undef strptime | ||
| 434 | # if HAVE_RAW_DECL_STRPTIME | 424 | # if HAVE_RAW_DECL_STRPTIME |
| 435 | _GL_WARN_ON_USE (strptime, "strptime is unportable - " | 425 | _GL_WARN_ON_USE (strptime, "strptime is unportable - " |
| 436 | "use gnulib module strptime for portability"); | 426 | "use gnulib module strptime for portability"); |
| @@ -483,7 +473,6 @@ _GL_CXXALIAS_SYS (strftime, size_t, | |||
| 483 | _GL_CXXALIASWARN (strftime); | 473 | _GL_CXXALIASWARN (strftime); |
| 484 | # endif | 474 | # endif |
| 485 | # elif defined GNULIB_POSIXCHECK | 475 | # elif defined GNULIB_POSIXCHECK |
| 486 | # undef strftime | ||
| 487 | # if HAVE_RAW_DECL_STRFTIME | 476 | # if HAVE_RAW_DECL_STRFTIME |
| 488 | _GL_WARN_ON_USE (strftime, "strftime has portability problems - " | 477 | _GL_WARN_ON_USE (strftime, "strftime has portability problems - " |
| 489 | "use gnulib module strftime-fixes for portability"); | 478 | "use gnulib module strftime-fixes for portability"); |
| @@ -618,7 +607,6 @@ _GL_CXXALIAS_SYS (timegm, time_t, (struct tm *__tm)); | |||
| 618 | _GL_CXXALIASWARN (timegm); | 607 | _GL_CXXALIASWARN (timegm); |
| 619 | # endif | 608 | # endif |
| 620 | # elif defined GNULIB_POSIXCHECK | 609 | # elif defined GNULIB_POSIXCHECK |
| 621 | # undef timegm | ||
| 622 | # if HAVE_RAW_DECL_TIMEGM | 610 | # if HAVE_RAW_DECL_TIMEGM |
| 623 | _GL_WARN_ON_USE (timegm, "timegm is unportable - " | 611 | _GL_WARN_ON_USE (timegm, "timegm is unportable - " |
| 624 | "use gnulib module timegm for portability"); | 612 | "use gnulib module timegm for portability"); |
| @@ -629,28 +617,24 @@ _GL_WARN_ON_USE (timegm, "timegm is unportable - " | |||
| 629 | buffers when given outlandish struct tm values. Portable | 617 | buffers when given outlandish struct tm values. Portable |
| 630 | applications should use strftime (or even sprintf) instead. */ | 618 | applications should use strftime (or even sprintf) instead. */ |
| 631 | # if defined GNULIB_POSIXCHECK | 619 | # if defined GNULIB_POSIXCHECK |
| 632 | # undef asctime | ||
| 633 | # if HAVE_RAW_DECL_ASCTIME | 620 | # if HAVE_RAW_DECL_ASCTIME |
| 634 | _GL_WARN_ON_USE (asctime, "asctime can overrun buffers in some cases - " | 621 | _GL_WARN_ON_USE (asctime, "asctime can overrun buffers in some cases - " |
| 635 | "better use strftime (or even sprintf) instead"); | 622 | "better use strftime (or even sprintf) instead"); |
| 636 | # endif | 623 | # endif |
| 637 | # endif | 624 | # endif |
| 638 | # if defined GNULIB_POSIXCHECK | 625 | # if defined GNULIB_POSIXCHECK |
| 639 | # undef asctime_r | ||
| 640 | # if HAVE_RAW_DECL_ASCTIME_R | 626 | # if HAVE_RAW_DECL_ASCTIME_R |
| 641 | _GL_WARN_ON_USE (asctime_r, "asctime_r can overrun buffers in some cases - " | 627 | _GL_WARN_ON_USE (asctime_r, "asctime_r can overrun buffers in some cases - " |
| 642 | "better use strftime (or even sprintf) instead"); | 628 | "better use strftime (or even sprintf) instead"); |
| 643 | # endif | 629 | # endif |
| 644 | # endif | 630 | # endif |
| 645 | # if defined GNULIB_POSIXCHECK | 631 | # if defined GNULIB_POSIXCHECK |
| 646 | # undef ctime | ||
| 647 | # if HAVE_RAW_DECL_CTIME | 632 | # if HAVE_RAW_DECL_CTIME |
| 648 | _GL_WARN_ON_USE (ctime, "ctime can overrun buffers in some cases - " | 633 | _GL_WARN_ON_USE (ctime, "ctime can overrun buffers in some cases - " |
| 649 | "better use strftime (or even sprintf) instead"); | 634 | "better use strftime (or even sprintf) instead"); |
| 650 | # endif | 635 | # endif |
| 651 | # endif | 636 | # endif |
| 652 | # if defined GNULIB_POSIXCHECK | 637 | # if defined GNULIB_POSIXCHECK |
| 653 | # undef ctime_r | ||
| 654 | # if HAVE_RAW_DECL_CTIME_R | 638 | # if HAVE_RAW_DECL_CTIME_R |
| 655 | _GL_WARN_ON_USE (ctime_r, "ctime_r can overrun buffers in some cases - " | 639 | _GL_WARN_ON_USE (ctime_r, "ctime_r can overrun buffers in some cases - " |
| 656 | "better use strftime (or even sprintf) instead"); | 640 | "better use strftime (or even sprintf) instead"); |
diff --git a/lib/unistd.in.h b/lib/unistd.in.h index 5b5838240aa..72d66eaa3a9 100644 --- a/lib/unistd.in.h +++ b/lib/unistd.in.h | |||
| @@ -302,7 +302,6 @@ _GL_CXXALIAS_SYS (access, int, (const char *file, int mode)); | |||
| 302 | # endif | 302 | # endif |
| 303 | _GL_CXXALIASWARN (access); | 303 | _GL_CXXALIASWARN (access); |
| 304 | #elif defined GNULIB_POSIXCHECK | 304 | #elif defined GNULIB_POSIXCHECK |
| 305 | # undef access | ||
| 306 | # if HAVE_RAW_DECL_ACCESS | 305 | # if HAVE_RAW_DECL_ACCESS |
| 307 | /* The access() function is a security risk. */ | 306 | /* The access() function is a security risk. */ |
| 308 | _GL_WARN_ON_USE (access, "access does not always support X_OK - " | 307 | _GL_WARN_ON_USE (access, "access does not always support X_OK - " |
| @@ -339,7 +338,6 @@ _GL_CXXALIAS_SYS (chdir, int, (const char *file) _GL_ARG_NONNULL ((1))); | |||
| 339 | # endif | 338 | # endif |
| 340 | _GL_CXXALIASWARN (chdir); | 339 | _GL_CXXALIASWARN (chdir); |
| 341 | #elif defined GNULIB_POSIXCHECK | 340 | #elif defined GNULIB_POSIXCHECK |
| 342 | # undef chdir | ||
| 343 | # if HAVE_RAW_DECL_CHDIR | 341 | # if HAVE_RAW_DECL_CHDIR |
| 344 | _GL_WARN_ON_USE (chdir, "chdir is not always in <unistd.h> - " | 342 | _GL_WARN_ON_USE (chdir, "chdir is not always in <unistd.h> - " |
| 345 | "use gnulib module chdir for portability"); | 343 | "use gnulib module chdir for portability"); |
| @@ -384,7 +382,6 @@ _GL_CXXALIAS_SYS (chown, int, (const char *file, uid_t uid, gid_t gid)); | |||
| 384 | # endif | 382 | # endif |
| 385 | _GL_CXXALIASWARN (chown); | 383 | _GL_CXXALIASWARN (chown); |
| 386 | #elif defined GNULIB_POSIXCHECK | 384 | #elif defined GNULIB_POSIXCHECK |
| 387 | # undef chown | ||
| 388 | # if HAVE_RAW_DECL_CHOWN | 385 | # if HAVE_RAW_DECL_CHOWN |
| 389 | _GL_WARN_ON_USE (chown, "chown fails to follow symlinks on some systems and " | 386 | _GL_WARN_ON_USE (chown, "chown fails to follow symlinks on some systems and " |
| 390 | "doesn't treat a uid or gid of -1 on some systems - " | 387 | "doesn't treat a uid or gid of -1 on some systems - " |
| @@ -418,7 +415,6 @@ _GL_CXXALIASWARN (close); | |||
| 418 | # define close close_used_without_requesting_gnulib_module_close | 415 | # define close close_used_without_requesting_gnulib_module_close |
| 419 | # endif | 416 | # endif |
| 420 | #elif defined GNULIB_POSIXCHECK | 417 | #elif defined GNULIB_POSIXCHECK |
| 421 | # undef close | ||
| 422 | /* Assume close is always declared. */ | 418 | /* Assume close is always declared. */ |
| 423 | _GL_WARN_ON_USE (close, "close does not portably work on sockets - " | 419 | _GL_WARN_ON_USE (close, "close does not portably work on sockets - " |
| 424 | "use gnulib module close for portability"); | 420 | "use gnulib module close for portability"); |
| @@ -465,7 +461,6 @@ _GL_CXXALIAS_SYS (copy_file_range, ssize_t, (int ifd, off_t *ipos, | |||
| 465 | _GL_CXXALIASWARN (copy_file_range); | 461 | _GL_CXXALIASWARN (copy_file_range); |
| 466 | # endif | 462 | # endif |
| 467 | #elif defined GNULIB_POSIXCHECK | 463 | #elif defined GNULIB_POSIXCHECK |
| 468 | # undef copy_file_range | ||
| 469 | # if HAVE_RAW_DECL_COPY_FILE_RANGE | 464 | # if HAVE_RAW_DECL_COPY_FILE_RANGE |
| 470 | _GL_WARN_ON_USE (copy_file_range, | 465 | _GL_WARN_ON_USE (copy_file_range, |
| 471 | "copy_file_range is unportable - " | 466 | "copy_file_range is unportable - " |
| @@ -492,7 +487,6 @@ _GL_CXXALIAS_SYS (dup, int, (int oldfd)); | |||
| 492 | # endif | 487 | # endif |
| 493 | _GL_CXXALIASWARN (dup); | 488 | _GL_CXXALIASWARN (dup); |
| 494 | #elif defined GNULIB_POSIXCHECK | 489 | #elif defined GNULIB_POSIXCHECK |
| 495 | # undef dup | ||
| 496 | # if HAVE_RAW_DECL_DUP | 490 | # if HAVE_RAW_DECL_DUP |
| 497 | _GL_WARN_ON_USE (dup, "dup is unportable - " | 491 | _GL_WARN_ON_USE (dup, "dup is unportable - " |
| 498 | "use gnulib module dup for portability"); | 492 | "use gnulib module dup for portability"); |
| @@ -537,7 +531,6 @@ _GL_CXXALIAS_SYS (dup2, int, (int oldfd, int newfd)); | |||
| 537 | # endif | 531 | # endif |
| 538 | _GL_CXXALIASWARN (dup2); | 532 | _GL_CXXALIASWARN (dup2); |
| 539 | #elif defined GNULIB_POSIXCHECK | 533 | #elif defined GNULIB_POSIXCHECK |
| 540 | # undef dup2 | ||
| 541 | # if HAVE_RAW_DECL_DUP2 | 534 | # if HAVE_RAW_DECL_DUP2 |
| 542 | _GL_WARN_ON_USE (dup2, "dup2 is unportable - " | 535 | _GL_WARN_ON_USE (dup2, "dup2 is unportable - " |
| 543 | "use gnulib module dup2 for portability"); | 536 | "use gnulib module dup2 for portability"); |
| @@ -585,7 +578,6 @@ _GL_CXXALIAS_SYS (dup3, int, (int oldfd, int newfd, int flags)); | |||
| 585 | _GL_CXXALIASWARN (dup3); | 578 | _GL_CXXALIASWARN (dup3); |
| 586 | # endif | 579 | # endif |
| 587 | #elif defined GNULIB_POSIXCHECK | 580 | #elif defined GNULIB_POSIXCHECK |
| 588 | # undef dup3 | ||
| 589 | # if HAVE_RAW_DECL_DUP3 | 581 | # if HAVE_RAW_DECL_DUP3 |
| 590 | _GL_WARN_ON_USE (dup3, "dup3 is unportable - " | 582 | _GL_WARN_ON_USE (dup3, "dup3 is unportable - " |
| 591 | "use gnulib module dup3 for portability"); | 583 | "use gnulib module dup3 for portability"); |
| @@ -653,7 +645,6 @@ _GL_WARN_ON_USE (euidaccess, "the euidaccess function is a security risk - " | |||
| 653 | "use the gnulib module faccessat instead"); | 645 | "use the gnulib module faccessat instead"); |
| 654 | # endif | 646 | # endif |
| 655 | #elif defined GNULIB_POSIXCHECK | 647 | #elif defined GNULIB_POSIXCHECK |
| 656 | # undef euidaccess | ||
| 657 | # if HAVE_RAW_DECL_EUIDACCESS | 648 | # if HAVE_RAW_DECL_EUIDACCESS |
| 658 | _GL_WARN_ON_USE (euidaccess, "euidaccess is unportable - " | 649 | _GL_WARN_ON_USE (euidaccess, "euidaccess is unportable - " |
| 659 | "use gnulib module euidaccess for portability"); | 650 | "use gnulib module euidaccess for portability"); |
| @@ -675,7 +666,6 @@ _GL_CXXALIAS_SYS (execl, int, (const char *program, const char *arg, ...)); | |||
| 675 | # endif | 666 | # endif |
| 676 | _GL_CXXALIASWARN (execl); | 667 | _GL_CXXALIASWARN (execl); |
| 677 | #elif defined GNULIB_POSIXCHECK | 668 | #elif defined GNULIB_POSIXCHECK |
| 678 | # undef execl | ||
| 679 | # if HAVE_RAW_DECL_EXECL | 669 | # if HAVE_RAW_DECL_EXECL |
| 680 | _GL_WARN_ON_USE (execl, "execl behaves very differently on mingw - " | 670 | _GL_WARN_ON_USE (execl, "execl behaves very differently on mingw - " |
| 681 | "use gnulib module execl for portability"); | 671 | "use gnulib module execl for portability"); |
| @@ -710,7 +700,6 @@ _GL_CXXALIAS_SYS (execle, int, (const char *program, const char *arg, ...)); | |||
| 710 | # endif | 700 | # endif |
| 711 | _GL_CXXALIASWARN (execle); | 701 | _GL_CXXALIASWARN (execle); |
| 712 | #elif defined GNULIB_POSIXCHECK | 702 | #elif defined GNULIB_POSIXCHECK |
| 713 | # undef execle | ||
| 714 | # if HAVE_RAW_DECL_EXECLE | 703 | # if HAVE_RAW_DECL_EXECLE |
| 715 | _GL_WARN_ON_USE (execle, "execle behaves very differently on mingw - " | 704 | _GL_WARN_ON_USE (execle, "execle behaves very differently on mingw - " |
| 716 | "use gnulib module execle for portability"); | 705 | "use gnulib module execle for portability"); |
| @@ -746,7 +735,6 @@ _GL_CXXALIAS_SYS (execlp, int, (const char *program, const char *arg, ...)); | |||
| 746 | # endif | 735 | # endif |
| 747 | _GL_CXXALIASWARN (execlp); | 736 | _GL_CXXALIASWARN (execlp); |
| 748 | #elif defined GNULIB_POSIXCHECK | 737 | #elif defined GNULIB_POSIXCHECK |
| 749 | # undef execlp | ||
| 750 | # if HAVE_RAW_DECL_EXECLP | 738 | # if HAVE_RAW_DECL_EXECLP |
| 751 | _GL_WARN_ON_USE (execlp, "execlp behaves very differently on mingw - " | 739 | _GL_WARN_ON_USE (execlp, "execlp behaves very differently on mingw - " |
| 752 | "use gnulib module execlp for portability"); | 740 | "use gnulib module execlp for portability"); |
| @@ -783,7 +771,6 @@ _GL_CXXALIAS_SYS (execv, int, (const char *program, char * const *argv)); | |||
| 783 | # endif | 771 | # endif |
| 784 | _GL_CXXALIASWARN (execv); | 772 | _GL_CXXALIASWARN (execv); |
| 785 | #elif defined GNULIB_POSIXCHECK | 773 | #elif defined GNULIB_POSIXCHECK |
| 786 | # undef execv | ||
| 787 | # if HAVE_RAW_DECL_EXECV | 774 | # if HAVE_RAW_DECL_EXECV |
| 788 | _GL_WARN_ON_USE (execv, "execv behaves very differently on mingw - " | 775 | _GL_WARN_ON_USE (execv, "execv behaves very differently on mingw - " |
| 789 | "use gnulib module execv for portability"); | 776 | "use gnulib module execv for portability"); |
| @@ -822,7 +809,6 @@ _GL_CXXALIAS_SYS (execve, int, | |||
| 822 | # endif | 809 | # endif |
| 823 | _GL_CXXALIASWARN (execve); | 810 | _GL_CXXALIASWARN (execve); |
| 824 | #elif defined GNULIB_POSIXCHECK | 811 | #elif defined GNULIB_POSIXCHECK |
| 825 | # undef execve | ||
| 826 | # if HAVE_RAW_DECL_EXECVE | 812 | # if HAVE_RAW_DECL_EXECVE |
| 827 | _GL_WARN_ON_USE (execve, "execve behaves very differently on mingw - " | 813 | _GL_WARN_ON_USE (execve, "execve behaves very differently on mingw - " |
| 828 | "use gnulib module execve for portability"); | 814 | "use gnulib module execve for portability"); |
| @@ -860,7 +846,6 @@ _GL_CXXALIAS_SYS (execvp, int, (const char *program, char * const *argv)); | |||
| 860 | # endif | 846 | # endif |
| 861 | _GL_CXXALIASWARN (execvp); | 847 | _GL_CXXALIASWARN (execvp); |
| 862 | #elif defined GNULIB_POSIXCHECK | 848 | #elif defined GNULIB_POSIXCHECK |
| 863 | # undef execvp | ||
| 864 | # if HAVE_RAW_DECL_EXECVP | 849 | # if HAVE_RAW_DECL_EXECVP |
| 865 | _GL_WARN_ON_USE (execvp, "execvp behaves very differently on mingw - " | 850 | _GL_WARN_ON_USE (execvp, "execvp behaves very differently on mingw - " |
| 866 | "use gnulib module execvp for portability"); | 851 | "use gnulib module execvp for portability"); |
| @@ -906,7 +891,6 @@ _GL_CXXALIAS_SYS (execvpe, int, | |||
| 906 | _GL_CXXALIASWARN (execvpe); | 891 | _GL_CXXALIASWARN (execvpe); |
| 907 | # endif | 892 | # endif |
| 908 | #elif defined GNULIB_POSIXCHECK | 893 | #elif defined GNULIB_POSIXCHECK |
| 909 | # undef execvpe | ||
| 910 | # if HAVE_RAW_DECL_EXECVPE | 894 | # if HAVE_RAW_DECL_EXECVPE |
| 911 | _GL_WARN_ON_USE (execvpe, "execvpe behaves very differently on mingw - " | 895 | _GL_WARN_ON_USE (execvpe, "execvpe behaves very differently on mingw - " |
| 912 | "use gnulib module execvpe for portability"); | 896 | "use gnulib module execvpe for portability"); |
| @@ -963,7 +947,6 @@ _GL_CXXALIAS_SYS (faccessat, int, | |||
| 963 | _GL_CXXALIASWARN (faccessat); | 947 | _GL_CXXALIASWARN (faccessat); |
| 964 | # endif | 948 | # endif |
| 965 | #elif defined GNULIB_POSIXCHECK | 949 | #elif defined GNULIB_POSIXCHECK |
| 966 | # undef faccessat | ||
| 967 | # if HAVE_RAW_DECL_FACCESSAT | 950 | # if HAVE_RAW_DECL_FACCESSAT |
| 968 | _GL_WARN_ON_USE (faccessat, "faccessat is not portable - " | 951 | _GL_WARN_ON_USE (faccessat, "faccessat is not portable - " |
| 969 | "use gnulib module faccessat for portability"); | 952 | "use gnulib module faccessat for portability"); |
| @@ -1000,7 +983,6 @@ _GL_EXTERN_C int _gl_register_dup (int oldfd, int newfd); | |||
| 1000 | _GL_EXTERN_C const char *_gl_directory_name (int fd); | 983 | _GL_EXTERN_C const char *_gl_directory_name (int fd); |
| 1001 | # endif | 984 | # endif |
| 1002 | #elif defined GNULIB_POSIXCHECK | 985 | #elif defined GNULIB_POSIXCHECK |
| 1003 | # undef fchdir | ||
| 1004 | # if HAVE_RAW_DECL_FCHDIR | 986 | # if HAVE_RAW_DECL_FCHDIR |
| 1005 | _GL_WARN_ON_USE (fchdir, "fchdir is unportable - " | 987 | _GL_WARN_ON_USE (fchdir, "fchdir is unportable - " |
| 1006 | "use gnulib module fchdir for portability"); | 988 | "use gnulib module fchdir for portability"); |
| @@ -1030,7 +1012,6 @@ _GL_CXXALIAS_SYS (fchownat, int, (int fd, char const *file, | |||
| 1030 | # endif | 1012 | # endif |
| 1031 | _GL_CXXALIASWARN (fchownat); | 1013 | _GL_CXXALIASWARN (fchownat); |
| 1032 | #elif defined GNULIB_POSIXCHECK | 1014 | #elif defined GNULIB_POSIXCHECK |
| 1033 | # undef fchownat | ||
| 1034 | # if HAVE_RAW_DECL_FCHOWNAT | 1015 | # if HAVE_RAW_DECL_FCHOWNAT |
| 1035 | _GL_WARN_ON_USE (fchownat, "fchownat is not portable - " | 1016 | _GL_WARN_ON_USE (fchownat, "fchownat is not portable - " |
| 1036 | "use gnulib module fchownat for portability"); | 1017 | "use gnulib module fchownat for portability"); |
| @@ -1060,7 +1041,6 @@ _GL_CXXALIAS_SYS (fdatasync, int, (int fd)); | |||
| 1060 | _GL_CXXALIASWARN (fdatasync); | 1041 | _GL_CXXALIASWARN (fdatasync); |
| 1061 | # endif | 1042 | # endif |
| 1062 | #elif defined GNULIB_POSIXCHECK | 1043 | #elif defined GNULIB_POSIXCHECK |
| 1063 | # undef fdatasync | ||
| 1064 | # if HAVE_RAW_DECL_FDATASYNC | 1044 | # if HAVE_RAW_DECL_FDATASYNC |
| 1065 | _GL_WARN_ON_USE (fdatasync, "fdatasync is unportable - " | 1045 | _GL_WARN_ON_USE (fdatasync, "fdatasync is unportable - " |
| 1066 | "use gnulib module fdatasync for portability"); | 1046 | "use gnulib module fdatasync for portability"); |
| @@ -1079,7 +1059,6 @@ _GL_FUNCDECL_SYS (fsync, int, (int fd), ); | |||
| 1079 | _GL_CXXALIAS_SYS (fsync, int, (int fd)); | 1059 | _GL_CXXALIAS_SYS (fsync, int, (int fd)); |
| 1080 | _GL_CXXALIASWARN (fsync); | 1060 | _GL_CXXALIASWARN (fsync); |
| 1081 | #elif defined GNULIB_POSIXCHECK | 1061 | #elif defined GNULIB_POSIXCHECK |
| 1082 | # undef fsync | ||
| 1083 | # if HAVE_RAW_DECL_FSYNC | 1062 | # if HAVE_RAW_DECL_FSYNC |
| 1084 | _GL_WARN_ON_USE (fsync, "fsync is unportable - " | 1063 | _GL_WARN_ON_USE (fsync, "fsync is unportable - " |
| 1085 | "use gnulib module fsync for portability"); | 1064 | "use gnulib module fsync for portability"); |
| @@ -1113,7 +1092,6 @@ _GL_CXXALIAS_SYS (ftruncate, int, | |||
| 1113 | _GL_CXXALIASWARN (ftruncate); | 1092 | _GL_CXXALIASWARN (ftruncate); |
| 1114 | # endif | 1093 | # endif |
| 1115 | #elif defined GNULIB_POSIXCHECK | 1094 | #elif defined GNULIB_POSIXCHECK |
| 1116 | # undef ftruncate | ||
| 1117 | # if HAVE_RAW_DECL_FTRUNCATE | 1095 | # if HAVE_RAW_DECL_FTRUNCATE |
| 1118 | _GL_WARN_ON_USE (ftruncate, "ftruncate is unportable - " | 1096 | _GL_WARN_ON_USE (ftruncate, "ftruncate is unportable - " |
| 1119 | "use gnulib module ftruncate for portability"); | 1097 | "use gnulib module ftruncate for portability"); |
| @@ -1152,7 +1130,6 @@ _GL_CXXALIAS_SYS_CAST (getcwd, char *, (char *buf, size_t size)); | |||
| 1152 | # endif | 1130 | # endif |
| 1153 | _GL_CXXALIASWARN (getcwd); | 1131 | _GL_CXXALIASWARN (getcwd); |
| 1154 | #elif defined GNULIB_POSIXCHECK | 1132 | #elif defined GNULIB_POSIXCHECK |
| 1155 | # undef getcwd | ||
| 1156 | # if HAVE_RAW_DECL_GETCWD | 1133 | # if HAVE_RAW_DECL_GETCWD |
| 1157 | _GL_WARN_ON_USE (getcwd, "getcwd is unportable - " | 1134 | _GL_WARN_ON_USE (getcwd, "getcwd is unportable - " |
| 1158 | "use gnulib module getcwd for portability"); | 1135 | "use gnulib module getcwd for portability"); |
| @@ -1210,7 +1187,6 @@ _GL_CXXALIAS_SYS (getdomainname, int, | |||
| 1210 | _GL_CXXALIASWARN (getdomainname); | 1187 | _GL_CXXALIASWARN (getdomainname); |
| 1211 | # endif | 1188 | # endif |
| 1212 | #elif defined GNULIB_POSIXCHECK | 1189 | #elif defined GNULIB_POSIXCHECK |
| 1213 | # undef getdomainname | ||
| 1214 | # if HAVE_RAW_DECL_GETDOMAINNAME | 1190 | # if HAVE_RAW_DECL_GETDOMAINNAME |
| 1215 | _GL_WARN_ON_USE (getdomainname, "getdomainname is unportable - " | 1191 | _GL_WARN_ON_USE (getdomainname, "getdomainname is unportable - " |
| 1216 | "use gnulib module getdomainname for portability"); | 1192 | "use gnulib module getdomainname for portability"); |
| @@ -1238,7 +1214,6 @@ _GL_CXXALIAS_SYS_CAST (getdtablesize, int, (void)); | |||
| 1238 | # endif | 1214 | # endif |
| 1239 | _GL_CXXALIASWARN (getdtablesize); | 1215 | _GL_CXXALIASWARN (getdtablesize); |
| 1240 | #elif defined GNULIB_POSIXCHECK | 1216 | #elif defined GNULIB_POSIXCHECK |
| 1241 | # undef getdtablesize | ||
| 1242 | # if HAVE_RAW_DECL_GETDTABLESIZE | 1217 | # if HAVE_RAW_DECL_GETDTABLESIZE |
| 1243 | _GL_WARN_ON_USE (getdtablesize, "getdtablesize is unportable - " | 1218 | _GL_WARN_ON_USE (getdtablesize, "getdtablesize is unportable - " |
| 1244 | "use gnulib module getdtablesize for portability"); | 1219 | "use gnulib module getdtablesize for portability"); |
| @@ -1269,7 +1244,6 @@ _GL_CXXALIAS_SYS (getentropy, int, | |||
| 1269 | _GL_CXXALIASWARN (getentropy); | 1244 | _GL_CXXALIASWARN (getentropy); |
| 1270 | # endif | 1245 | # endif |
| 1271 | #elif defined GNULIB_POSIXCHECK | 1246 | #elif defined GNULIB_POSIXCHECK |
| 1272 | # undef getentropy | ||
| 1273 | # if HAVE_RAW_DECL_GETENTROPY | 1247 | # if HAVE_RAW_DECL_GETENTROPY |
| 1274 | _GL_WARN_ON_USE (getentropy, "getentropy is unportable - " | 1248 | _GL_WARN_ON_USE (getentropy, "getentropy is unportable - " |
| 1275 | "use gnulib module getentropy for portability"); | 1249 | "use gnulib module getentropy for portability"); |
| @@ -1302,7 +1276,6 @@ _GL_CXXALIAS_SYS (getgroups, int, | |||
| 1302 | # endif | 1276 | # endif |
| 1303 | _GL_CXXALIASWARN (getgroups); | 1277 | _GL_CXXALIASWARN (getgroups); |
| 1304 | #elif defined GNULIB_POSIXCHECK | 1278 | #elif defined GNULIB_POSIXCHECK |
| 1305 | # undef getgroups | ||
| 1306 | # if HAVE_RAW_DECL_GETGROUPS | 1279 | # if HAVE_RAW_DECL_GETGROUPS |
| 1307 | _GL_WARN_ON_USE (getgroups, "getgroups is unportable - " | 1280 | _GL_WARN_ON_USE (getgroups, "getgroups is unportable - " |
| 1308 | "use gnulib module getgroups for portability"); | 1281 | "use gnulib module getgroups for portability"); |
| @@ -1342,7 +1315,6 @@ _GL_CXXALIASWARN (gethostname); | |||
| 1342 | # define gethostname gethostname_used_without_requesting_gnulib_module_gethostname | 1315 | # define gethostname gethostname_used_without_requesting_gnulib_module_gethostname |
| 1343 | # endif | 1316 | # endif |
| 1344 | #elif defined GNULIB_POSIXCHECK | 1317 | #elif defined GNULIB_POSIXCHECK |
| 1345 | # undef gethostname | ||
| 1346 | # if HAVE_RAW_DECL_GETHOSTNAME | 1318 | # if HAVE_RAW_DECL_GETHOSTNAME |
| 1347 | _GL_WARN_ON_USE (gethostname, "gethostname is unportable - " | 1319 | _GL_WARN_ON_USE (gethostname, "gethostname is unportable - " |
| 1348 | "use gnulib module gethostname for portability"); | 1320 | "use gnulib module gethostname for portability"); |
| @@ -1377,7 +1349,6 @@ _GL_CXXALIAS_SYS (getlogin, char *, (void)); | |||
| 1377 | _GL_CXXALIASWARN (getlogin); | 1349 | _GL_CXXALIASWARN (getlogin); |
| 1378 | # endif | 1350 | # endif |
| 1379 | #elif defined GNULIB_POSIXCHECK | 1351 | #elif defined GNULIB_POSIXCHECK |
| 1380 | # undef getlogin | ||
| 1381 | # if HAVE_RAW_DECL_GETLOGIN | 1352 | # if HAVE_RAW_DECL_GETLOGIN |
| 1382 | _GL_WARN_ON_USE (getlogin, "getlogin is unportable - " | 1353 | _GL_WARN_ON_USE (getlogin, "getlogin is unportable - " |
| 1383 | "use gnulib module getlogin for portability"); | 1354 | "use gnulib module getlogin for portability"); |
| @@ -1420,7 +1391,6 @@ _GL_CXXALIAS_SYS_CAST (getlogin_r, int, (char *name, size_t size)); | |||
| 1420 | _GL_CXXALIASWARN (getlogin_r); | 1391 | _GL_CXXALIASWARN (getlogin_r); |
| 1421 | # endif | 1392 | # endif |
| 1422 | #elif defined GNULIB_POSIXCHECK | 1393 | #elif defined GNULIB_POSIXCHECK |
| 1423 | # undef getlogin_r | ||
| 1424 | # if HAVE_RAW_DECL_GETLOGIN_R | 1394 | # if HAVE_RAW_DECL_GETLOGIN_R |
| 1425 | _GL_WARN_ON_USE (getlogin_r, "getlogin_r is unportable - " | 1395 | _GL_WARN_ON_USE (getlogin_r, "getlogin_r is unportable - " |
| 1426 | "use gnulib module getlogin_r for portability"); | 1396 | "use gnulib module getlogin_r for portability"); |
| @@ -1507,7 +1477,6 @@ _GL_CXXALIAS_SYS_CAST (getpagesize, int, (void)); | |||
| 1507 | _GL_CXXALIASWARN (getpagesize); | 1477 | _GL_CXXALIASWARN (getpagesize); |
| 1508 | # endif | 1478 | # endif |
| 1509 | #elif defined GNULIB_POSIXCHECK | 1479 | #elif defined GNULIB_POSIXCHECK |
| 1510 | # undef getpagesize | ||
| 1511 | # if HAVE_RAW_DECL_GETPAGESIZE | 1480 | # if HAVE_RAW_DECL_GETPAGESIZE |
| 1512 | _GL_WARN_ON_USE (getpagesize, "getpagesize is unportable - " | 1481 | _GL_WARN_ON_USE (getpagesize, "getpagesize is unportable - " |
| 1513 | "use gnulib module getpagesize for portability"); | 1482 | "use gnulib module getpagesize for portability"); |
| @@ -1538,7 +1507,6 @@ _GL_CXXALIAS_SYS (getpass, char *, (const char *prompt)); | |||
| 1538 | # endif | 1507 | # endif |
| 1539 | _GL_CXXALIASWARN (getpass); | 1508 | _GL_CXXALIASWARN (getpass); |
| 1540 | #elif defined GNULIB_POSIXCHECK | 1509 | #elif defined GNULIB_POSIXCHECK |
| 1541 | # undef getpass | ||
| 1542 | # if HAVE_RAW_DECL_GETPASS | 1510 | # if HAVE_RAW_DECL_GETPASS |
| 1543 | _GL_WARN_ON_USE (getpass, "getpass is unportable - " | 1511 | _GL_WARN_ON_USE (getpass, "getpass is unportable - " |
| 1544 | "use gnulib module getpass or getpass-gnu for portability"); | 1512 | "use gnulib module getpass or getpass-gnu for portability"); |
| @@ -1581,7 +1549,6 @@ _GL_CXXALIAS_SYS (getusershell, char *, (void)); | |||
| 1581 | # endif | 1549 | # endif |
| 1582 | _GL_CXXALIASWARN (getusershell); | 1550 | _GL_CXXALIASWARN (getusershell); |
| 1583 | #elif defined GNULIB_POSIXCHECK | 1551 | #elif defined GNULIB_POSIXCHECK |
| 1584 | # undef getusershell | ||
| 1585 | # if HAVE_RAW_DECL_GETUSERSHELL | 1552 | # if HAVE_RAW_DECL_GETUSERSHELL |
| 1586 | _GL_WARN_ON_USE (getusershell, "getusershell is unportable - " | 1553 | _GL_WARN_ON_USE (getusershell, "getusershell is unportable - " |
| 1587 | "use gnulib module getusershell for portability"); | 1554 | "use gnulib module getusershell for portability"); |
| @@ -1605,7 +1572,6 @@ _GL_CXXALIAS_SYS (setusershell, void, (void)); | |||
| 1605 | # endif | 1572 | # endif |
| 1606 | _GL_CXXALIASWARN (setusershell); | 1573 | _GL_CXXALIASWARN (setusershell); |
| 1607 | #elif defined GNULIB_POSIXCHECK | 1574 | #elif defined GNULIB_POSIXCHECK |
| 1608 | # undef setusershell | ||
| 1609 | # if HAVE_RAW_DECL_SETUSERSHELL | 1575 | # if HAVE_RAW_DECL_SETUSERSHELL |
| 1610 | _GL_WARN_ON_USE (setusershell, "setusershell is unportable - " | 1576 | _GL_WARN_ON_USE (setusershell, "setusershell is unportable - " |
| 1611 | "use gnulib module getusershell for portability"); | 1577 | "use gnulib module getusershell for portability"); |
| @@ -1630,7 +1596,6 @@ _GL_CXXALIAS_SYS (endusershell, void, (void)); | |||
| 1630 | # endif | 1596 | # endif |
| 1631 | _GL_CXXALIASWARN (endusershell); | 1597 | _GL_CXXALIASWARN (endusershell); |
| 1632 | #elif defined GNULIB_POSIXCHECK | 1598 | #elif defined GNULIB_POSIXCHECK |
| 1633 | # undef endusershell | ||
| 1634 | # if HAVE_RAW_DECL_ENDUSERSHELL | 1599 | # if HAVE_RAW_DECL_ENDUSERSHELL |
| 1635 | _GL_WARN_ON_USE (endusershell, "endusershell is unportable - " | 1600 | _GL_WARN_ON_USE (endusershell, "endusershell is unportable - " |
| 1636 | "use gnulib module getusershell for portability"); | 1601 | "use gnulib module getusershell for portability"); |
| @@ -1646,7 +1611,6 @@ _GL_FUNCDECL_SYS (group_member, int, (gid_t gid), ); | |||
| 1646 | _GL_CXXALIAS_SYS (group_member, int, (gid_t gid)); | 1611 | _GL_CXXALIAS_SYS (group_member, int, (gid_t gid)); |
| 1647 | _GL_CXXALIASWARN (group_member); | 1612 | _GL_CXXALIASWARN (group_member); |
| 1648 | #elif defined GNULIB_POSIXCHECK | 1613 | #elif defined GNULIB_POSIXCHECK |
| 1649 | # undef group_member | ||
| 1650 | # if HAVE_RAW_DECL_GROUP_MEMBER | 1614 | # if HAVE_RAW_DECL_GROUP_MEMBER |
| 1651 | _GL_WARN_ON_USE (group_member, "group_member is unportable - " | 1615 | _GL_WARN_ON_USE (group_member, "group_member is unportable - " |
| 1652 | "use gnulib module group-member for portability"); | 1616 | "use gnulib module group-member for portability"); |
| @@ -1674,7 +1638,6 @@ _GL_CXXALIAS_SYS (isatty, int, (int fd)); | |||
| 1674 | # endif | 1638 | # endif |
| 1675 | _GL_CXXALIASWARN (isatty); | 1639 | _GL_CXXALIASWARN (isatty); |
| 1676 | #elif defined GNULIB_POSIXCHECK | 1640 | #elif defined GNULIB_POSIXCHECK |
| 1677 | # undef isatty | ||
| 1678 | # if HAVE_RAW_DECL_ISATTY | 1641 | # if HAVE_RAW_DECL_ISATTY |
| 1679 | _GL_WARN_ON_USE (isatty, "isatty has portability problems on native Windows - " | 1642 | _GL_WARN_ON_USE (isatty, "isatty has portability problems on native Windows - " |
| 1680 | "use gnulib module isatty for portability"); | 1643 | "use gnulib module isatty for portability"); |
| @@ -1719,7 +1682,6 @@ _GL_CXXALIAS_SYS (lchown, int, (char const *file, uid_t owner, gid_t group)); | |||
| 1719 | # endif | 1682 | # endif |
| 1720 | _GL_CXXALIASWARN (lchown); | 1683 | _GL_CXXALIASWARN (lchown); |
| 1721 | #elif defined GNULIB_POSIXCHECK | 1684 | #elif defined GNULIB_POSIXCHECK |
| 1722 | # undef lchown | ||
| 1723 | # if HAVE_RAW_DECL_LCHOWN | 1685 | # if HAVE_RAW_DECL_LCHOWN |
| 1724 | _GL_WARN_ON_USE (lchown, "lchown is unportable to pre-POSIX.1-2001 systems - " | 1686 | _GL_WARN_ON_USE (lchown, "lchown is unportable to pre-POSIX.1-2001 systems - " |
| 1725 | "use gnulib module lchown for portability"); | 1687 | "use gnulib module lchown for portability"); |
| @@ -1748,7 +1710,6 @@ _GL_CXXALIAS_SYS (link, int, (const char *path1, const char *path2)); | |||
| 1748 | # endif | 1710 | # endif |
| 1749 | _GL_CXXALIASWARN (link); | 1711 | _GL_CXXALIASWARN (link); |
| 1750 | #elif defined GNULIB_POSIXCHECK | 1712 | #elif defined GNULIB_POSIXCHECK |
| 1751 | # undef link | ||
| 1752 | # if HAVE_RAW_DECL_LINK | 1713 | # if HAVE_RAW_DECL_LINK |
| 1753 | _GL_WARN_ON_USE (link, "link is unportable - " | 1714 | _GL_WARN_ON_USE (link, "link is unportable - " |
| 1754 | "use gnulib module link for portability"); | 1715 | "use gnulib module link for portability"); |
| @@ -1787,7 +1748,6 @@ _GL_CXXALIAS_SYS (linkat, int, | |||
| 1787 | _GL_CXXALIASWARN (linkat); | 1748 | _GL_CXXALIASWARN (linkat); |
| 1788 | # endif | 1749 | # endif |
| 1789 | #elif defined GNULIB_POSIXCHECK | 1750 | #elif defined GNULIB_POSIXCHECK |
| 1790 | # undef linkat | ||
| 1791 | # if HAVE_RAW_DECL_LINKAT | 1751 | # if HAVE_RAW_DECL_LINKAT |
| 1792 | _GL_WARN_ON_USE (linkat, "linkat is unportable - " | 1752 | _GL_WARN_ON_USE (linkat, "linkat is unportable - " |
| 1793 | "use gnulib module linkat for portability"); | 1753 | "use gnulib module linkat for portability"); |
| @@ -1817,7 +1777,6 @@ _GL_CXXALIAS_SYS (lseek, off_t, (int fd, off_t offset, int whence)); | |||
| 1817 | # endif | 1777 | # endif |
| 1818 | _GL_CXXALIASWARN (lseek); | 1778 | _GL_CXXALIASWARN (lseek); |
| 1819 | #elif defined GNULIB_POSIXCHECK | 1779 | #elif defined GNULIB_POSIXCHECK |
| 1820 | # undef lseek | ||
| 1821 | # if HAVE_RAW_DECL_LSEEK | 1780 | # if HAVE_RAW_DECL_LSEEK |
| 1822 | _GL_WARN_ON_USE (lseek, "lseek does not fail with ESPIPE on pipes on some " | 1781 | _GL_WARN_ON_USE (lseek, "lseek does not fail with ESPIPE on pipes on some " |
| 1823 | "systems - use gnulib module lseek for portability"); | 1782 | "systems - use gnulib module lseek for portability"); |
| @@ -1850,7 +1809,6 @@ _GL_FUNCDECL_SYS (pipe, int, (int fd[2]), | |||
| 1850 | _GL_CXXALIAS_SYS (pipe, int, (int fd[2])); | 1809 | _GL_CXXALIAS_SYS (pipe, int, (int fd[2])); |
| 1851 | _GL_CXXALIASWARN (pipe); | 1810 | _GL_CXXALIASWARN (pipe); |
| 1852 | #elif defined GNULIB_POSIXCHECK | 1811 | #elif defined GNULIB_POSIXCHECK |
| 1853 | # undef pipe | ||
| 1854 | # if HAVE_RAW_DECL_PIPE | 1812 | # if HAVE_RAW_DECL_PIPE |
| 1855 | _GL_WARN_ON_USE (pipe, "pipe is unportable - " | 1813 | _GL_WARN_ON_USE (pipe, "pipe is unportable - " |
| 1856 | "use gnulib module pipe-posix for portability"); | 1814 | "use gnulib module pipe-posix for portability"); |
| @@ -1884,7 +1842,6 @@ _GL_CXXALIAS_SYS (pipe2, int, (int fd[2], int flags)); | |||
| 1884 | _GL_CXXALIASWARN (pipe2); | 1842 | _GL_CXXALIASWARN (pipe2); |
| 1885 | # endif | 1843 | # endif |
| 1886 | #elif defined GNULIB_POSIXCHECK | 1844 | #elif defined GNULIB_POSIXCHECK |
| 1887 | # undef pipe2 | ||
| 1888 | # if HAVE_RAW_DECL_PIPE2 | 1845 | # if HAVE_RAW_DECL_PIPE2 |
| 1889 | _GL_WARN_ON_USE (pipe2, "pipe2 is unportable - " | 1846 | _GL_WARN_ON_USE (pipe2, "pipe2 is unportable - " |
| 1890 | "use gnulib module pipe2 for portability"); | 1847 | "use gnulib module pipe2 for portability"); |
| @@ -1921,7 +1878,6 @@ _GL_CXXALIAS_SYS (pread, ssize_t, | |||
| 1921 | _GL_CXXALIASWARN (pread); | 1878 | _GL_CXXALIASWARN (pread); |
| 1922 | # endif | 1879 | # endif |
| 1923 | #elif defined GNULIB_POSIXCHECK | 1880 | #elif defined GNULIB_POSIXCHECK |
| 1924 | # undef pread | ||
| 1925 | # if HAVE_RAW_DECL_PREAD | 1881 | # if HAVE_RAW_DECL_PREAD |
| 1926 | _GL_WARN_ON_USE (pread, "pread is unportable - " | 1882 | _GL_WARN_ON_USE (pread, "pread is unportable - " |
| 1927 | "use gnulib module pread for portability"); | 1883 | "use gnulib module pread for portability"); |
| @@ -1958,7 +1914,6 @@ _GL_CXXALIAS_SYS (pwrite, ssize_t, | |||
| 1958 | _GL_CXXALIASWARN (pwrite); | 1914 | _GL_CXXALIASWARN (pwrite); |
| 1959 | # endif | 1915 | # endif |
| 1960 | #elif defined GNULIB_POSIXCHECK | 1916 | #elif defined GNULIB_POSIXCHECK |
| 1961 | # undef pwrite | ||
| 1962 | # if HAVE_RAW_DECL_PWRITE | 1917 | # if HAVE_RAW_DECL_PWRITE |
| 1963 | _GL_WARN_ON_USE (pwrite, "pwrite is unportable - " | 1918 | _GL_WARN_ON_USE (pwrite, "pwrite is unportable - " |
| 1964 | "use gnulib module pwrite for portability"); | 1919 | "use gnulib module pwrite for portability"); |
| @@ -2036,7 +1991,6 @@ _GL_CXXALIAS_SYS (readlink, ssize_t, | |||
| 2036 | # endif | 1991 | # endif |
| 2037 | _GL_CXXALIASWARN (readlink); | 1992 | _GL_CXXALIASWARN (readlink); |
| 2038 | #elif defined GNULIB_POSIXCHECK | 1993 | #elif defined GNULIB_POSIXCHECK |
| 2039 | # undef readlink | ||
| 2040 | # if HAVE_RAW_DECL_READLINK | 1994 | # if HAVE_RAW_DECL_READLINK |
| 2041 | _GL_WARN_ON_USE (readlink, "readlink is unportable - " | 1995 | _GL_WARN_ON_USE (readlink, "readlink is unportable - " |
| 2042 | "use gnulib module readlink for portability"); | 1996 | "use gnulib module readlink for portability"); |
| @@ -2071,7 +2025,6 @@ _GL_CXXALIAS_SYS (readlinkat, ssize_t, | |||
| 2071 | _GL_CXXALIASWARN (readlinkat); | 2025 | _GL_CXXALIASWARN (readlinkat); |
| 2072 | # endif | 2026 | # endif |
| 2073 | #elif defined GNULIB_POSIXCHECK | 2027 | #elif defined GNULIB_POSIXCHECK |
| 2074 | # undef readlinkat | ||
| 2075 | # if HAVE_RAW_DECL_READLINKAT | 2028 | # if HAVE_RAW_DECL_READLINKAT |
| 2076 | _GL_WARN_ON_USE (readlinkat, "readlinkat is not portable - " | 2029 | _GL_WARN_ON_USE (readlinkat, "readlinkat is not portable - " |
| 2077 | "use gnulib module readlinkat for portability"); | 2030 | "use gnulib module readlinkat for portability"); |
| @@ -2098,7 +2051,6 @@ _GL_CXXALIAS_SYS (rmdir, int, (char const *name)); | |||
| 2098 | # endif | 2051 | # endif |
| 2099 | _GL_CXXALIASWARN (rmdir); | 2052 | _GL_CXXALIASWARN (rmdir); |
| 2100 | #elif defined GNULIB_POSIXCHECK | 2053 | #elif defined GNULIB_POSIXCHECK |
| 2101 | # undef rmdir | ||
| 2102 | # if HAVE_RAW_DECL_RMDIR | 2054 | # if HAVE_RAW_DECL_RMDIR |
| 2103 | _GL_WARN_ON_USE (rmdir, "rmdir is unportable - " | 2055 | _GL_WARN_ON_USE (rmdir, "rmdir is unportable - " |
| 2104 | "use gnulib module rmdir for portability"); | 2056 | "use gnulib module rmdir for portability"); |
| @@ -2155,7 +2107,6 @@ _GL_CXXALIAS_SYS_CAST (sethostname, int, | |||
| 2155 | _GL_CXXALIASWARN (sethostname); | 2107 | _GL_CXXALIASWARN (sethostname); |
| 2156 | # endif | 2108 | # endif |
| 2157 | #elif defined GNULIB_POSIXCHECK | 2109 | #elif defined GNULIB_POSIXCHECK |
| 2158 | # undef sethostname | ||
| 2159 | # if HAVE_RAW_DECL_SETHOSTNAME | 2110 | # if HAVE_RAW_DECL_SETHOSTNAME |
| 2160 | _GL_WARN_ON_USE (sethostname, "sethostname is unportable - " | 2111 | _GL_WARN_ON_USE (sethostname, "sethostname is unportable - " |
| 2161 | "use gnulib module sethostname for portability"); | 2112 | "use gnulib module sethostname for portability"); |
| @@ -2183,7 +2134,6 @@ _GL_CXXALIAS_SYS (sleep, unsigned int, (unsigned int n)); | |||
| 2183 | # endif | 2134 | # endif |
| 2184 | _GL_CXXALIASWARN (sleep); | 2135 | _GL_CXXALIASWARN (sleep); |
| 2185 | #elif defined GNULIB_POSIXCHECK | 2136 | #elif defined GNULIB_POSIXCHECK |
| 2186 | # undef sleep | ||
| 2187 | # if HAVE_RAW_DECL_SLEEP | 2137 | # if HAVE_RAW_DECL_SLEEP |
| 2188 | _GL_WARN_ON_USE (sleep, "sleep is unportable - " | 2138 | _GL_WARN_ON_USE (sleep, "sleep is unportable - " |
| 2189 | "use gnulib module sleep for portability"); | 2139 | "use gnulib module sleep for portability"); |
| @@ -2238,7 +2188,6 @@ _GL_CXXALIAS_SYS (symlink, int, | |||
| 2238 | # endif | 2188 | # endif |
| 2239 | _GL_CXXALIASWARN (symlink); | 2189 | _GL_CXXALIASWARN (symlink); |
| 2240 | #elif defined GNULIB_POSIXCHECK | 2190 | #elif defined GNULIB_POSIXCHECK |
| 2241 | # undef symlink | ||
| 2242 | # if HAVE_RAW_DECL_SYMLINK | 2191 | # if HAVE_RAW_DECL_SYMLINK |
| 2243 | _GL_WARN_ON_USE (symlink, "symlink is not portable - " | 2192 | _GL_WARN_ON_USE (symlink, "symlink is not portable - " |
| 2244 | "use gnulib module symlink for portability"); | 2193 | "use gnulib module symlink for portability"); |
| @@ -2270,7 +2219,6 @@ _GL_CXXALIAS_SYS (symlinkat, int, | |||
| 2270 | _GL_CXXALIASWARN (symlinkat); | 2219 | _GL_CXXALIASWARN (symlinkat); |
| 2271 | # endif | 2220 | # endif |
| 2272 | #elif defined GNULIB_POSIXCHECK | 2221 | #elif defined GNULIB_POSIXCHECK |
| 2273 | # undef symlinkat | ||
| 2274 | # if HAVE_RAW_DECL_SYMLINKAT | 2222 | # if HAVE_RAW_DECL_SYMLINKAT |
| 2275 | _GL_WARN_ON_USE (symlinkat, "symlinkat is not portable - " | 2223 | _GL_WARN_ON_USE (symlinkat, "symlinkat is not portable - " |
| 2276 | "use gnulib module symlinkat for portability"); | 2224 | "use gnulib module symlinkat for portability"); |
| @@ -2302,7 +2250,6 @@ _GL_CXXALIAS_SYS (truncate, int, (const char *filename, off_t length)); | |||
| 2302 | _GL_CXXALIASWARN (truncate); | 2250 | _GL_CXXALIASWARN (truncate); |
| 2303 | # endif | 2251 | # endif |
| 2304 | #elif defined GNULIB_POSIXCHECK | 2252 | #elif defined GNULIB_POSIXCHECK |
| 2305 | # undef truncate | ||
| 2306 | # if HAVE_RAW_DECL_TRUNCATE | 2253 | # if HAVE_RAW_DECL_TRUNCATE |
| 2307 | _GL_WARN_ON_USE (truncate, "truncate is unportable - " | 2254 | _GL_WARN_ON_USE (truncate, "truncate is unportable - " |
| 2308 | "use gnulib module truncate for portability"); | 2255 | "use gnulib module truncate for portability"); |
| @@ -2336,7 +2283,6 @@ _GL_CXXALIAS_SYS (ttyname_r, int, | |||
| 2336 | _GL_CXXALIASWARN (ttyname_r); | 2283 | _GL_CXXALIASWARN (ttyname_r); |
| 2337 | # endif | 2284 | # endif |
| 2338 | #elif defined GNULIB_POSIXCHECK | 2285 | #elif defined GNULIB_POSIXCHECK |
| 2339 | # undef ttyname_r | ||
| 2340 | # if HAVE_RAW_DECL_TTYNAME_R | 2286 | # if HAVE_RAW_DECL_TTYNAME_R |
| 2341 | _GL_WARN_ON_USE (ttyname_r, "ttyname_r is not portable - " | 2287 | _GL_WARN_ON_USE (ttyname_r, "ttyname_r is not portable - " |
| 2342 | "use gnulib module ttyname_r for portability"); | 2288 | "use gnulib module ttyname_r for portability"); |
| @@ -2363,7 +2309,6 @@ _GL_CXXALIAS_SYS (unlink, int, (char const *file)); | |||
| 2363 | # endif | 2309 | # endif |
| 2364 | _GL_CXXALIASWARN (unlink); | 2310 | _GL_CXXALIASWARN (unlink); |
| 2365 | #elif defined GNULIB_POSIXCHECK | 2311 | #elif defined GNULIB_POSIXCHECK |
| 2366 | # undef unlink | ||
| 2367 | # if HAVE_RAW_DECL_UNLINK | 2312 | # if HAVE_RAW_DECL_UNLINK |
| 2368 | _GL_WARN_ON_USE (unlink, "unlink is not portable - " | 2313 | _GL_WARN_ON_USE (unlink, "unlink is not portable - " |
| 2369 | "use gnulib module unlink for portability"); | 2314 | "use gnulib module unlink for portability"); |
| @@ -2403,7 +2348,6 @@ _GL_CXXALIAS_SYS (unlinkat, int, (int fd, char const *file, int flag)); | |||
| 2403 | # endif | 2348 | # endif |
| 2404 | _GL_CXXALIASWARN (unlinkat); | 2349 | _GL_CXXALIASWARN (unlinkat); |
| 2405 | #elif defined GNULIB_POSIXCHECK | 2350 | #elif defined GNULIB_POSIXCHECK |
| 2406 | # undef unlinkat | ||
| 2407 | # if HAVE_RAW_DECL_UNLINKAT | 2351 | # if HAVE_RAW_DECL_UNLINKAT |
| 2408 | _GL_WARN_ON_USE (unlinkat, "unlinkat is not portable - " | 2352 | _GL_WARN_ON_USE (unlinkat, "unlinkat is not portable - " |
| 2409 | "use gnulib module unlinkat for portability"); | 2353 | "use gnulib module unlinkat for portability"); |
| @@ -2433,7 +2377,6 @@ _GL_CXXALIAS_SYS_CAST (usleep, int, (useconds_t n)); | |||
| 2433 | # endif | 2377 | # endif |
| 2434 | _GL_CXXALIASWARN (usleep); | 2378 | _GL_CXXALIASWARN (usleep); |
| 2435 | #elif defined GNULIB_POSIXCHECK | 2379 | #elif defined GNULIB_POSIXCHECK |
| 2436 | # undef usleep | ||
| 2437 | # if HAVE_RAW_DECL_USLEEP | 2380 | # if HAVE_RAW_DECL_USLEEP |
| 2438 | _GL_WARN_ON_USE (usleep, "usleep is unportable - " | 2381 | _GL_WARN_ON_USE (usleep, "usleep is unportable - " |
| 2439 | "use gnulib module usleep for portability"); | 2382 | "use gnulib module usleep for portability"); |