20 #pragma GCC system_header 24 #if defined __need_FILE || defined __need___FILE || defined _GL_ALREADY_INCLUDING_STDIO_H 33 #include_next <stdio.h> 40 #define _GL_ALREADY_INCLUDING_STDIO_H 43 #include_next <stdio.h> 45 #undef _GL_ALREADY_INCLUDING_STDIO_H 66 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) 67 # define _GL_ATTRIBUTE_FORMAT(spec) __attribute__ ((__format__ spec)) 69 # define _GL_ATTRIBUTE_FORMAT(spec) 76 #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) 77 # define _GL_ATTRIBUTE_FORMAT_PRINTF(formatstring_parameter, first_argument) \ 78 _GL_ATTRIBUTE_FORMAT ((__gnu_printf__, formatstring_parameter, first_argument)) 80 # define _GL_ATTRIBUTE_FORMAT_PRINTF(formatstring_parameter, first_argument) \ 81 _GL_ATTRIBUTE_FORMAT ((__printf__, formatstring_parameter, first_argument)) 88 #if GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 89 # define _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM(formatstring_parameter, first_argument) \ 90 _GL_ATTRIBUTE_FORMAT_PRINTF (formatstring_parameter, first_argument) 92 # define _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM(formatstring_parameter, first_argument) \ 93 _GL_ATTRIBUTE_FORMAT ((__printf__, formatstring_parameter, first_argument)) 100 #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) 101 # define _GL_ATTRIBUTE_FORMAT_SCANF(formatstring_parameter, first_argument) \ 102 _GL_ATTRIBUTE_FORMAT ((__gnu_scanf__, formatstring_parameter, first_argument)) 104 # define _GL_ATTRIBUTE_FORMAT_SCANF(formatstring_parameter, first_argument) \ 105 _GL_ATTRIBUTE_FORMAT ((__scanf__, formatstring_parameter, first_argument)) 112 #define _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM(formatstring_parameter, first_argument) \ 113 _GL_ATTRIBUTE_FORMAT ((__scanf__, formatstring_parameter, first_argument)) 117 #if (0 || defined GNULIB_POSIXCHECK) && defined __sun \ 118 && ! defined __GLIBC__ 124 #ifndef _GL_CXXDEFS_H 125 #define _GL_CXXDEFS_H 128 #if defined __cplusplus && defined GNULIB_NAMESPACE 129 # define _GL_BEGIN_NAMESPACE namespace GNULIB_NAMESPACE { 130 # define _GL_END_NAMESPACE } 132 # define _GL_BEGIN_NAMESPACE 133 # define _GL_END_NAMESPACE 197 #if defined __cplusplus 198 # define _GL_EXTERN_C extern "C" 200 # define _GL_EXTERN_C extern 210 #define _GL_FUNCDECL_RPL(func,rettype,parameters_and_attributes) \ 211 _GL_FUNCDECL_RPL_1 (rpl_##func, rettype, parameters_and_attributes) 212 #define _GL_FUNCDECL_RPL_1(rpl_func,rettype,parameters_and_attributes) \ 213 _GL_EXTERN_C rettype rpl_func parameters_and_attributes 222 #define _GL_FUNCDECL_SYS(func,rettype,parameters_and_attributes) \ 223 _GL_EXTERN_C rettype func parameters_and_attributes 234 #define _GL_CXXALIAS_RPL(func,rettype,parameters) \ 235 _GL_CXXALIAS_RPL_1 (func, rpl_##func, rettype, parameters) 236 #if defined __cplusplus && defined GNULIB_NAMESPACE 237 # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \ 238 namespace GNULIB_NAMESPACE \ 240 static const struct _gl_ ## func ## _wrapper \ 242 typedef rettype (*type) parameters; \ 243 inline type rpl () const { return ::rpl_func; } \ 244 inline operator type () const { return rpl (); } \ 247 _GL_EXTERN_C int _gl_cxxalias_dummy 249 # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \ 250 _GL_EXTERN_C int _gl_cxxalias_dummy 258 #if defined __cplusplus && defined GNULIB_NAMESPACE 259 # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \ 260 namespace GNULIB_NAMESPACE \ 262 static const struct _gl_ ## func ## _wrapper \ 264 typedef rettype (*type) parameters; \ 265 inline type rpl () const \ 266 { return reinterpret_cast<type>(::rpl_func); } \ 267 inline operator type () const { return rpl (); } \ 270 _GL_EXTERN_C int _gl_cxxalias_dummy 272 # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \ 273 _GL_EXTERN_C int _gl_cxxalias_dummy 286 #if defined __cplusplus && defined GNULIB_NAMESPACE 287 # define _GL_CXXALIAS_SYS(func,rettype,parameters) \ 288 namespace GNULIB_NAMESPACE \ 290 static const struct _gl_ ## func ## _wrapper \ 292 typedef rettype (*type) parameters; \ 293 inline type rpl () const { return ::func; } \ 294 inline operator type () const { return rpl (); } \ 297 _GL_EXTERN_C int _gl_cxxalias_dummy 299 # define _GL_CXXALIAS_SYS(func,rettype,parameters) \ 300 _GL_EXTERN_C int _gl_cxxalias_dummy 308 #if defined __cplusplus && defined GNULIB_NAMESPACE 309 # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \ 310 namespace GNULIB_NAMESPACE \ 312 static const struct _gl_ ## func ## _wrapper \ 314 typedef rettype (*type) parameters; \ 315 inline type rpl () const \ 316 { return reinterpret_cast<type>(::func); } \ 317 inline operator type () const { return rpl (); }\ 320 _GL_EXTERN_C int _gl_cxxalias_dummy 322 # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \ 323 _GL_EXTERN_C int _gl_cxxalias_dummy 332 #if defined __cplusplus && defined GNULIB_NAMESPACE 338 # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \ 339 namespace GNULIB_NAMESPACE \ 341 static const struct _gl_ ## func ## _wrapper \ 343 typedef rettype (*type) parameters; \ 345 inline type rpl () const \ 346 { return reinterpret_cast<type>((rettype2 (*) parameters2)(::func)); }\ 348 inline operator type () const { return rpl (); } \ 351 _GL_EXTERN_C int _gl_cxxalias_dummy 353 # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \ 354 _GL_EXTERN_C int _gl_cxxalias_dummy 361 #if defined __cplusplus && defined GNULIB_NAMESPACE 362 # define _GL_CXXALIASWARN(func) \ 363 _GL_CXXALIASWARN_1 (func, GNULIB_NAMESPACE) 364 # define _GL_CXXALIASWARN_1(func,namespace) \ 365 _GL_CXXALIASWARN_2 (func, namespace) 369 # define _GL_CXXALIASWARN_2(func,namespace) \ 370 _GL_WARN_ON_USE (func, \ 371 "The symbol ::" #func " refers to the system function. " \ 372 "Use " #namespace "::" #func " instead.") 373 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING 374 # define _GL_CXXALIASWARN_2(func,namespace) \ 375 extern __typeof__ (func) func 377 # define _GL_CXXALIASWARN_2(func,namespace) \ 378 _GL_EXTERN_C int _gl_cxxalias_dummy 381 # define _GL_CXXALIASWARN(func) \ 382 _GL_EXTERN_C int _gl_cxxalias_dummy 388 #if defined __cplusplus && defined GNULIB_NAMESPACE 389 # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \ 390 _GL_CXXALIASWARN1_1 (func, rettype, parameters_and_attributes, \ 392 # define _GL_CXXALIASWARN1_1(func,rettype,parameters_and_attributes,namespace) \ 393 _GL_CXXALIASWARN1_2 (func, rettype, parameters_and_attributes, namespace) 397 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \ 398 _GL_WARN_ON_USE_CXX (func, rettype, parameters_and_attributes, \ 399 "The symbol ::" #func " refers to the system function. " \ 400 "Use " #namespace "::" #func " instead.") 401 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING 402 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \ 403 extern __typeof__ (func) func 405 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \ 406 _GL_EXTERN_C int _gl_cxxalias_dummy 409 # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \ 410 _GL_EXTERN_C int _gl_cxxalias_dummy 419 #ifndef _GL_ARG_NONNULL 420 # if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || __GNUC__ > 3 421 # define _GL_ARG_NONNULL(params) __attribute__ ((__nonnull__ params)) 423 # define _GL_ARG_NONNULL(params) 428 #ifndef _GL_WARN_ON_USE 430 # if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) 432 # define _GL_WARN_ON_USE(function, message) \ 433 extern __typeof__ (function) function __attribute__ ((__warning__ (message))) 434 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING 436 # define _GL_WARN_ON_USE(function, message) \ 437 extern __typeof__ (function) function 439 # define _GL_WARN_ON_USE(function, message) \ 440 _GL_WARN_EXTERN_C int _gl_warn_on_use 450 #ifndef _GL_WARN_ON_USE_CXX 451 # if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) 452 # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \ 453 extern rettype function parameters_and_attributes \ 454 __attribute__ ((__warning__ (msg))) 455 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING 457 # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \ 458 extern rettype function parameters_and_attributes 460 # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \ 461 _GL_WARN_EXTERN_C int _gl_warn_on_use 467 #ifndef _GL_WARN_EXTERN_C 468 # if defined __cplusplus 469 # define _GL_WARN_EXTERN_C extern "C" 471 # define _GL_WARN_EXTERN_C extern 476 #define _GL_STDIO_STRINGIZE(token) #token 477 #define _GL_STDIO_MACROEXPAND_AND_STRINGIZE(token) _GL_STDIO_STRINGIZE(token) 484 #if (defined _GL_EXTERN_INLINE_IN_USE && defined __APPLE__ \ 485 && defined __GNUC__ && defined __STDC__) 486 # undef putc_unlocked 491 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 492 # define dprintf rpl_dprintf 507 #elif defined GNULIB_POSIXCHECK 509 # if HAVE_RAW_DECL_DPRINTF 511 "use gnulib module dprintf for portability");
518 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 519 # define fclose rpl_fclose 527 #elif defined GNULIB_POSIXCHECK 531 "use gnulib module fclose for portable POSIX compliance");
536 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 538 # define fdopen rpl_fdopen 547 #elif defined GNULIB_POSIXCHECK 550 _GL_WARN_ON_USE (fdopen,
"fdopen on native Windows platforms is not POSIX compliant - " 551 "use gnulib module fdopen for portability");
562 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 563 # define fflush rpl_fflush 571 #elif defined GNULIB_POSIXCHECK 575 "use gnulib module fflush for portable POSIX compliance");
580 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 582 # define fgetc rpl_fgetc 594 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 596 # define fgets rpl_fgets 609 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 611 # define fopen rpl_fopen 620 #elif defined GNULIB_POSIXCHECK 623 _GL_WARN_ON_USE (fopen,
"fopen on native Windows platforms is not POSIX compliant - " 624 "use gnulib module fopen for portability");
629 || (1 && 0 && (0 || 0)) 630 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 631 # define fprintf rpl_fprintf 633 # define GNULIB_overrides_fprintf 1 649 #if !0 && defined GNULIB_POSIXCHECK 650 # if !GNULIB_overrides_fprintf 655 "use gnulib module fprintf-posix for portable " 667 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 668 # define fpurge rpl_fpurge 679 #elif defined GNULIB_POSIXCHECK 681 # if HAVE_RAW_DECL_FPURGE 683 "use gnulib module fpurge for portability");
689 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 691 # define fputc rpl_fputc 703 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 705 # define fputs rpl_fputs 718 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 720 # define fread rpl_fread 722 _GL_FUNCDECL_RPL (fread,
size_t, (
void *ptr,
size_t s,
size_t n, FILE *stream)
724 _GL_CXXALIAS_RPL (fread,
size_t, (
void *ptr,
size_t s,
size_t n, FILE *stream));
726 _GL_CXXALIAS_SYS (fread,
size_t, (
void *ptr,
size_t s,
size_t n, FILE *stream));
733 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 735 # define freopen rpl_freopen 738 (
const char *filename,
const char *mode, FILE *stream)
741 (
const char *filename,
const char *mode, FILE *stream));
744 (
const char *filename,
const char *mode, FILE *stream));
747 #elif defined GNULIB_POSIXCHECK 751 "freopen on native Windows platforms is not POSIX compliant - " 752 "use gnulib module freopen for portability");
757 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 759 # define fscanf rpl_fscanf 804 # if defined GNULIB_POSIXCHECK && !defined _GL_NO_LARGE_FILES 805 # define _GL_FSEEK_WARN 809 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 811 # define fseek rpl_fseek 823 # if !0 && !defined _GL_NO_LARGE_FILES 824 # define _GL_FSEEK_WARN 830 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 832 # define fseeko rpl_fseeko 845 #elif defined GNULIB_POSIXCHECK 846 # define _GL_FSEEK_WARN 849 # if HAVE_RAW_DECL_FSEEKO 851 "use gnulib module fseeko for portability");
855 #ifdef _GL_FSEEK_WARN 856 # undef _GL_FSEEK_WARN 860 "on 32-bit platforms - " 861 "use fseeko function for handling of large files");
868 # if defined GNULIB_POSIXCHECK && !defined _GL_NO_LARGE_FILES 869 # define _GL_FTELL_WARN 873 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 875 # define ftell rpl_ftell 886 # if !0 && !defined _GL_NO_LARGE_FILES 887 # define _GL_FTELL_WARN 891 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 893 # define ftello rpl_ftello 904 #elif defined GNULIB_POSIXCHECK 905 # define _GL_FTELL_WARN 908 # if HAVE_RAW_DECL_FTELLO 910 "use gnulib module ftello for portability");
914 #ifdef _GL_FTELL_WARN 915 # undef _GL_FTELL_WARN 919 "on 32-bit platforms - " 920 "use ftello function for handling of large files");
926 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 928 # define fwrite rpl_fwrite 931 (
const void *ptr,
size_t s,
size_t n, FILE *stream)
934 (
const void *ptr,
size_t s,
size_t n, FILE *stream));
937 (
const void *ptr,
size_t s,
size_t n, FILE *stream));
944 # if (0 < __USE_FORTIFY_LEVEL \ 945 && __GLIBC__ == 2 && 4 <= __GLIBC_MINOR__ && __GLIBC_MINOR__ <= 15 \ 946 && 3 < __GNUC__ + (4 <= __GNUC_MINOR__) \ 947 && !defined __cplusplus) 949 # undef fwrite_unlocked 950 extern size_t __REDIRECT (rpl_fwrite,
951 (
const void *__restrict,
size_t,
size_t,
954 extern size_t __REDIRECT (rpl_fwrite_unlocked,
955 (
const void *__restrict,
size_t,
size_t,
958 # define fwrite rpl_fwrite 959 # define fwrite_unlocked rpl_fwrite_unlocked 967 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 969 # define getc rpl_fgetc 981 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 983 # define getchar rpl_getchar 1001 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1003 # define getdelim rpl_getdelim 1006 (
char **lineptr,
size_t *linesize,
int delimiter,
1010 (
char **lineptr,
size_t *linesize,
int delimiter,
1015 (
char **lineptr,
size_t *linesize,
int delimiter,
1020 (
char **lineptr,
size_t *linesize,
int delimiter,
1024 #elif defined GNULIB_POSIXCHECK 1026 # if HAVE_RAW_DECL_GETDELIM 1028 "use gnulib module getdelim for portability");
1040 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1042 # define getline rpl_getline 1045 (
char **lineptr,
size_t *linesize, FILE *stream)
1048 (
char **lineptr,
size_t *linesize, FILE *stream));
1052 (
char **lineptr,
size_t *linesize, FILE *stream)
1056 (
char **lineptr,
size_t *linesize, FILE *stream));
1061 #elif defined GNULIB_POSIXCHECK 1063 # if HAVE_RAW_DECL_GETLINE 1065 "use gnulib module getline for portability");
1073 #if HAVE_RAW_DECL_GETS && !defined __cplusplus 1074 _GL_WARN_ON_USE (gets,
"gets is a security hole - use fgets instead");
1085 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1086 # define obstack_printf rpl_obstack_printf 1089 (
struct obstack *obs,
const char *format, ...)
1093 (
struct obstack *obs,
const char *format, ...));
1097 (
struct obstack *obs,
const char *format, ...)
1102 (
struct obstack *obs,
const char *format, ...));
1106 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1107 # define obstack_vprintf rpl_obstack_vprintf 1110 (
struct obstack *obs,
const char *format, va_list args)
1114 (
struct obstack *obs,
const char *format, va_list args));
1118 (
struct obstack *obs,
const char *format, va_list args)
1123 (
struct obstack *obs,
const char *format, va_list args));
1134 #elif defined GNULIB_POSIXCHECK 1136 # if HAVE_RAW_DECL_PCLOSE 1138 "use gnulib module pclose for more portability");
1147 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1148 # define perror rpl_perror 1156 #elif defined GNULIB_POSIXCHECK 1160 "use gnulib module perror for portability");
1165 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1167 # define popen rpl_popen 1180 #elif defined GNULIB_POSIXCHECK 1182 # if HAVE_RAW_DECL_POPEN 1184 "use gnulib module popen or pipe for more portability");
1190 || (1 && 0 && (0 || 0)) 1191 # if defined __GNUC__ 1192 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1194 # define printf __printf__ 1198 (
const char *format, ...)
1205 (
const char *format, ...)
1213 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1214 # define printf rpl_printf 1217 (
const char *format, ...)
1222 # define GNULIB_overrides_printf 1 1228 #if !0 && defined GNULIB_POSIXCHECK 1229 # if !GNULIB_overrides_printf 1234 "use gnulib module printf-posix for portable " 1235 "POSIX compliance");
1240 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1242 # define putc rpl_fputc 1254 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1256 # define putchar rpl_putchar 1268 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1270 # define puts rpl_puts 1282 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1284 # define remove rpl_remove 1292 #elif defined GNULIB_POSIXCHECK 1295 _GL_WARN_ON_USE (
remove,
"remove cannot handle directories on some platforms - " 1296 "use gnulib module remove for more portability");
1301 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1303 # define rename rpl_rename 1306 (
const char *old_filename,
const char *new_filename)
1309 (
const char *old_filename,
const char *new_filename));
1312 (
const char *old_filename,
const char *new_filename));
1315 #elif defined GNULIB_POSIXCHECK 1319 "use gnulib module rename for more portability");
1324 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1326 # define renameat rpl_renameat 1329 (
int fd1,
char const *file1,
int fd2,
char const *file2)
1332 (
int fd1,
char const *file1,
int fd2,
char const *file2));
1336 (
int fd1,
char const *file1,
int fd2,
char const *file2)
1340 (
int fd1,
char const *file1,
int fd2,
char const *file2));
1343 #elif defined GNULIB_POSIXCHECK 1345 # if HAVE_RAW_DECL_RENAMEAT 1347 "use gnulib module renameat for portability");
1353 # if defined __GNUC__ 1354 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1357 # define scanf __scanf__ 1360 (
const char *format, ...)
1367 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1369 # define scanf rpl_scanf 1384 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1385 # define snprintf rpl_snprintf 1388 (
char *str,
size_t size,
const char *format, ...)
1392 (
char *str,
size_t size,
const char *format, ...));
1396 (
char *str,
size_t size,
const char *format, ...)
1401 (
char *str,
size_t size,
const char *format, ...));
1404 #elif defined GNULIB_POSIXCHECK 1406 # if HAVE_RAW_DECL_SNPRINTF 1408 "use gnulib module snprintf for portability");
1423 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1424 # define sprintf rpl_sprintf 1434 #elif defined GNULIB_POSIXCHECK 1438 "use gnulib module sprintf-posix for portable " 1439 "POSIX compliance");
1444 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1445 # define tmpfile rpl_tmpfile 1453 #elif defined GNULIB_POSIXCHECK 1455 # if HAVE_RAW_DECL_TMPFILE 1457 "use gnulib module tmpfile for portability");
1467 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1468 # define asprintf rpl_asprintf 1471 (
char **result,
const char *format, ...)
1475 (
char **result,
const char *format, ...));
1479 (
char **result,
const char *format, ...)
1484 (
char **result,
const char *format, ...));
1488 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1489 # define vasprintf rpl_vasprintf 1492 (
char **result,
const char *format, va_list args)
1496 (
char **result,
const char *format, va_list args));
1500 (
char **result,
const char *format, va_list args)
1505 (
char **result,
const char *format, va_list args));
1512 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1513 # define vdprintf rpl_vdprintf 1515 _GL_FUNCDECL_RPL (vdprintf,
int, (
int fd,
const char *format, va_list args)
1518 _GL_CXXALIAS_RPL (vdprintf,
int, (
int fd,
const char *format, va_list args));
1521 _GL_FUNCDECL_SYS (vdprintf,
int, (
int fd,
const char *format, va_list args)
1528 (
int fd,
const char *format, va_list args));
1531 #elif defined GNULIB_POSIXCHECK 1533 # if HAVE_RAW_DECL_VDPRINTF 1535 "use gnulib module vdprintf for portability");
1541 || (1 && 0 && (0 || 0)) 1542 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1543 # define vfprintf rpl_vfprintf 1545 # define GNULIB_overrides_vfprintf 1 1561 (FILE *
fp,
const char *format, va_list args));
1565 #if !0 && defined GNULIB_POSIXCHECK 1566 # if !GNULIB_overrides_vfprintf 1570 _GL_WARN_ON_USE (vfprintf,
"vfprintf is not always POSIX compliant - " 1571 "use gnulib module vfprintf-posix for portable " 1572 "POSIX compliance");
1577 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1579 # define vfscanf rpl_vfscanf 1582 (FILE *stream,
const char *format, va_list args)
1586 (FILE *stream,
const char *format, va_list args));
1589 (FILE *stream,
const char *format, va_list args));
1596 || (1 && 0 && (0 || 0)) 1597 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1598 # define vprintf rpl_vprintf 1600 # define GNULIB_overrides_vprintf 1 1619 #if !0 && defined GNULIB_POSIXCHECK 1620 # if !GNULIB_overrides_vprintf 1625 "use gnulib module vprintf-posix for portable " 1626 "POSIX compliance");
1631 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1633 # define vscanf rpl_vscanf 1647 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1648 # define vsnprintf rpl_vsnprintf 1651 (
char *str,
size_t size,
const char *format, va_list args)
1655 (
char *str,
size_t size,
const char *format, va_list args));
1659 (
char *str,
size_t size,
const char *format, va_list args)
1664 (
char *str,
size_t size,
const char *format, va_list args));
1667 #elif defined GNULIB_POSIXCHECK 1669 # if HAVE_RAW_DECL_VSNPRINTF 1671 "use gnulib module vsnprintf for portability");
1677 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1678 # define vsprintf rpl_vsprintf 1681 (
char *str,
const char *format, va_list args)
1685 (
char *str,
const char *format, va_list args));
1691 (
char *str,
const char *format, va_list args));
1694 #elif defined GNULIB_POSIXCHECK 1697 _GL_WARN_ON_USE (vsprintf,
"vsprintf is not always POSIX compliant - " 1698 "use gnulib module vsprintf-posix for portable " 1699 "POSIX compliance");
#define _GL_ARG_NONNULL(params)
static const struct aarch64_register fp
#define _GL_CXXALIAS_RPL(func, rettype, parameters)
#define _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM(formatstring_parameter, first_argument)
#define _GL_ATTRIBUTE_FORMAT_PRINTF(formatstring_parameter, first_argument)
void perror(const char *)
int vasprintf(char **strp, const char *fmt, va_list ap)
#define _GL_CXXALIAS_SYS_CAST(func, rettype, parameters)
#define _GL_CXXALIAS_SYS(func, rettype, parameters)
#define _GL_CXXALIASWARN(func)
#define _GL_WARN_ON_USE(function, message)
int vsnprintf(char *str, size_t size, const char *format, va_list ap)
#define _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM(formatstring_parameter, first_argument)
#define _GL_STDIO_MACROEXPAND_AND_STRINGIZE(token)
#define _GL_FUNCDECL_RPL(func, rettype, parameters_and_attributes)
#define _GL_FUNCDECL_SYS(func, rettype, parameters_and_attributes)
#define _GL_CXXALIAS_RPL_1(func, rpl_func, rettype, parameters)
#define _GL_FUNCDECL_RPL_1(rpl_func, rettype, parameters_and_attributes)