diff options
Diffstat (limited to 'gl/stdio.in.h')
| -rw-r--r-- | gl/stdio.in.h | 84 |
1 files changed, 32 insertions, 52 deletions
diff --git a/gl/stdio.in.h b/gl/stdio.in.h index bc454454..33b0b8e4 100644 --- a/gl/stdio.in.h +++ b/gl/stdio.in.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* A GNU-like <stdio.h>. | 1 | /* A GNU-like <stdio.h>. |
| 2 | 2 | ||
| 3 | Copyright (C) 2004, 2007-2025 Free Software Foundation, Inc. | 3 | Copyright (C) 2004, 2007-2026 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is free software: you can redistribute it and/or modify | 5 | This file is free software: you can redistribute it and/or modify |
| 6 | it under the terms of the GNU Lesser General Public License as | 6 | it under the terms of the GNU Lesser General Public License as |
| @@ -22,12 +22,7 @@ | |||
| 22 | 22 | ||
| 23 | #if defined __need_FILE || defined __need___FILE || defined _@GUARD_PREFIX@_ALREADY_INCLUDING_STDIO_H || defined _GL_SKIP_GNULIB_STDIO_H | 23 | #if defined __need_FILE || defined __need___FILE || defined _@GUARD_PREFIX@_ALREADY_INCLUDING_STDIO_H || defined _GL_SKIP_GNULIB_STDIO_H |
| 24 | /* Special invocation convention: | 24 | /* Special invocation convention: |
| 25 | - Inside glibc header files. | 25 | - Inside glibc header files. */ |
| 26 | - On OSF/1 5.1 we have a sequence of nested includes | ||
| 27 | <stdio.h> -> <getopt.h> -> <ctype.h> -> <sys/localedef.h> -> | ||
| 28 | <sys/lc_core.h> -> <nl_types.h> -> <mesg.h> -> <stdio.h>. | ||
| 29 | In this situation, the functions are not yet declared, therefore we cannot | ||
| 30 | provide the C++ aliases. */ | ||
| 31 | 26 | ||
| 32 | #@INCLUDE_NEXT@ @NEXT_STDIO_H@ | 27 | #@INCLUDE_NEXT@ @NEXT_STDIO_H@ |
| 33 | 28 | ||
| @@ -269,10 +264,6 @@ | |||
| 269 | - with MSVC ucrt: "[-]nan" or "[-]nan(ind)" or "[-]nan(snan)", | 264 | - with MSVC ucrt: "[-]nan" or "[-]nan(ind)" or "[-]nan(snan)", |
| 270 | - with mingw: "[-]1.#IND" or "[-]1.#QNAN". */ | 265 | - with mingw: "[-]1.#IND" or "[-]1.#QNAN". */ |
| 271 | # define _PRINTF_NAN_LEN_MAX 10 | 266 | # define _PRINTF_NAN_LEN_MAX 10 |
| 272 | # elif defined __sgi | ||
| 273 | /* On IRIX, the output typically is "[-]nan0xNNNNNNNN" with 8 hexadecimal | ||
| 274 | digits. */ | ||
| 275 | # define _PRINTF_NAN_LEN_MAX 14 | ||
| 276 | # else | 267 | # else |
| 277 | /* We don't know, but 32 should be a safe maximum. */ | 268 | /* We don't know, but 32 should be a safe maximum. */ |
| 278 | # define _PRINTF_NAN_LEN_MAX 32 | 269 | # define _PRINTF_NAN_LEN_MAX 32 |
| @@ -347,7 +338,7 @@ _GL_CXXALIAS_SYS (dprintf, int, (int fd, const char *restrict format, ...)); | |||
| 347 | _GL_CXXALIASWARN (dprintf); | 338 | _GL_CXXALIASWARN (dprintf); |
| 348 | # endif | 339 | # endif |
| 349 | #elif defined GNULIB_POSIXCHECK | 340 | #elif defined GNULIB_POSIXCHECK |
| 350 | # undef dprintf | 341 | # undef dprintf /* https://lists.gnu.org/r/bug-gnulib/2025-11/msg00254.html */ |
| 351 | # if HAVE_RAW_DECL_DPRINTF | 342 | # if HAVE_RAW_DECL_DPRINTF |
| 352 | _GL_WARN_ON_USE (dprintf, "dprintf is unportable - " | 343 | _GL_WARN_ON_USE (dprintf, "dprintf is unportable - " |
| 353 | "use gnulib module dprintf for portability"); | 344 | "use gnulib module dprintf for portability"); |
| @@ -369,7 +360,6 @@ _GL_CXXALIAS_SYS (fclose, int, (FILE *stream)); | |||
| 369 | _GL_CXXALIASWARN (fclose); | 360 | _GL_CXXALIASWARN (fclose); |
| 370 | # endif | 361 | # endif |
| 371 | #elif defined GNULIB_POSIXCHECK | 362 | #elif defined GNULIB_POSIXCHECK |
| 372 | # undef fclose | ||
| 373 | /* Assume fclose is always declared. */ | 363 | /* Assume fclose is always declared. */ |
| 374 | _GL_WARN_ON_USE (fclose, "fclose is not always POSIX compliant - " | 364 | _GL_WARN_ON_USE (fclose, "fclose is not always POSIX compliant - " |
| 375 | "use gnulib module fclose for portable POSIX compliance"); | 365 | "use gnulib module fclose for portable POSIX compliance"); |
| @@ -456,7 +446,6 @@ _GL_FUNCDECL_SYS (fdopen, FILE *, | |||
| 456 | # endif | 446 | # endif |
| 457 | # endif | 447 | # endif |
| 458 | # if defined GNULIB_POSIXCHECK | 448 | # if defined GNULIB_POSIXCHECK |
| 459 | # undef fdopen | ||
| 460 | /* Assume fdopen is always declared. */ | 449 | /* Assume fdopen is always declared. */ |
| 461 | _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 - " |
| 462 | "use gnulib module fdopen for portability"); | 451 | "use gnulib module fdopen for portability"); |
| @@ -497,7 +486,6 @@ _GL_CXXALIAS_SYS (fflush, int, (FILE *gl_stream)); | |||
| 497 | _GL_CXXALIASWARN (fflush); | 486 | _GL_CXXALIASWARN (fflush); |
| 498 | # endif | 487 | # endif |
| 499 | #elif defined GNULIB_POSIXCHECK | 488 | #elif defined GNULIB_POSIXCHECK |
| 500 | # undef fflush | ||
| 501 | /* Assume fflush is always declared. */ | 489 | /* Assume fflush is always declared. */ |
| 502 | _GL_WARN_ON_USE (fflush, "fflush is not always POSIX compliant - " | 490 | _GL_WARN_ON_USE (fflush, "fflush is not always POSIX compliant - " |
| 503 | "use gnulib module fflush for portable POSIX compliance"); | 491 | "use gnulib module fflush for portable POSIX compliance"); |
| @@ -590,7 +578,6 @@ _GL_FUNCDECL_SYS (fopen, FILE *, | |||
| 590 | _GL_ARG_NONNULL ((1, 2)) _GL_ATTRIBUTE_DEALLOC (fclose, 1)); | 578 | _GL_ARG_NONNULL ((1, 2)) _GL_ATTRIBUTE_DEALLOC (fclose, 1)); |
| 591 | # endif | 579 | # endif |
| 592 | # if defined GNULIB_POSIXCHECK | 580 | # if defined GNULIB_POSIXCHECK |
| 593 | # undef fopen | ||
| 594 | /* Assume fopen is always declared. */ | 581 | /* Assume fopen is always declared. */ |
| 595 | _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 - " |
| 596 | "use gnulib module fopen for portability"); | 583 | "use gnulib module fopen for portability"); |
| @@ -650,9 +637,6 @@ _GL_CXXALIASWARN (fprintf); | |||
| 650 | # endif | 637 | # endif |
| 651 | #endif | 638 | #endif |
| 652 | #if !@GNULIB_FPRINTF_POSIX@ && defined GNULIB_POSIXCHECK | 639 | #if !@GNULIB_FPRINTF_POSIX@ && defined GNULIB_POSIXCHECK |
| 653 | # if !GNULIB_overrides_fprintf | ||
| 654 | # undef fprintf | ||
| 655 | # endif | ||
| 656 | /* Assume fprintf is always declared. */ | 640 | /* Assume fprintf is always declared. */ |
| 657 | _GL_WARN_ON_USE (fprintf, "fprintf is not always POSIX compliant - " | 641 | _GL_WARN_ON_USE (fprintf, "fprintf is not always POSIX compliant - " |
| 658 | "use gnulib module fprintf-posix for portable " | 642 | "use gnulib module fprintf-posix for portable " |
| @@ -682,7 +666,6 @@ _GL_CXXALIAS_SYS (fpurge, int, (FILE *gl_stream)); | |||
| 682 | _GL_CXXALIASWARN (fpurge); | 666 | _GL_CXXALIASWARN (fpurge); |
| 683 | # endif | 667 | # endif |
| 684 | #elif defined GNULIB_POSIXCHECK | 668 | #elif defined GNULIB_POSIXCHECK |
| 685 | # undef fpurge | ||
| 686 | # if HAVE_RAW_DECL_FPURGE | 669 | # if HAVE_RAW_DECL_FPURGE |
| 687 | _GL_WARN_ON_USE (fpurge, "fpurge is not always present - " | 670 | _GL_WARN_ON_USE (fpurge, "fpurge is not always present - " |
| 688 | "use gnulib module fpurge for portability"); | 671 | "use gnulib module fpurge for portability"); |
| @@ -770,7 +753,6 @@ _GL_CXXALIAS_SYS (freopen, FILE *, | |||
| 770 | _GL_CXXALIASWARN (freopen); | 753 | _GL_CXXALIASWARN (freopen); |
| 771 | # endif | 754 | # endif |
| 772 | #elif defined GNULIB_POSIXCHECK | 755 | #elif defined GNULIB_POSIXCHECK |
| 773 | # undef freopen | ||
| 774 | /* Assume freopen is always declared. */ | 756 | /* Assume freopen is always declared. */ |
| 775 | _GL_WARN_ON_USE (freopen, | 757 | _GL_WARN_ON_USE (freopen, |
| 776 | "freopen on native Windows platforms is not POSIX compliant - " | 758 | "freopen on native Windows platforms is not POSIX compliant - " |
| @@ -877,7 +859,6 @@ _GL_CXXALIASWARN (fseeko); | |||
| 877 | #elif defined GNULIB_POSIXCHECK | 859 | #elif defined GNULIB_POSIXCHECK |
| 878 | # define _GL_FSEEK_WARN /* Category 1, above. */ | 860 | # define _GL_FSEEK_WARN /* Category 1, above. */ |
| 879 | # undef fseek | 861 | # undef fseek |
| 880 | # undef fseeko | ||
| 881 | # if HAVE_RAW_DECL_FSEEKO | 862 | # if HAVE_RAW_DECL_FSEEKO |
| 882 | _GL_WARN_ON_USE (fseeko, "fseeko is unportable - " | 863 | _GL_WARN_ON_USE (fseeko, "fseeko is unportable - " |
| 883 | "use gnulib module fseeko for portability"); | 864 | "use gnulib module fseeko for portability"); |
| @@ -941,7 +922,6 @@ _GL_CXXALIASWARN (ftello); | |||
| 941 | #elif defined GNULIB_POSIXCHECK | 922 | #elif defined GNULIB_POSIXCHECK |
| 942 | # define _GL_FTELL_WARN /* Category 1, above. */ | 923 | # define _GL_FTELL_WARN /* Category 1, above. */ |
| 943 | # undef ftell | 924 | # undef ftell |
| 944 | # undef ftello | ||
| 945 | # if HAVE_RAW_DECL_FTELLO | 925 | # if HAVE_RAW_DECL_FTELLO |
| 946 | _GL_WARN_ON_USE (ftello, "ftello is unportable - " | 926 | _GL_WARN_ON_USE (ftello, "ftello is unportable - " |
| 947 | "use gnulib module ftello for portability"); | 927 | "use gnulib module ftello for portability"); |
| @@ -977,7 +957,7 @@ _GL_CXXALIAS_SYS (fwrite, size_t, | |||
| 977 | FILE *restrict stream)); | 957 | FILE *restrict stream)); |
| 978 | 958 | ||
| 979 | /* Work around bug 11959 when fortifying glibc 2.4 through 2.15 | 959 | /* Work around bug 11959 when fortifying glibc 2.4 through 2.15 |
| 980 | <https://sourceware.org/bugzilla/show_bug.cgi?id=11959>, | 960 | <https://sourceware.org/PR11959>, |
| 981 | which sometimes causes an unwanted diagnostic for fwrite calls. | 961 | which sometimes causes an unwanted diagnostic for fwrite calls. |
| 982 | This affects only function declaration attributes under certain | 962 | This affects only function declaration attributes under certain |
| 983 | versions of gcc and clang, and is not needed for C++. */ | 963 | versions of gcc and clang, and is not needed for C++. */ |
| @@ -1053,6 +1033,17 @@ _GL_CXXALIASWARN (getchar); | |||
| 1053 | # undef getdelim | 1033 | # undef getdelim |
| 1054 | # define getdelim rpl_getdelim | 1034 | # define getdelim rpl_getdelim |
| 1055 | # endif | 1035 | # endif |
| 1036 | # ifndef __has_feature | ||
| 1037 | # define __has_feature(a) 0 | ||
| 1038 | # endif | ||
| 1039 | # if __GLIBC__ >= 2 && !(defined __SANITIZE_ADDRESS__ \ | ||
| 1040 | || __has_feature (address_sanitizer)) | ||
| 1041 | /* Arrange for the inline definition of getline() in <bits/stdio.h> | ||
| 1042 | to call our getdelim() override. Do not use the __getdelim symbol | ||
| 1043 | if address sanitizer is in use, otherwise it may be overridden by | ||
| 1044 | __interceptor_trampoline___getdelim. */ | ||
| 1045 | # define rpl_getdelim __getdelim | ||
| 1046 | # endif | ||
| 1056 | _GL_FUNCDECL_RPL (getdelim, ssize_t, | 1047 | _GL_FUNCDECL_RPL (getdelim, ssize_t, |
| 1057 | (char **restrict lineptr, size_t *restrict linesize, | 1048 | (char **restrict lineptr, size_t *restrict linesize, |
| 1058 | int delimiter, | 1049 | int delimiter, |
| @@ -1079,7 +1070,6 @@ _GL_CXXALIAS_SYS (getdelim, ssize_t, | |||
| 1079 | _GL_CXXALIASWARN (getdelim); | 1070 | _GL_CXXALIASWARN (getdelim); |
| 1080 | # endif | 1071 | # endif |
| 1081 | #elif defined GNULIB_POSIXCHECK | 1072 | #elif defined GNULIB_POSIXCHECK |
| 1082 | # undef getdelim | ||
| 1083 | # if HAVE_RAW_DECL_GETDELIM | 1073 | # if HAVE_RAW_DECL_GETDELIM |
| 1084 | _GL_WARN_ON_USE (getdelim, "getdelim is unportable - " | 1074 | _GL_WARN_ON_USE (getdelim, "getdelim is unportable - " |
| 1085 | "use gnulib module getdelim for portability"); | 1075 | "use gnulib module getdelim for portability"); |
| @@ -1094,14 +1084,27 @@ _GL_WARN_ON_USE (getdelim, "getdelim is unportable - " | |||
| 1094 | Return the number of bytes read and stored at *LINEPTR (not including the | 1084 | Return the number of bytes read and stored at *LINEPTR (not including the |
| 1095 | NUL terminator), or -1 on error or EOF. */ | 1085 | NUL terminator), or -1 on error or EOF. */ |
| 1096 | # if @REPLACE_GETLINE@ | 1086 | # if @REPLACE_GETLINE@ |
| 1097 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 1098 | # undef getline | ||
| 1099 | # define getline rpl_getline | ||
| 1100 | # endif | ||
| 1101 | _GL_FUNCDECL_RPL (getline, ssize_t, | 1087 | _GL_FUNCDECL_RPL (getline, ssize_t, |
| 1102 | (char **restrict lineptr, size_t *restrict linesize, | 1088 | (char **restrict lineptr, size_t *restrict linesize, |
| 1103 | FILE *restrict stream), | 1089 | FILE *restrict stream), |
| 1104 | _GL_ARG_NONNULL ((1, 2, 3)) _GL_ATTRIBUTE_NODISCARD); | 1090 | _GL_ARG_NONNULL ((1, 2, 3)) _GL_ATTRIBUTE_NODISCARD); |
| 1091 | # if defined __cplusplus | ||
| 1092 | /* The C++ standard library defines std::basic_istream::getline in <istream> | ||
| 1093 | or <string>. */ | ||
| 1094 | # if !(__GLIBC__ >= 2) | ||
| 1095 | extern "C" { | ||
| 1096 | inline ssize_t | ||
| 1097 | getline (char **restrict lineptr, size_t *restrict linesize, | ||
| 1098 | FILE *restrict stream) | ||
| 1099 | { | ||
| 1100 | return rpl_getline (lineptr, linesize, stream); | ||
| 1101 | } | ||
| 1102 | } | ||
| 1103 | # endif | ||
| 1104 | # else | ||
| 1105 | # undef getline | ||
| 1106 | # define getline rpl_getline | ||
| 1107 | # endif | ||
| 1105 | _GL_CXXALIAS_RPL (getline, ssize_t, | 1108 | _GL_CXXALIAS_RPL (getline, ssize_t, |
| 1106 | (char **restrict lineptr, size_t *restrict linesize, | 1109 | (char **restrict lineptr, size_t *restrict linesize, |
| 1107 | FILE *restrict stream)); | 1110 | FILE *restrict stream)); |
| @@ -1120,7 +1123,6 @@ _GL_CXXALIAS_SYS (getline, ssize_t, | |||
| 1120 | _GL_CXXALIASWARN (getline); | 1123 | _GL_CXXALIASWARN (getline); |
| 1121 | # endif | 1124 | # endif |
| 1122 | #elif defined GNULIB_POSIXCHECK | 1125 | #elif defined GNULIB_POSIXCHECK |
| 1123 | # undef getline | ||
| 1124 | # if HAVE_RAW_DECL_GETLINE | 1126 | # if HAVE_RAW_DECL_GETLINE |
| 1125 | _GL_WARN_ON_USE (getline, "getline is unportable - " | 1127 | _GL_WARN_ON_USE (getline, "getline is unportable - " |
| 1126 | "use gnulib module getline for portability"); | 1128 | "use gnulib module getline for portability"); |
| @@ -1130,7 +1132,6 @@ _GL_WARN_ON_USE (getline, "getline is unportable - " | |||
| 1130 | /* 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, |
| 1131 | so any use of gets warrants an unconditional warning; besides, C11 | 1133 | so any use of gets warrants an unconditional warning; besides, C11 |
| 1132 | removed it. */ | 1134 | removed it. */ |
| 1133 | #undef gets | ||
| 1134 | #if HAVE_RAW_DECL_GETS && !defined __cplusplus | 1135 | #if HAVE_RAW_DECL_GETS && !defined __cplusplus |
| 1135 | _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"); |
| 1136 | #endif | 1137 | #endif |
| @@ -1243,7 +1244,6 @@ _GL_FUNCDECL_SYS (pclose, int, (FILE *stream), _GL_ARG_NONNULL ((1))); | |||
| 1243 | _GL_CXXALIAS_SYS (pclose, int, (FILE *stream)); | 1244 | _GL_CXXALIAS_SYS (pclose, int, (FILE *stream)); |
| 1244 | _GL_CXXALIASWARN (pclose); | 1245 | _GL_CXXALIASWARN (pclose); |
| 1245 | #elif defined GNULIB_POSIXCHECK | 1246 | #elif defined GNULIB_POSIXCHECK |
| 1246 | # undef pclose | ||
| 1247 | # if HAVE_RAW_DECL_PCLOSE | 1247 | # if HAVE_RAW_DECL_PCLOSE |
| 1248 | _GL_WARN_ON_USE (pclose, "pclose is unportable - " | 1248 | _GL_WARN_ON_USE (pclose, "pclose is unportable - " |
| 1249 | "use gnulib module pclose for more portability"); | 1249 | "use gnulib module pclose for more portability"); |
| @@ -1267,7 +1267,6 @@ _GL_CXXALIAS_SYS (perror, void, (const char *string)); | |||
| 1267 | _GL_CXXALIASWARN (perror); | 1267 | _GL_CXXALIASWARN (perror); |
| 1268 | # endif | 1268 | # endif |
| 1269 | #elif defined GNULIB_POSIXCHECK | 1269 | #elif defined GNULIB_POSIXCHECK |
| 1270 | # undef perror | ||
| 1271 | /* Assume perror is always declared. */ | 1270 | /* Assume perror is always declared. */ |
| 1272 | _GL_WARN_ON_USE (perror, "perror is not always POSIX compliant - " | 1271 | _GL_WARN_ON_USE (perror, "perror is not always POSIX compliant - " |
| 1273 | "use gnulib module perror for portability"); | 1272 | "use gnulib module perror for portability"); |
| @@ -1304,7 +1303,6 @@ _GL_FUNCDECL_SYS (popen, FILE *, | |||
| 1304 | _GL_ATTRIBUTE_MALLOC); | 1303 | _GL_ATTRIBUTE_MALLOC); |
| 1305 | # endif | 1304 | # endif |
| 1306 | # if defined GNULIB_POSIXCHECK | 1305 | # if defined GNULIB_POSIXCHECK |
| 1307 | # undef popen | ||
| 1308 | # if HAVE_RAW_DECL_POPEN | 1306 | # if HAVE_RAW_DECL_POPEN |
| 1309 | _GL_WARN_ON_USE (popen, "popen is buggy on some platforms - " | 1307 | _GL_WARN_ON_USE (popen, "popen is buggy on some platforms - " |
| 1310 | "use gnulib module popen or pipe for more portability"); | 1308 | "use gnulib module popen or pipe for more portability"); |
| @@ -1377,9 +1375,6 @@ _GL_CXXALIASWARN (printf); | |||
| 1377 | # endif | 1375 | # endif |
| 1378 | #endif | 1376 | #endif |
| 1379 | #if !@GNULIB_PRINTF_POSIX@ && defined GNULIB_POSIXCHECK | 1377 | #if !@GNULIB_PRINTF_POSIX@ && defined GNULIB_POSIXCHECK |
| 1380 | # if !GNULIB_overrides_printf | ||
| 1381 | # undef printf | ||
| 1382 | # endif | ||
| 1383 | /* Assume printf is always declared. */ | 1378 | /* Assume printf is always declared. */ |
| 1384 | _GL_WARN_ON_USE (printf, "printf is not always POSIX compliant - " | 1379 | _GL_WARN_ON_USE (printf, "printf is not always POSIX compliant - " |
| 1385 | "use gnulib module printf-posix for portable " | 1380 | "use gnulib module printf-posix for portable " |
| @@ -1473,7 +1468,6 @@ _GL_CXXALIAS_SYS (remove, int, (const char *name)); | |||
| 1473 | _GL_CXXALIASWARN (remove); | 1468 | _GL_CXXALIASWARN (remove); |
| 1474 | # endif | 1469 | # endif |
| 1475 | #elif defined GNULIB_POSIXCHECK | 1470 | #elif defined GNULIB_POSIXCHECK |
| 1476 | # undef remove | ||
| 1477 | /* Assume remove is always declared. */ | 1471 | /* Assume remove is always declared. */ |
| 1478 | _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 - " |
| 1479 | "use gnulib module remove for more portability"); | 1473 | "use gnulib module remove for more portability"); |
| @@ -1498,7 +1492,6 @@ _GL_CXXALIAS_SYS (rename, int, | |||
| 1498 | _GL_CXXALIASWARN (rename); | 1492 | _GL_CXXALIASWARN (rename); |
| 1499 | # endif | 1493 | # endif |
| 1500 | #elif defined GNULIB_POSIXCHECK | 1494 | #elif defined GNULIB_POSIXCHECK |
| 1501 | # undef rename | ||
| 1502 | /* Assume rename is always declared. */ | 1495 | /* Assume rename is always declared. */ |
| 1503 | _GL_WARN_ON_USE (rename, "rename is buggy on some platforms - " | 1496 | _GL_WARN_ON_USE (rename, "rename is buggy on some platforms - " |
| 1504 | "use gnulib module rename for more portability"); | 1497 | "use gnulib module rename for more portability"); |
| @@ -1526,7 +1519,6 @@ _GL_CXXALIAS_SYS (renameat, int, | |||
| 1526 | # endif | 1519 | # endif |
| 1527 | _GL_CXXALIASWARN (renameat); | 1520 | _GL_CXXALIASWARN (renameat); |
| 1528 | #elif defined GNULIB_POSIXCHECK | 1521 | #elif defined GNULIB_POSIXCHECK |
| 1529 | # undef renameat | ||
| 1530 | # if HAVE_RAW_DECL_RENAMEAT | 1522 | # if HAVE_RAW_DECL_RENAMEAT |
| 1531 | _GL_WARN_ON_USE (renameat, "renameat is not portable - " | 1523 | _GL_WARN_ON_USE (renameat, "renameat is not portable - " |
| 1532 | "use gnulib module renameat for portability"); | 1524 | "use gnulib module renameat for portability"); |
| @@ -1620,7 +1612,6 @@ _GL_CXXALIAS_SYS (snprintf, int, | |||
| 1620 | _GL_CXXALIASWARN (snprintf); | 1612 | _GL_CXXALIASWARN (snprintf); |
| 1621 | # endif | 1613 | # endif |
| 1622 | #elif defined GNULIB_POSIXCHECK | 1614 | #elif defined GNULIB_POSIXCHECK |
| 1623 | # undef snprintf | ||
| 1624 | # if HAVE_RAW_DECL_SNPRINTF | 1615 | # if HAVE_RAW_DECL_SNPRINTF |
| 1625 | _GL_WARN_ON_USE (snprintf, "snprintf is unportable - " | 1616 | _GL_WARN_ON_USE (snprintf, "snprintf is unportable - " |
| 1626 | "use gnulib module snprintf for portability"); | 1617 | "use gnulib module snprintf for portability"); |
| @@ -1676,7 +1667,6 @@ _GL_CXXALIAS_SYS (sprintf, int, | |||
| 1676 | _GL_CXXALIASWARN (sprintf); | 1667 | _GL_CXXALIASWARN (sprintf); |
| 1677 | # endif | 1668 | # endif |
| 1678 | #elif defined GNULIB_POSIXCHECK | 1669 | #elif defined GNULIB_POSIXCHECK |
| 1679 | # undef sprintf | ||
| 1680 | /* Assume sprintf is always declared. */ | 1670 | /* Assume sprintf is always declared. */ |
| 1681 | _GL_WARN_ON_USE (sprintf, "sprintf is not always POSIX compliant - " | 1671 | _GL_WARN_ON_USE (sprintf, "sprintf is not always POSIX compliant - " |
| 1682 | "use gnulib module sprintf-posix for portable " | 1672 | "use gnulib module sprintf-posix for portable " |
| @@ -1731,7 +1721,6 @@ _GL_FUNCDECL_SYS (tmpfile, FILE *, (void), | |||
| 1731 | _GL_ATTRIBUTE_MALLOC); | 1721 | _GL_ATTRIBUTE_MALLOC); |
| 1732 | # endif | 1722 | # endif |
| 1733 | # if defined GNULIB_POSIXCHECK | 1723 | # if defined GNULIB_POSIXCHECK |
| 1734 | # undef tmpfile | ||
| 1735 | # if HAVE_RAW_DECL_TMPFILE | 1724 | # if HAVE_RAW_DECL_TMPFILE |
| 1736 | _GL_WARN_ON_USE (tmpfile, "tmpfile is not usable on mingw - " | 1725 | _GL_WARN_ON_USE (tmpfile, "tmpfile is not usable on mingw - " |
| 1737 | "use gnulib module tmpfile for portability"); | 1726 | "use gnulib module tmpfile for portability"); |
| @@ -1865,7 +1854,6 @@ _GL_CXXALIAS_SYS_CAST (vdprintf, int, | |||
| 1865 | _GL_CXXALIASWARN (vdprintf); | 1854 | _GL_CXXALIASWARN (vdprintf); |
| 1866 | # endif | 1855 | # endif |
| 1867 | #elif defined GNULIB_POSIXCHECK | 1856 | #elif defined GNULIB_POSIXCHECK |
| 1868 | # undef vdprintf | ||
| 1869 | # if HAVE_RAW_DECL_VDPRINTF | 1857 | # if HAVE_RAW_DECL_VDPRINTF |
| 1870 | _GL_WARN_ON_USE (vdprintf, "vdprintf is unportable - " | 1858 | _GL_WARN_ON_USE (vdprintf, "vdprintf is unportable - " |
| 1871 | "use gnulib module vdprintf for portability"); | 1859 | "use gnulib module vdprintf for portability"); |
| @@ -1934,9 +1922,6 @@ _GL_CXXALIASWARN (vfprintf); | |||
| 1934 | # endif | 1922 | # endif |
| 1935 | #endif | 1923 | #endif |
| 1936 | #if !@GNULIB_VFPRINTF_POSIX@ && defined GNULIB_POSIXCHECK | 1924 | #if !@GNULIB_VFPRINTF_POSIX@ && defined GNULIB_POSIXCHECK |
| 1937 | # if !GNULIB_overrides_vfprintf | ||
| 1938 | # undef vfprintf | ||
| 1939 | # endif | ||
| 1940 | /* Assume vfprintf is always declared. */ | 1925 | /* Assume vfprintf is always declared. */ |
| 1941 | _GL_WARN_ON_USE (vfprintf, "vfprintf is not always POSIX compliant - " | 1926 | _GL_WARN_ON_USE (vfprintf, "vfprintf is not always POSIX compliant - " |
| 1942 | "use gnulib module vfprintf-posix for portable " | 1927 | "use gnulib module vfprintf-posix for portable " |
| @@ -2020,9 +2005,6 @@ _GL_CXXALIASWARN (vprintf); | |||
| 2020 | # endif | 2005 | # endif |
| 2021 | #endif | 2006 | #endif |
| 2022 | #if !@GNULIB_VPRINTF_POSIX@ && defined GNULIB_POSIXCHECK | 2007 | #if !@GNULIB_VPRINTF_POSIX@ && defined GNULIB_POSIXCHECK |
| 2023 | # if !GNULIB_overrides_vprintf | ||
| 2024 | # undef vprintf | ||
| 2025 | # endif | ||
| 2026 | /* Assume vprintf is always declared. */ | 2008 | /* Assume vprintf is always declared. */ |
| 2027 | _GL_WARN_ON_USE (vprintf, "vprintf is not always POSIX compliant - " | 2009 | _GL_WARN_ON_USE (vprintf, "vprintf is not always POSIX compliant - " |
| 2028 | "use gnulib module vprintf-posix for portable " | 2010 | "use gnulib module vprintf-posix for portable " |
| @@ -2101,7 +2083,6 @@ _GL_CXXALIAS_SYS (vsnprintf, int, | |||
| 2101 | _GL_CXXALIASWARN (vsnprintf); | 2083 | _GL_CXXALIASWARN (vsnprintf); |
| 2102 | # endif | 2084 | # endif |
| 2103 | #elif defined GNULIB_POSIXCHECK | 2085 | #elif defined GNULIB_POSIXCHECK |
| 2104 | # undef vsnprintf | ||
| 2105 | # if HAVE_RAW_DECL_VSNPRINTF | 2086 | # if HAVE_RAW_DECL_VSNPRINTF |
| 2106 | _GL_WARN_ON_USE (vsnprintf, "vsnprintf is unportable - " | 2087 | _GL_WARN_ON_USE (vsnprintf, "vsnprintf is unportable - " |
| 2107 | "use gnulib module vsnprintf for portability"); | 2088 | "use gnulib module vsnprintf for portability"); |
| @@ -2154,7 +2135,6 @@ _GL_CXXALIAS_SYS_CAST (vsprintf, int, | |||
| 2154 | _GL_CXXALIASWARN (vsprintf); | 2135 | _GL_CXXALIASWARN (vsprintf); |
| 2155 | # endif | 2136 | # endif |
| 2156 | #elif defined GNULIB_POSIXCHECK | 2137 | #elif defined GNULIB_POSIXCHECK |
| 2157 | # undef vsprintf | ||
| 2158 | /* Assume vsprintf is always declared. */ | 2138 | /* Assume vsprintf is always declared. */ |
| 2159 | _GL_WARN_ON_USE (vsprintf, "vsprintf is not always POSIX compliant - " | 2139 | _GL_WARN_ON_USE (vsprintf, "vsprintf is not always POSIX compliant - " |
| 2160 | "use gnulib module vsprintf-posix for portable " | 2140 | "use gnulib module vsprintf-posix for portable " |
