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 || defined __NetBSD__) \ 118 && ! defined __GLIBC__ 125 #if (0 || defined GNULIB_POSIXCHECK) \ 126 && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) \ 127 && ! defined __GLIBC__ 136 #if (0 || 0 || defined GNULIB_POSIXCHECK) \ 137 && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) \ 138 && ! defined __GLIBC__ 160 #ifndef _GL_CXXDEFS_H 161 #define _GL_CXXDEFS_H 164 #if defined __cplusplus && defined GNULIB_NAMESPACE 165 # define _GL_BEGIN_NAMESPACE namespace GNULIB_NAMESPACE { 166 # define _GL_END_NAMESPACE } 168 # define _GL_BEGIN_NAMESPACE 169 # define _GL_END_NAMESPACE 233 #if defined __cplusplus 234 # define _GL_EXTERN_C extern "C" 236 # define _GL_EXTERN_C extern 246 #define _GL_FUNCDECL_RPL(func,rettype,parameters_and_attributes) \ 247 _GL_FUNCDECL_RPL_1 (rpl_##func, rettype, parameters_and_attributes) 248 #define _GL_FUNCDECL_RPL_1(rpl_func,rettype,parameters_and_attributes) \ 249 _GL_EXTERN_C rettype rpl_func parameters_and_attributes 258 #define _GL_FUNCDECL_SYS(func,rettype,parameters_and_attributes) \ 259 _GL_EXTERN_C rettype func parameters_and_attributes 270 #define _GL_CXXALIAS_RPL(func,rettype,parameters) \ 271 _GL_CXXALIAS_RPL_1 (func, rpl_##func, rettype, parameters) 272 #if defined __cplusplus && defined GNULIB_NAMESPACE 273 # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \ 274 namespace GNULIB_NAMESPACE \ 276 static const struct _gl_ ## func ## _wrapper \ 278 typedef rettype (*type) parameters; \ 280 inline operator type () const \ 286 _GL_EXTERN_C int _gl_cxxalias_dummy 288 # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \ 289 _GL_EXTERN_C int _gl_cxxalias_dummy 297 #if defined __cplusplus && defined GNULIB_NAMESPACE 298 # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \ 299 namespace GNULIB_NAMESPACE \ 301 static const struct _gl_ ## func ## _wrapper \ 303 typedef rettype (*type) parameters; \ 305 inline operator type () const \ 307 return reinterpret_cast<type>(::rpl_func); \ 311 _GL_EXTERN_C int _gl_cxxalias_dummy 313 # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \ 314 _GL_EXTERN_C int _gl_cxxalias_dummy 327 #if defined __cplusplus && defined GNULIB_NAMESPACE 328 # define _GL_CXXALIAS_SYS(func,rettype,parameters) \ 329 namespace GNULIB_NAMESPACE \ 331 static const struct _gl_ ## func ## _wrapper \ 333 typedef rettype (*type) parameters; \ 335 inline operator type () const \ 341 _GL_EXTERN_C int _gl_cxxalias_dummy 343 # define _GL_CXXALIAS_SYS(func,rettype,parameters) \ 344 _GL_EXTERN_C int _gl_cxxalias_dummy 352 #if defined __cplusplus && defined GNULIB_NAMESPACE 353 # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \ 354 namespace GNULIB_NAMESPACE \ 356 static const struct _gl_ ## func ## _wrapper \ 358 typedef rettype (*type) parameters; \ 360 inline operator type () const \ 362 return reinterpret_cast<type>(::func); \ 366 _GL_EXTERN_C int _gl_cxxalias_dummy 368 # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \ 369 _GL_EXTERN_C int _gl_cxxalias_dummy 378 #if defined __cplusplus && defined GNULIB_NAMESPACE 384 # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \ 385 namespace GNULIB_NAMESPACE \ 387 static const struct _gl_ ## func ## _wrapper \ 389 typedef rettype (*type) parameters; \ 391 inline operator type () const \ 393 return reinterpret_cast<type>((rettype2 (*) parameters2)(::func)); \ 397 _GL_EXTERN_C int _gl_cxxalias_dummy 399 # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \ 400 _GL_EXTERN_C int _gl_cxxalias_dummy 407 #if defined __cplusplus && defined GNULIB_NAMESPACE 408 # define _GL_CXXALIASWARN(func) \ 409 _GL_CXXALIASWARN_1 (func, GNULIB_NAMESPACE) 410 # define _GL_CXXALIASWARN_1(func,namespace) \ 411 _GL_CXXALIASWARN_2 (func, namespace) 415 # define _GL_CXXALIASWARN_2(func,namespace) \ 416 _GL_WARN_ON_USE (func, \ 417 "The symbol ::" #func " refers to the system function. " \ 418 "Use " #namespace "::" #func " instead.") 419 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING 420 # define _GL_CXXALIASWARN_2(func,namespace) \ 421 extern __typeof__ (func) func 423 # define _GL_CXXALIASWARN_2(func,namespace) \ 424 _GL_EXTERN_C int _gl_cxxalias_dummy 427 # define _GL_CXXALIASWARN(func) \ 428 _GL_EXTERN_C int _gl_cxxalias_dummy 434 #if defined __cplusplus && defined GNULIB_NAMESPACE 435 # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \ 436 _GL_CXXALIASWARN1_1 (func, rettype, parameters_and_attributes, \ 438 # define _GL_CXXALIASWARN1_1(func,rettype,parameters_and_attributes,namespace) \ 439 _GL_CXXALIASWARN1_2 (func, rettype, parameters_and_attributes, namespace) 443 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \ 444 _GL_WARN_ON_USE_CXX (func, rettype, parameters_and_attributes, \ 445 "The symbol ::" #func " refers to the system function. " \ 446 "Use " #namespace "::" #func " instead.") 447 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING 448 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \ 449 extern __typeof__ (func) func 451 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \ 452 _GL_EXTERN_C int _gl_cxxalias_dummy 455 # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \ 456 _GL_EXTERN_C int _gl_cxxalias_dummy 481 #ifndef _GL_ARG_NONNULL 482 # if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || __GNUC__ > 3 483 # define _GL_ARG_NONNULL(params) __attribute__ ((__nonnull__ params)) 485 # define _GL_ARG_NONNULL(params) 553 #ifndef _GL_WARN_ON_USE 555 # if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) 557 # define _GL_WARN_ON_USE(function, message) \ 558 extern __typeof__ (function) function __attribute__ ((__warning__ (message))) 559 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING 561 # define _GL_WARN_ON_USE(function, message) \ 562 extern __typeof__ (function) function 564 # define _GL_WARN_ON_USE(function, message) \ 565 _GL_WARN_EXTERN_C int _gl_warn_on_use 575 #ifndef _GL_WARN_ON_USE_CXX 576 # if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) 577 # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \ 578 extern rettype function parameters_and_attributes \ 579 __attribute__ ((__warning__ (msg))) 580 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING 582 # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \ 583 extern rettype function parameters_and_attributes 585 # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \ 586 _GL_WARN_EXTERN_C int _gl_warn_on_use 592 #ifndef _GL_WARN_EXTERN_C 593 # if defined __cplusplus 594 # define _GL_WARN_EXTERN_C extern "C" 596 # define _GL_WARN_EXTERN_C extern 601 #define _GL_STDIO_STRINGIZE(token) #token 602 #define _GL_STDIO_MACROEXPAND_AND_STRINGIZE(token) _GL_STDIO_STRINGIZE(token) 609 #if (defined _GL_EXTERN_INLINE_IN_USE && defined __APPLE__ \ 610 && defined __GNUC__ && defined __STDC__) 611 # undef putc_unlocked 616 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 617 # define dprintf rpl_dprintf 632 #elif defined GNULIB_POSIXCHECK 634 # if HAVE_RAW_DECL_DPRINTF 636 "use gnulib module dprintf for portability");
643 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 644 # define fclose rpl_fclose 652 #elif defined GNULIB_POSIXCHECK 656 "use gnulib module fclose for portable POSIX compliance");
661 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 663 # define fdopen rpl_fdopen 672 #elif defined GNULIB_POSIXCHECK 675 _GL_WARN_ON_USE (fdopen,
"fdopen on native Windows platforms is not POSIX compliant - " 676 "use gnulib module fdopen for portability");
687 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 688 # define fflush rpl_fflush 696 #elif defined GNULIB_POSIXCHECK 700 "use gnulib module fflush for portable POSIX compliance");
705 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 707 # define fgetc rpl_fgetc 719 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 721 # define fgets rpl_fgets 734 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 736 # define fopen rpl_fopen 745 #elif defined GNULIB_POSIXCHECK 748 _GL_WARN_ON_USE (fopen,
"fopen on native Windows platforms is not POSIX compliant - " 749 "use gnulib module fopen for portability");
754 || (1 && 0 && (0 || 0)) 755 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 756 # define fprintf rpl_fprintf 758 # define GNULIB_overrides_fprintf 1 774 #if !0 && defined GNULIB_POSIXCHECK 775 # if !GNULIB_overrides_fprintf 780 "use gnulib module fprintf-posix for portable " 792 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 793 # define fpurge rpl_fpurge 804 #elif defined GNULIB_POSIXCHECK 806 # if HAVE_RAW_DECL_FPURGE 808 "use gnulib module fpurge for portability");
814 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 816 # define fputc rpl_fputc 828 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 830 # define fputs rpl_fputs 843 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 845 # define fread rpl_fread 847 _GL_FUNCDECL_RPL (fread,
size_t, (
void *ptr,
size_t s,
size_t n, FILE *stream)
849 _GL_CXXALIAS_RPL (fread,
size_t, (
void *ptr,
size_t s,
size_t n, FILE *stream));
851 _GL_CXXALIAS_SYS (fread,
size_t, (
void *ptr,
size_t s,
size_t n, FILE *stream));
858 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 860 # define freopen rpl_freopen 863 (
const char *filename,
const char *mode, FILE *stream)
866 (
const char *filename,
const char *mode, FILE *stream));
869 (
const char *filename,
const char *mode, FILE *stream));
872 #elif defined GNULIB_POSIXCHECK 876 "freopen on native Windows platforms is not POSIX compliant - " 877 "use gnulib module freopen for portability");
882 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 884 # define fscanf rpl_fscanf 929 # if defined GNULIB_POSIXCHECK && !defined _GL_NO_LARGE_FILES 930 # define _GL_FSEEK_WARN 934 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 936 # define fseek rpl_fseek 948 # if !1 && !defined _GL_NO_LARGE_FILES 949 # define _GL_FSEEK_WARN 955 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 957 # define fseeko rpl_fseeko 970 #elif defined GNULIB_POSIXCHECK 971 # define _GL_FSEEK_WARN 974 # if HAVE_RAW_DECL_FSEEKO 976 "use gnulib module fseeko for portability");
980 #ifdef _GL_FSEEK_WARN 981 # undef _GL_FSEEK_WARN 985 "on 32-bit platforms - " 986 "use fseeko function for handling of large files");
993 # if defined GNULIB_POSIXCHECK && !defined _GL_NO_LARGE_FILES 994 # define _GL_FTELL_WARN 998 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1000 # define ftell rpl_ftell 1011 # if !1 && !defined _GL_NO_LARGE_FILES 1012 # define _GL_FTELL_WARN 1016 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1018 # define ftello rpl_ftello 1029 #elif defined GNULIB_POSIXCHECK 1030 # define _GL_FTELL_WARN 1033 # if HAVE_RAW_DECL_FTELLO 1035 "use gnulib module ftello for portability");
1039 #ifdef _GL_FTELL_WARN 1040 # undef _GL_FTELL_WARN 1044 "on 32-bit platforms - " 1045 "use ftello function for handling of large files");
1051 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1053 # define fwrite rpl_fwrite 1056 (
const void *ptr,
size_t s,
size_t n, FILE *stream)
1059 (
const void *ptr,
size_t s,
size_t n, FILE *stream));
1062 (
const void *ptr,
size_t s,
size_t n, FILE *stream));
1069 # if (0 < __USE_FORTIFY_LEVEL \ 1070 && __GLIBC__ == 2 && 4 <= __GLIBC_MINOR__ && __GLIBC_MINOR__ <= 15 \ 1071 && 3 < __GNUC__ + (4 <= __GNUC_MINOR__) \ 1072 && !defined __cplusplus) 1074 # undef fwrite_unlocked 1075 extern size_t __REDIRECT (rpl_fwrite,
1076 (
const void *__restrict,
size_t,
size_t,
1079 extern size_t __REDIRECT (rpl_fwrite_unlocked,
1080 (
const void *__restrict,
size_t,
size_t,
1083 # define fwrite rpl_fwrite 1084 # define fwrite_unlocked rpl_fwrite_unlocked 1092 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1094 # define getc rpl_fgetc 1106 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1108 # define getchar rpl_getchar 1126 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1128 # define getdelim rpl_getdelim 1131 (
char **lineptr,
size_t *linesize,
int delimiter,
1135 (
char **lineptr,
size_t *linesize,
int delimiter,
1140 (
char **lineptr,
size_t *linesize,
int delimiter,
1145 (
char **lineptr,
size_t *linesize,
int delimiter,
1149 #elif defined GNULIB_POSIXCHECK 1151 # if HAVE_RAW_DECL_GETDELIM 1153 "use gnulib module getdelim for portability");
1165 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1167 # define getline rpl_getline 1170 (
char **lineptr,
size_t *linesize, FILE *stream)
1173 (
char **lineptr,
size_t *linesize, FILE *stream));
1177 (
char **lineptr,
size_t *linesize, FILE *stream)
1181 (
char **lineptr,
size_t *linesize, FILE *stream));
1186 #elif defined GNULIB_POSIXCHECK 1188 # if HAVE_RAW_DECL_GETLINE 1190 "use gnulib module getline for portability");
1198 #if HAVE_RAW_DECL_GETS && !defined __cplusplus 1199 _GL_WARN_ON_USE (gets,
"gets is a security hole - use fgets instead");
1210 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1211 # define obstack_printf rpl_obstack_printf 1214 (
struct obstack *obs,
const char *format, ...)
1218 (
struct obstack *obs,
const char *format, ...));
1222 (
struct obstack *obs,
const char *format, ...)
1227 (
struct obstack *obs,
const char *format, ...));
1231 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1232 # define obstack_vprintf rpl_obstack_vprintf 1235 (
struct obstack *obs,
const char *format, va_list args)
1239 (
struct obstack *obs,
const char *format, va_list args));
1243 (
struct obstack *obs,
const char *format, va_list args)
1248 (
struct obstack *obs,
const char *format, va_list args));
1259 #elif defined GNULIB_POSIXCHECK 1261 # if HAVE_RAW_DECL_PCLOSE 1263 "use gnulib module pclose for more portability");
1272 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1273 # define perror rpl_perror 1281 #elif defined GNULIB_POSIXCHECK 1285 "use gnulib module perror for portability");
1290 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1292 # define popen rpl_popen 1305 #elif defined GNULIB_POSIXCHECK 1307 # if HAVE_RAW_DECL_POPEN 1309 "use gnulib module popen or pipe for more portability");
1315 || (1 && 0 && (0 || 0)) 1316 # if defined __GNUC__ 1317 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1319 # define printf __printf__ 1323 (
const char *format, ...)
1330 (
const char *format, ...)
1338 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1339 # define printf rpl_printf 1342 (
const char *format, ...)
1347 # define GNULIB_overrides_printf 1 1353 #if !0 && defined GNULIB_POSIXCHECK 1354 # if !GNULIB_overrides_printf 1359 "use gnulib module printf-posix for portable " 1360 "POSIX compliance");
1365 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1367 # define putc rpl_fputc 1379 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1381 # define putchar rpl_putchar 1393 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1395 # define puts rpl_puts 1407 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1409 # define remove rpl_remove 1417 #elif defined GNULIB_POSIXCHECK 1420 _GL_WARN_ON_USE (
remove,
"remove cannot handle directories on some platforms - " 1421 "use gnulib module remove for more portability");
1426 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1428 # define rename rpl_rename 1431 (
const char *old_filename,
const char *new_filename)
1434 (
const char *old_filename,
const char *new_filename));
1437 (
const char *old_filename,
const char *new_filename));
1440 #elif defined GNULIB_POSIXCHECK 1444 "use gnulib module rename for more portability");
1449 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1451 # define renameat rpl_renameat 1454 (
int fd1,
char const *file1,
int fd2,
char const *file2)
1457 (
int fd1,
char const *file1,
int fd2,
char const *file2));
1461 (
int fd1,
char const *file1,
int fd2,
char const *file2)
1465 (
int fd1,
char const *file1,
int fd2,
char const *file2));
1468 #elif defined GNULIB_POSIXCHECK 1470 # if HAVE_RAW_DECL_RENAMEAT 1472 "use gnulib module renameat for portability");
1478 # if defined __GNUC__ 1479 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1482 # define scanf __scanf__ 1485 (
const char *format, ...)
1492 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1494 # define scanf rpl_scanf 1509 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1510 # define snprintf rpl_snprintf 1513 (
char *str,
size_t size,
const char *format, ...)
1517 (
char *str,
size_t size,
const char *format, ...));
1521 (
char *str,
size_t size,
const char *format, ...)
1526 (
char *str,
size_t size,
const char *format, ...));
1529 #elif defined GNULIB_POSIXCHECK 1531 # if HAVE_RAW_DECL_SNPRINTF 1533 "use gnulib module snprintf for portability");
1548 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1549 # define sprintf rpl_sprintf 1559 #elif defined GNULIB_POSIXCHECK 1563 "use gnulib module sprintf-posix for portable " 1564 "POSIX compliance");
1569 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1570 # define tmpfile rpl_tmpfile 1578 #elif defined GNULIB_POSIXCHECK 1580 # if HAVE_RAW_DECL_TMPFILE 1582 "use gnulib module tmpfile for portability");
1592 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1593 # define asprintf rpl_asprintf 1596 (
char **result,
const char *format, ...)
1600 (
char **result,
const char *format, ...));
1604 (
char **result,
const char *format, ...)
1609 (
char **result,
const char *format, ...));
1613 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1614 # define vasprintf rpl_vasprintf 1617 (
char **result,
const char *format, va_list args)
1621 (
char **result,
const char *format, va_list args));
1625 (
char **result,
const char *format, va_list args)
1630 (
char **result,
const char *format, va_list args));
1637 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1638 # define vdprintf rpl_vdprintf 1640 _GL_FUNCDECL_RPL (vdprintf,
int, (
int fd,
const char *format, va_list args)
1643 _GL_CXXALIAS_RPL (vdprintf,
int, (
int fd,
const char *format, va_list args));
1646 _GL_FUNCDECL_SYS (vdprintf,
int, (
int fd,
const char *format, va_list args)
1653 (
int fd,
const char *format, va_list args));
1656 #elif defined GNULIB_POSIXCHECK 1658 # if HAVE_RAW_DECL_VDPRINTF 1660 "use gnulib module vdprintf for portability");
1666 || (1 && 0 && (0 || 0)) 1667 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1668 # define vfprintf rpl_vfprintf 1670 # define GNULIB_overrides_vfprintf 1 1672 _GL_FUNCDECL_RPL (vfprintf,
int, (FILE *fp,
const char *format, va_list args)
1676 _GL_FUNCDECL_RPL (vfprintf,
int, (FILE *fp,
const char *format, va_list args)
1680 _GL_CXXALIAS_RPL (vfprintf,
int, (FILE *fp,
const char *format, va_list args));
1686 (FILE *fp,
const char *format, va_list args));
1690 #if !0 && defined GNULIB_POSIXCHECK 1691 # if !GNULIB_overrides_vfprintf 1695 _GL_WARN_ON_USE (vfprintf,
"vfprintf is not always POSIX compliant - " 1696 "use gnulib module vfprintf-posix for portable " 1697 "POSIX compliance");
1702 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1704 # define vfscanf rpl_vfscanf 1707 (FILE *stream,
const char *format, va_list args)
1711 (FILE *stream,
const char *format, va_list args));
1714 (FILE *stream,
const char *format, va_list args));
1721 || (1 && 0 && (0 || 0)) 1722 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1723 # define vprintf rpl_vprintf 1725 # define GNULIB_overrides_vprintf 1 1744 #if !0 && defined GNULIB_POSIXCHECK 1745 # if !GNULIB_overrides_vprintf 1750 "use gnulib module vprintf-posix for portable " 1751 "POSIX compliance");
1756 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1758 # define vscanf rpl_vscanf 1772 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1773 # define vsnprintf rpl_vsnprintf 1776 (
char *str,
size_t size,
const char *format, va_list args)
1780 (
char *str,
size_t size,
const char *format, va_list args));
1784 (
char *str,
size_t size,
const char *format, va_list args)
1789 (
char *str,
size_t size,
const char *format, va_list args));
1792 #elif defined GNULIB_POSIXCHECK 1794 # if HAVE_RAW_DECL_VSNPRINTF 1796 "use gnulib module vsnprintf for portability");
1802 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1803 # define vsprintf rpl_vsprintf 1806 (
char *str,
const char *format, va_list args)
1810 (
char *str,
const char *format, va_list args));
1816 (
char *str,
const char *format, va_list args));
1819 #elif defined GNULIB_POSIXCHECK 1822 _GL_WARN_ON_USE (vsprintf,
"vsprintf is not always POSIX compliant - " 1823 "use gnulib module vsprintf-posix for portable " 1824 "POSIX compliance");
#define _GL_ARG_NONNULL(params)
Definition: stdio.h:485
#define _GL_CXXALIAS_RPL(func, rettype, parameters)
Definition: stdio.h:270
#define _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM(formatstring_parameter, first_argument)
Definition: stdio.h:92
#define _GL_ATTRIBUTE_FORMAT_PRINTF(formatstring_parameter, first_argument)
Definition: stdio.h:80
#define fseeko
Definition: stdio.h:957
#define _GL_CXXALIAS_SYS_CAST(func, rettype, parameters)
Definition: stdio.h:368
#define _GL_CXXALIAS_SYS(func, rettype, parameters)
Definition: stdio.h:343
#define _GL_CXXALIASWARN(func)
Definition: stdio.h:427
#define _GL_WARN_ON_USE(function, message)
Definition: stdio.h:564
#define _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM(formatstring_parameter, first_argument)
Definition: stdio.h:112
#define fclose
Definition: stdio.h:644
#define fflush
Definition: stdio.h:688
#define _GL_STDIO_MACROEXPAND_AND_STRINGIZE(token)
Definition: stdio.h:602
long ftell(FILE *fp)
Definition: ftell.c:26
#define _GL_FUNCDECL_RPL(func, rettype, parameters_and_attributes)
Definition: stdio.h:246
off_t ftello(FILE *fp)
Definition: ftello.c:28
int fpurge(FILE *fp)
Definition: fpurge.c:30
#define _GL_FUNCDECL_SYS(func, rettype, parameters_and_attributes)
Definition: stdio.h:258
#define _GL_CXXALIAS_RPL_1(func, rpl_func, rettype, parameters)
Definition: stdio.h:288
#define fseek
Definition: stdio.h:936
#define _GL_FUNCDECL_RPL_1(rpl_func, rettype, parameters_and_attributes)
Definition: stdio.h:248