00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #if __GNUC__ >= 3
00023 #pragma GCC system_header
00024 #endif
00025
00026
00027 #if defined __need_FILE || defined __need___FILE || defined _GL_ALREADY_INCLUDING_STDIO_H
00028
00029
00030
00031
00032
00033
00034
00035
00036 #include_next <stdio.h>
00037
00038 #else
00039
00040
00041 #ifndef _GL_STDIO_H
00042
00043 #define _GL_ALREADY_INCLUDING_STDIO_H
00044
00045
00046 #include_next <stdio.h>
00047
00048 #undef _GL_ALREADY_INCLUDING_STDIO_H
00049
00050 #ifndef _GL_STDIO_H
00051 #define _GL_STDIO_H
00052
00053
00054 #include <stdarg.h>
00055
00056 #include <stddef.h>
00057
00058
00059
00060 #include <sys/types.h>
00061
00062 #ifndef __attribute__
00063
00064
00065
00066
00067
00068
00069 # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7)
00070 # define __attribute__(Spec)
00071 # endif
00072 #endif
00073
00074
00075
00076 #if (0 || defined GNULIB_POSIXCHECK) && defined __sun \
00077 && ! defined __GLIBC__
00078 # include <unistd.h>
00079 #endif
00080
00081
00082
00083 #ifndef _GL_CXXDEFS_H
00084 #define _GL_CXXDEFS_H
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127
00128
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146
00147 #if defined __cplusplus
00148 # define _GL_EXTERN_C extern "C"
00149 #else
00150 # define _GL_EXTERN_C extern
00151 #endif
00152
00153
00154
00155
00156
00157
00158
00159
00160 #define _GL_FUNCDECL_RPL(func,rettype,parameters_and_attributes) \
00161 _GL_FUNCDECL_RPL_1 (rpl_##func, rettype, parameters_and_attributes)
00162 #define _GL_FUNCDECL_RPL_1(rpl_func,rettype,parameters_and_attributes) \
00163 _GL_EXTERN_C rettype rpl_func parameters_and_attributes
00164
00165
00166
00167
00168
00169
00170
00171
00172 #define _GL_FUNCDECL_SYS(func,rettype,parameters_and_attributes) \
00173 _GL_EXTERN_C rettype func parameters_and_attributes
00174
00175
00176
00177
00178
00179
00180
00181 #define _GL_CXXALIAS_RPL(func,rettype,parameters) \
00182 _GL_CXXALIAS_RPL_1 (func, rpl_##func, rettype, parameters)
00183 #if defined __cplusplus && defined GNULIB_NAMESPACE
00184 # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \
00185 namespace GNULIB_NAMESPACE \
00186 { \
00187 rettype (*const func) parameters = ::rpl_func; \
00188 } \
00189 _GL_EXTERN_C int _gl_cxxalias_dummy
00190 #else
00191 # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \
00192 _GL_EXTERN_C int _gl_cxxalias_dummy
00193 #endif
00194
00195
00196
00197
00198
00199
00200 #if defined __cplusplus && defined GNULIB_NAMESPACE
00201 # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \
00202 namespace GNULIB_NAMESPACE \
00203 { \
00204 rettype (*const func) parameters = \
00205 reinterpret_cast<rettype(*)parameters>(::rpl_func); \
00206 } \
00207 _GL_EXTERN_C int _gl_cxxalias_dummy
00208 #else
00209 # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \
00210 _GL_EXTERN_C int _gl_cxxalias_dummy
00211 #endif
00212
00213
00214
00215
00216
00217
00218
00219
00220 #if defined __cplusplus && defined GNULIB_NAMESPACE
00221
00222
00223
00224
00225
00226
00227 # define _GL_CXXALIAS_SYS(func,rettype,parameters) \
00228 namespace GNULIB_NAMESPACE \
00229 { \
00230 static rettype (*func) parameters = ::func; \
00231 } \
00232 _GL_EXTERN_C int _gl_cxxalias_dummy
00233 #else
00234 # define _GL_CXXALIAS_SYS(func,rettype,parameters) \
00235 _GL_EXTERN_C int _gl_cxxalias_dummy
00236 #endif
00237
00238
00239
00240
00241
00242
00243 #if defined __cplusplus && defined GNULIB_NAMESPACE
00244 # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \
00245 namespace GNULIB_NAMESPACE \
00246 { \
00247 static rettype (*func) parameters = \
00248 reinterpret_cast<rettype(*)parameters>(::func); \
00249 } \
00250 _GL_EXTERN_C int _gl_cxxalias_dummy
00251 #else
00252 # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \
00253 _GL_EXTERN_C int _gl_cxxalias_dummy
00254 #endif
00255
00256
00257
00258
00259
00260
00261
00262 #if defined __cplusplus && defined GNULIB_NAMESPACE
00263
00264
00265
00266
00267
00268 # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \
00269 namespace GNULIB_NAMESPACE \
00270 { \
00271 static rettype (*func) parameters = \
00272 reinterpret_cast<rettype(*)parameters>( \
00273 (rettype2(*)parameters2)(::func)); \
00274 } \
00275 _GL_EXTERN_C int _gl_cxxalias_dummy
00276 #else
00277 # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \
00278 _GL_EXTERN_C int _gl_cxxalias_dummy
00279 #endif
00280
00281
00282
00283
00284
00285 #if defined __cplusplus && defined GNULIB_NAMESPACE
00286 # define _GL_CXXALIASWARN(func) \
00287 _GL_CXXALIASWARN_1 (func, GNULIB_NAMESPACE)
00288 # define _GL_CXXALIASWARN_1(func,namespace) \
00289 _GL_CXXALIASWARN_2 (func, namespace)
00290
00291
00292 # if !__OPTIMIZE__
00293 # define _GL_CXXALIASWARN_2(func,namespace) \
00294 _GL_WARN_ON_USE (func, \
00295 "The symbol ::" #func " refers to the system function. " \
00296 "Use " #namespace "::" #func " instead.")
00297 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
00298 # define _GL_CXXALIASWARN_2(func,namespace) \
00299 extern __typeof__ (func) func
00300 # else
00301 # define _GL_CXXALIASWARN_2(func,namespace) \
00302 _GL_EXTERN_C int _gl_cxxalias_dummy
00303 # endif
00304 #else
00305 # define _GL_CXXALIASWARN(func) \
00306 _GL_EXTERN_C int _gl_cxxalias_dummy
00307 #endif
00308
00309
00310
00311
00312 #if defined __cplusplus && defined GNULIB_NAMESPACE
00313 # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \
00314 _GL_CXXALIASWARN1_1 (func, rettype, parameters_and_attributes, \
00315 GNULIB_NAMESPACE)
00316 # define _GL_CXXALIASWARN1_1(func,rettype,parameters_and_attributes,namespace) \
00317 _GL_CXXALIASWARN1_2 (func, rettype, parameters_and_attributes, namespace)
00318
00319
00320 # if !__OPTIMIZE__
00321 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
00322 _GL_WARN_ON_USE_CXX (func, rettype, parameters_and_attributes, \
00323 "The symbol ::" #func " refers to the system function. " \
00324 "Use " #namespace "::" #func " instead.")
00325 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
00326 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
00327 extern __typeof__ (func) func
00328 # else
00329 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
00330 _GL_EXTERN_C int _gl_cxxalias_dummy
00331 # endif
00332 #else
00333 # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \
00334 _GL_EXTERN_C int _gl_cxxalias_dummy
00335 #endif
00336
00337 #endif
00338
00339
00340
00341
00342
00343 #ifndef _GL_ARG_NONNULL
00344 # if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || __GNUC__ > 3
00345 # define _GL_ARG_NONNULL(params) __attribute__ ((__nonnull__ params))
00346 # else
00347 # define _GL_ARG_NONNULL(params)
00348 # endif
00349 #endif
00350
00351
00352 #ifndef _GL_WARN_ON_USE
00353
00354 # if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__)
00355
00356 # define _GL_WARN_ON_USE(function, message) \
00357 extern __typeof__ (function) function __attribute__ ((__warning__ (message)))
00358 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
00359
00360 # define _GL_WARN_ON_USE(function, message) \
00361 extern __typeof__ (function) function
00362 # else
00363 # define _GL_WARN_ON_USE(function, message) \
00364 _GL_WARN_EXTERN_C int _gl_warn_on_use
00365 # endif
00366 #endif
00367
00368
00369
00370
00371
00372
00373
00374 #ifndef _GL_WARN_ON_USE_CXX
00375 # if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__)
00376 # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
00377 extern rettype function parameters_and_attributes \
00378 __attribute__ ((__warning__ (msg)))
00379 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
00380
00381 # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
00382 extern rettype function parameters_and_attributes
00383 # else
00384 # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
00385 _GL_WARN_EXTERN_C int _gl_warn_on_use
00386 # endif
00387 #endif
00388
00389
00390
00391 #ifndef _GL_WARN_EXTERN_C
00392 # if defined __cplusplus
00393 # define _GL_WARN_EXTERN_C extern "C"
00394 # else
00395 # define _GL_WARN_EXTERN_C extern
00396 # endif
00397 #endif
00398
00399
00400 #define _GL_STDIO_STRINGIZE(token) #token
00401 #define _GL_STDIO_MACROEXPAND_AND_STRINGIZE(token) _GL_STDIO_STRINGIZE(token)
00402
00403
00404 #if 0
00405 # if 0
00406 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00407 # define dprintf rpl_dprintf
00408 # endif
00409 _GL_FUNCDECL_RPL (dprintf, int, (int fd, const char *format, ...)
00410 __attribute__ ((__format__ (__printf__, 2, 3)))
00411 _GL_ARG_NONNULL ((2)));
00412 _GL_CXXALIAS_RPL (dprintf, int, (int fd, const char *format, ...));
00413 # else
00414 # if !1
00415 _GL_FUNCDECL_SYS (dprintf, int, (int fd, const char *format, ...)
00416 __attribute__ ((__format__ (__printf__, 2, 3)))
00417 _GL_ARG_NONNULL ((2)));
00418 # endif
00419 _GL_CXXALIAS_SYS (dprintf, int, (int fd, const char *format, ...));
00420 # endif
00421 _GL_CXXALIASWARN (dprintf);
00422 #elif defined GNULIB_POSIXCHECK
00423 # undef dprintf
00424 # if HAVE_RAW_DECL_DPRINTF
00425 _GL_WARN_ON_USE (dprintf, "dprintf is unportable - "
00426 "use gnulib module dprintf for portability");
00427 # endif
00428 #endif
00429
00430 #if 1
00431
00432 # if 0
00433 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00434 # define fclose rpl_fclose
00435 # endif
00436 _GL_FUNCDECL_RPL (fclose, int, (FILE *stream) _GL_ARG_NONNULL ((1)));
00437 _GL_CXXALIAS_RPL (fclose, int, (FILE *stream));
00438 # else
00439 _GL_CXXALIAS_SYS (fclose, int, (FILE *stream));
00440 # endif
00441 _GL_CXXALIASWARN (fclose);
00442 #elif defined GNULIB_POSIXCHECK
00443 # undef fclose
00444
00445 _GL_WARN_ON_USE (fclose, "fclose is not always POSIX compliant - "
00446 "use gnulib module fclose for portable POSIX compliance");
00447 #endif
00448
00449 #if 0
00450
00451
00452
00453
00454
00455
00456 # if 0
00457 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00458 # define fflush rpl_fflush
00459 # endif
00460 _GL_FUNCDECL_RPL (fflush, int, (FILE *gl_stream));
00461 _GL_CXXALIAS_RPL (fflush, int, (FILE *gl_stream));
00462 # else
00463 _GL_CXXALIAS_SYS (fflush, int, (FILE *gl_stream));
00464 # endif
00465 _GL_CXXALIASWARN (fflush);
00466 #elif defined GNULIB_POSIXCHECK
00467 # undef fflush
00468
00469 _GL_WARN_ON_USE (fflush, "fflush is not always POSIX compliant - "
00470 "use gnulib module fflush for portable POSIX compliance");
00471 #endif
00472
00473
00474
00475
00476 #undef gets
00477 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
00478
00479 #if 0
00480 # if 0
00481 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00482 # undef fopen
00483 # define fopen rpl_fopen
00484 # endif
00485 _GL_FUNCDECL_RPL (fopen, FILE *, (const char *filename, const char *mode)
00486 _GL_ARG_NONNULL ((1, 2)));
00487 _GL_CXXALIAS_RPL (fopen, FILE *, (const char *filename, const char *mode));
00488 # else
00489 _GL_CXXALIAS_SYS (fopen, FILE *, (const char *filename, const char *mode));
00490 # endif
00491 _GL_CXXALIASWARN (fopen);
00492 #elif defined GNULIB_POSIXCHECK
00493 # undef fopen
00494
00495 _GL_WARN_ON_USE (fopen, "fopen on Win32 platforms is not POSIX compatible - "
00496 "use gnulib module fopen for portability");
00497 #endif
00498
00499 #if 0 || 1
00500 # if (0 && 0) \
00501 || (1 && 0 && 0)
00502 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00503 # define fprintf rpl_fprintf
00504 # endif
00505 # define GNULIB_overrides_fprintf 1
00506 _GL_FUNCDECL_RPL (fprintf, int, (FILE *fp, const char *format, ...)
00507 __attribute__ ((__format__ (__printf__, 2, 3)))
00508 _GL_ARG_NONNULL ((1, 2)));
00509 _GL_CXXALIAS_RPL (fprintf, int, (FILE *fp, const char *format, ...));
00510 # else
00511 _GL_CXXALIAS_SYS (fprintf, int, (FILE *fp, const char *format, ...));
00512 # endif
00513 _GL_CXXALIASWARN (fprintf);
00514 #endif
00515 #if !0 && defined GNULIB_POSIXCHECK
00516 # if !GNULIB_overrides_fprintf
00517 # undef fprintf
00518 # endif
00519
00520 _GL_WARN_ON_USE (fprintf, "fprintf is not always POSIX compliant - "
00521 "use gnulib module fprintf-posix for portable "
00522 "POSIX compliance");
00523 #endif
00524
00525 #if 0
00526
00527
00528
00529
00530
00531
00532 # if 0
00533 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00534 # define fpurge rpl_fpurge
00535 # endif
00536 _GL_FUNCDECL_RPL (fpurge, int, (FILE *gl_stream) _GL_ARG_NONNULL ((1)));
00537 _GL_CXXALIAS_RPL (fpurge, int, (FILE *gl_stream));
00538 # else
00539 # if !1
00540 _GL_FUNCDECL_SYS (fpurge, int, (FILE *gl_stream) _GL_ARG_NONNULL ((1)));
00541 # endif
00542 _GL_CXXALIAS_SYS (fpurge, int, (FILE *gl_stream));
00543 # endif
00544 _GL_CXXALIASWARN (fpurge);
00545 #elif defined GNULIB_POSIXCHECK
00546 # undef fpurge
00547 # if HAVE_RAW_DECL_FPURGE
00548 _GL_WARN_ON_USE (fpurge, "fpurge is not always present - "
00549 "use gnulib module fpurge for portability");
00550 # endif
00551 #endif
00552
00553 #if 1
00554 # if 0 && 0
00555 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00556 # undef fputc
00557 # define fputc rpl_fputc
00558 # endif
00559 _GL_FUNCDECL_RPL (fputc, int, (int c, FILE *stream) _GL_ARG_NONNULL ((2)));
00560 _GL_CXXALIAS_RPL (fputc, int, (int c, FILE *stream));
00561 # else
00562 _GL_CXXALIAS_SYS (fputc, int, (int c, FILE *stream));
00563 # endif
00564 _GL_CXXALIASWARN (fputc);
00565 #endif
00566
00567 #if 1
00568 # if 0 && 0
00569 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00570 # undef fputs
00571 # define fputs rpl_fputs
00572 # endif
00573 _GL_FUNCDECL_RPL (fputs, int, (const char *string, FILE *stream)
00574 _GL_ARG_NONNULL ((1, 2)));
00575 _GL_CXXALIAS_RPL (fputs, int, (const char *string, FILE *stream));
00576 # else
00577 _GL_CXXALIAS_SYS (fputs, int, (const char *string, FILE *stream));
00578 # endif
00579 _GL_CXXALIASWARN (fputs);
00580 #endif
00581
00582 #if 0
00583 # if 0
00584 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00585 # undef freopen
00586 # define freopen rpl_freopen
00587 # endif
00588 _GL_FUNCDECL_RPL (freopen, FILE *,
00589 (const char *filename, const char *mode, FILE *stream)
00590 _GL_ARG_NONNULL ((2, 3)));
00591 _GL_CXXALIAS_RPL (freopen, FILE *,
00592 (const char *filename, const char *mode, FILE *stream));
00593 # else
00594 _GL_CXXALIAS_SYS (freopen, FILE *,
00595 (const char *filename, const char *mode, FILE *stream));
00596 # endif
00597 _GL_CXXALIASWARN (freopen);
00598 #elif defined GNULIB_POSIXCHECK
00599 # undef freopen
00600
00601 _GL_WARN_ON_USE (freopen,
00602 "freopen on Win32 platforms is not POSIX compatible - "
00603 "use gnulib module freopen for portability");
00604 #endif
00605
00606
00607
00608
00609
00610
00611
00612
00613
00614
00615
00616
00617
00618
00619
00620
00621
00622
00623
00624
00625
00626
00627
00628
00629
00630
00631
00632
00633
00634
00635
00636
00637
00638 #if 0
00639 # if defined GNULIB_POSIXCHECK && !defined _GL_NO_LARGE_FILES
00640 # define _GL_FSEEK_WARN
00641 # undef fseek
00642 # endif
00643 # if 0
00644 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00645 # undef fseek
00646 # define fseek rpl_fseek
00647 # endif
00648 _GL_FUNCDECL_RPL (fseek, int, (FILE *fp, long offset, int whence)
00649 _GL_ARG_NONNULL ((1)));
00650 _GL_CXXALIAS_RPL (fseek, int, (FILE *fp, long offset, int whence));
00651 # else
00652 _GL_CXXALIAS_SYS (fseek, int, (FILE *fp, long offset, int whence));
00653 # endif
00654 _GL_CXXALIASWARN (fseek);
00655 #endif
00656
00657 #if 0
00658 # if !0 && !defined _GL_NO_LARGE_FILES
00659 # define _GL_FSEEK_WARN
00660 # undef fseek
00661 # endif
00662 # if 0
00663
00664
00665 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00666 # undef fseeko
00667 # define fseeko rpl_fseeko
00668 # endif
00669 _GL_FUNCDECL_RPL (fseeko, int, (FILE *fp, off_t offset, int whence)
00670 _GL_ARG_NONNULL ((1)));
00671 _GL_CXXALIAS_RPL (fseeko, int, (FILE *fp, off_t offset, int whence));
00672 # else
00673 # if ! 1
00674 _GL_FUNCDECL_SYS (fseeko, int, (FILE *fp, off_t offset, int whence)
00675 _GL_ARG_NONNULL ((1)));
00676 # endif
00677 _GL_CXXALIAS_SYS (fseeko, int, (FILE *fp, off_t offset, int whence));
00678 # endif
00679 _GL_CXXALIASWARN (fseeko);
00680 # if (0 || !1) && !0
00681
00682
00683
00684 # if !GNULIB_defined_fseek_function
00685 # undef fseek
00686 # define fseek rpl_fseek
00687 static inline int _GL_ARG_NONNULL ((1))
00688 rpl_fseek (FILE *fp, long offset, int whence)
00689 {
00690 # if 0
00691 return rpl_fseeko (fp, offset, whence);
00692 # else
00693 return fseeko (fp, offset, whence);
00694 # endif
00695 }
00696 # define GNULIB_defined_fseek_function 1
00697 # endif
00698 # endif
00699 #elif defined GNULIB_POSIXCHECK
00700 # define _GL_FSEEK_WARN
00701 # undef fseek
00702 # undef fseeko
00703 # if HAVE_RAW_DECL_FSEEKO
00704 _GL_WARN_ON_USE (fseeko, "fseeko is unportable - "
00705 "use gnulib module fseeko for portability");
00706 # endif
00707 #endif
00708
00709 #ifdef _GL_FSEEK_WARN
00710 # undef _GL_FSEEK_WARN
00711
00712
00713 _GL_WARN_ON_USE (fseek, "fseek cannot handle files larger than 4 GB "
00714 "on 32-bit platforms - "
00715 "use fseeko function for handling of large files");
00716 #endif
00717
00718
00719
00720
00721 #if 0
00722 # if defined GNULIB_POSIXCHECK && !defined _GL_NO_LARGE_FILES
00723 # define _GL_FTELL_WARN
00724 # undef ftell
00725 # endif
00726 # if 0
00727 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00728 # undef ftell
00729 # define ftell rpl_ftell
00730 # endif
00731 _GL_FUNCDECL_RPL (ftell, long, (FILE *fp) _GL_ARG_NONNULL ((1)));
00732 _GL_CXXALIAS_RPL (ftell, long, (FILE *fp));
00733 # else
00734 _GL_CXXALIAS_SYS (ftell, long, (FILE *fp));
00735 # endif
00736 _GL_CXXALIASWARN (ftell);
00737 #endif
00738
00739 #if 0
00740 # if !0 && !defined _GL_NO_LARGE_FILES
00741 # define _GL_FTELL_WARN
00742 # undef ftell
00743 # endif
00744 # if 0
00745 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00746 # undef ftello
00747 # define ftello rpl_ftello
00748 # endif
00749 _GL_FUNCDECL_RPL (ftello, off_t, (FILE *fp) _GL_ARG_NONNULL ((1)));
00750 _GL_CXXALIAS_RPL (ftello, off_t, (FILE *fp));
00751 # else
00752 # if ! 1
00753 _GL_FUNCDECL_SYS (ftello, off_t, (FILE *fp) _GL_ARG_NONNULL ((1)));
00754 # endif
00755 _GL_CXXALIAS_SYS (ftello, off_t, (FILE *fp));
00756 # endif
00757 _GL_CXXALIASWARN (ftello);
00758 # if (0 || !1) && !0
00759
00760
00761
00762 # if !GNULIB_defined_ftell_function
00763 # undef ftell
00764 # define ftell rpl_ftell
00765 static inline long _GL_ARG_NONNULL ((1))
00766 rpl_ftell (FILE *f)
00767 {
00768 # if 0
00769 return rpl_ftello (f);
00770 # else
00771 return ftello (f);
00772 # endif
00773 }
00774 # define GNULIB_defined_ftell_function 1
00775 # endif
00776 # endif
00777 #elif defined GNULIB_POSIXCHECK
00778 # define _GL_FTELL_WARN
00779 # undef ftell
00780 # undef ftello
00781 # if HAVE_RAW_DECL_FTELLO
00782 _GL_WARN_ON_USE (ftello, "ftello is unportable - "
00783 "use gnulib module ftello for portability");
00784 # endif
00785 #endif
00786
00787 #ifdef _GL_FTELL_WARN
00788 # undef _GL_FTELL_WARN
00789
00790
00791 _GL_WARN_ON_USE (ftell, "ftell cannot handle files larger than 4 GB "
00792 "on 32-bit platforms - "
00793 "use ftello function for handling of large files");
00794 #endif
00795
00796
00797 #if 1
00798 # if 0 && 0
00799 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00800 # undef fwrite
00801 # define fwrite rpl_fwrite
00802 # endif
00803 _GL_FUNCDECL_RPL (fwrite, size_t,
00804 (const void *ptr, size_t s, size_t n, FILE *stream)
00805 _GL_ARG_NONNULL ((1, 4)));
00806 _GL_CXXALIAS_RPL (fwrite, size_t,
00807 (const void *ptr, size_t s, size_t n, FILE *stream));
00808 # else
00809 _GL_CXXALIAS_SYS (fwrite, size_t,
00810 (const void *ptr, size_t s, size_t n, FILE *stream));
00811 # endif
00812 _GL_CXXALIASWARN (fwrite);
00813 #endif
00814
00815 #if 0
00816
00817
00818
00819
00820
00821
00822 # if 0
00823 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00824 # undef getdelim
00825 # define getdelim rpl_getdelim
00826 # endif
00827 _GL_FUNCDECL_RPL (getdelim, ssize_t,
00828 (char **lineptr, size_t *linesize, int delimiter,
00829 FILE *stream)
00830 _GL_ARG_NONNULL ((1, 2, 4)));
00831 _GL_CXXALIAS_RPL (getdelim, ssize_t,
00832 (char **lineptr, size_t *linesize, int delimiter,
00833 FILE *stream));
00834 # else
00835 # if !1
00836 _GL_FUNCDECL_SYS (getdelim, ssize_t,
00837 (char **lineptr, size_t *linesize, int delimiter,
00838 FILE *stream)
00839 _GL_ARG_NONNULL ((1, 2, 4)));
00840 # endif
00841 _GL_CXXALIAS_SYS (getdelim, ssize_t,
00842 (char **lineptr, size_t *linesize, int delimiter,
00843 FILE *stream));
00844 # endif
00845 _GL_CXXALIASWARN (getdelim);
00846 #elif defined GNULIB_POSIXCHECK
00847 # undef getdelim
00848 # if HAVE_RAW_DECL_GETDELIM
00849 _GL_WARN_ON_USE (getdelim, "getdelim is unportable - "
00850 "use gnulib module getdelim for portability");
00851 # endif
00852 #endif
00853
00854 #if 0
00855
00856
00857
00858
00859
00860
00861 # if 0
00862 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00863 # undef getline
00864 # define getline rpl_getline
00865 # endif
00866 _GL_FUNCDECL_RPL (getline, ssize_t,
00867 (char **lineptr, size_t *linesize, FILE *stream)
00868 _GL_ARG_NONNULL ((1, 2, 3)));
00869 _GL_CXXALIAS_RPL (getline, ssize_t,
00870 (char **lineptr, size_t *linesize, FILE *stream));
00871 # else
00872 # if !1
00873 _GL_FUNCDECL_SYS (getline, ssize_t,
00874 (char **lineptr, size_t *linesize, FILE *stream)
00875 _GL_ARG_NONNULL ((1, 2, 3)));
00876 # endif
00877 _GL_CXXALIAS_SYS (getline, ssize_t,
00878 (char **lineptr, size_t *linesize, FILE *stream));
00879 # endif
00880 # if 1
00881 _GL_CXXALIASWARN (getline);
00882 # endif
00883 #elif defined GNULIB_POSIXCHECK
00884 # undef getline
00885 # if HAVE_RAW_DECL_GETLINE
00886 _GL_WARN_ON_USE (getline, "getline is unportable - "
00887 "use gnulib module getline for portability");
00888 # endif
00889 #endif
00890
00891 #if 0 || 0
00892 struct obstack;
00893
00894
00895
00896
00897
00898 # if 0
00899 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00900 # define obstack_printf rpl_obstack_printf
00901 # endif
00902 _GL_FUNCDECL_RPL (obstack_printf, int,
00903 (struct obstack *obs, const char *format, ...)
00904 __attribute__ ((__format__ (__printf__, 2, 3)))
00905 _GL_ARG_NONNULL ((1, 2)));
00906 _GL_CXXALIAS_RPL (obstack_printf, int,
00907 (struct obstack *obs, const char *format, ...));
00908 # else
00909 # if !1
00910 _GL_FUNCDECL_SYS (obstack_printf, int,
00911 (struct obstack *obs, const char *format, ...)
00912 __attribute__ ((__format__ (__printf__, 2, 3)))
00913 _GL_ARG_NONNULL ((1, 2)));
00914 # endif
00915 _GL_CXXALIAS_SYS (obstack_printf, int,
00916 (struct obstack *obs, const char *format, ...));
00917 # endif
00918 _GL_CXXALIASWARN (obstack_printf);
00919 # if 0
00920 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00921 # define obstack_vprintf rpl_obstack_vprintf
00922 # endif
00923 _GL_FUNCDECL_RPL (obstack_vprintf, int,
00924 (struct obstack *obs, const char *format, va_list args)
00925 __attribute__ ((__format__ (__printf__, 2, 0)))
00926 _GL_ARG_NONNULL ((1, 2)));
00927 _GL_CXXALIAS_RPL (obstack_vprintf, int,
00928 (struct obstack *obs, const char *format, va_list args));
00929 # else
00930 # if !1
00931 _GL_FUNCDECL_SYS (obstack_vprintf, int,
00932 (struct obstack *obs, const char *format, va_list args)
00933 __attribute__ ((__format__ (__printf__, 2, 0)))
00934 _GL_ARG_NONNULL ((1, 2)));
00935 # endif
00936 _GL_CXXALIAS_SYS (obstack_vprintf, int,
00937 (struct obstack *obs, const char *format, va_list args));
00938 # endif
00939 _GL_CXXALIASWARN (obstack_vprintf);
00940 #endif
00941
00942 #if 0
00943
00944
00945
00946 # if 0
00947 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00948 # define perror rpl_perror
00949 # endif
00950 _GL_FUNCDECL_RPL (perror, void, (const char *string));
00951 _GL_CXXALIAS_RPL (perror, void, (const char *string));
00952 # else
00953 _GL_CXXALIAS_SYS (perror, void, (const char *string));
00954 # endif
00955 _GL_CXXALIASWARN (perror);
00956 #elif defined GNULIB_POSIXCHECK
00957 # undef perror
00958
00959 _GL_WARN_ON_USE (perror, "perror is not always POSIX compliant - "
00960 "use gnulib module perror for portability");
00961 #endif
00962
00963 #if 0
00964 # if 0
00965 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00966 # undef popen
00967 # define popen rpl_popen
00968 # endif
00969 _GL_FUNCDECL_RPL (popen, FILE *, (const char *cmd, const char *mode)
00970 _GL_ARG_NONNULL ((1, 2)));
00971 _GL_CXXALIAS_RPL (popen, FILE *, (const char *cmd, const char *mode));
00972 # else
00973 _GL_CXXALIAS_SYS (popen, FILE *, (const char *cmd, const char *mode));
00974 # endif
00975 _GL_CXXALIASWARN (popen);
00976 #elif defined GNULIB_POSIXCHECK
00977 # undef popen
00978 # if HAVE_RAW_DECL_POPEN
00979 _GL_WARN_ON_USE (popen, "popen is buggy on some platforms - "
00980 "use gnulib module popen or pipe for more portability");
00981 # endif
00982 #endif
00983
00984 #if 0 || 1
00985 # if (0 && 0) \
00986 || (1 && 0 && 0)
00987 # if defined __GNUC__
00988 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00989
00990 # define printf __printf__
00991 # endif
00992 _GL_FUNCDECL_RPL_1 (__printf__, int,
00993 (const char *format, ...)
00994 __asm__ (""
00995 _GL_STDIO_MACROEXPAND_AND_STRINGIZE(rpl_printf))
00996 __attribute__ ((__format__ (__printf__, 1, 2)))
00997 _GL_ARG_NONNULL ((1)));
00998 _GL_CXXALIAS_RPL_1 (printf, __printf__, int, (const char *format, ...));
00999 # else
01000 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01001 # define printf rpl_printf
01002 # endif
01003 _GL_FUNCDECL_RPL (printf, int,
01004 (const char *format, ...)
01005 __attribute__ ((__format__ (__printf__, 1, 2)))
01006 _GL_ARG_NONNULL ((1)));
01007 _GL_CXXALIAS_RPL (printf, int, (const char *format, ...));
01008 # endif
01009 # define GNULIB_overrides_printf 1
01010 # else
01011 _GL_CXXALIAS_SYS (printf, int, (const char *format, ...));
01012 # endif
01013 _GL_CXXALIASWARN (printf);
01014 #endif
01015 #if !0 && defined GNULIB_POSIXCHECK
01016 # if !GNULIB_overrides_printf
01017 # undef printf
01018 # endif
01019
01020 _GL_WARN_ON_USE (printf, "printf is not always POSIX compliant - "
01021 "use gnulib module printf-posix for portable "
01022 "POSIX compliance");
01023 #endif
01024
01025 #if 1
01026 # if 0 && 0
01027 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01028 # undef putc
01029 # define putc rpl_fputc
01030 # endif
01031 _GL_FUNCDECL_RPL (fputc, int, (int c, FILE *stream) _GL_ARG_NONNULL ((2)));
01032 _GL_CXXALIAS_RPL_1 (putc, rpl_fputc, int, (int c, FILE *stream));
01033 # else
01034 _GL_CXXALIAS_SYS (putc, int, (int c, FILE *stream));
01035 # endif
01036 _GL_CXXALIASWARN (putc);
01037 #endif
01038
01039 #if 1
01040 # if 0 && 0
01041 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01042 # undef putchar
01043 # define putchar rpl_putchar
01044 # endif
01045 _GL_FUNCDECL_RPL (putchar, int, (int c));
01046 _GL_CXXALIAS_RPL (putchar, int, (int c));
01047 # else
01048 _GL_CXXALIAS_SYS (putchar, int, (int c));
01049 # endif
01050 _GL_CXXALIASWARN (putchar);
01051 #endif
01052
01053 #if 1
01054 # if 0 && 0
01055 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01056 # undef puts
01057 # define puts rpl_puts
01058 # endif
01059 _GL_FUNCDECL_RPL (puts, int, (const char *string) _GL_ARG_NONNULL ((1)));
01060 _GL_CXXALIAS_RPL (puts, int, (const char *string));
01061 # else
01062 _GL_CXXALIAS_SYS (puts, int, (const char *string));
01063 # endif
01064 _GL_CXXALIASWARN (puts);
01065 #endif
01066
01067 #if 0
01068 # if 0
01069 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01070 # undef remove
01071 # define remove rpl_remove
01072 # endif
01073 _GL_FUNCDECL_RPL (remove, int, (const char *name) _GL_ARG_NONNULL ((1)));
01074 _GL_CXXALIAS_RPL (remove, int, (const char *name));
01075 # else
01076 _GL_CXXALIAS_SYS (remove, int, (const char *name));
01077 # endif
01078 _GL_CXXALIASWARN (remove);
01079 #elif defined GNULIB_POSIXCHECK
01080 # undef remove
01081
01082 _GL_WARN_ON_USE (remove, "remove cannot handle directories on some platforms - "
01083 "use gnulib module remove for more portability");
01084 #endif
01085
01086 #if 1
01087 # if 0
01088 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01089 # undef rename
01090 # define rename rpl_rename
01091 # endif
01092 _GL_FUNCDECL_RPL (rename, int,
01093 (const char *old_filename, const char *new_filename)
01094 _GL_ARG_NONNULL ((1, 2)));
01095 _GL_CXXALIAS_RPL (rename, int,
01096 (const char *old_filename, const char *new_filename));
01097 # else
01098 _GL_CXXALIAS_SYS (rename, int,
01099 (const char *old_filename, const char *new_filename));
01100 # endif
01101 _GL_CXXALIASWARN (rename);
01102 #elif defined GNULIB_POSIXCHECK
01103 # undef rename
01104
01105 _GL_WARN_ON_USE (rename, "rename is buggy on some platforms - "
01106 "use gnulib module rename for more portability");
01107 #endif
01108
01109 #if 0
01110 # if 0
01111 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01112 # undef renameat
01113 # define renameat rpl_renameat
01114 # endif
01115 _GL_FUNCDECL_RPL (renameat, int,
01116 (int fd1, char const *file1, int fd2, char const *file2)
01117 _GL_ARG_NONNULL ((2, 4)));
01118 _GL_CXXALIAS_RPL (renameat, int,
01119 (int fd1, char const *file1, int fd2, char const *file2));
01120 # else
01121 # if !1
01122 _GL_FUNCDECL_SYS (renameat, int,
01123 (int fd1, char const *file1, int fd2, char const *file2)
01124 _GL_ARG_NONNULL ((2, 4)));
01125 # endif
01126 _GL_CXXALIAS_SYS (renameat, int,
01127 (int fd1, char const *file1, int fd2, char const *file2));
01128 # endif
01129 _GL_CXXALIASWARN (renameat);
01130 #elif defined GNULIB_POSIXCHECK
01131 # undef renameat
01132 # if HAVE_RAW_DECL_RENAMEAT
01133 _GL_WARN_ON_USE (renameat, "renameat is not portable - "
01134 "use gnulib module renameat for portability");
01135 # endif
01136 #endif
01137
01138 #if 0
01139 # if 0
01140 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01141 # define snprintf rpl_snprintf
01142 # endif
01143 _GL_FUNCDECL_RPL (snprintf, int,
01144 (char *str, size_t size, const char *format, ...)
01145 __attribute__ ((__format__ (__printf__, 3, 4)))
01146 _GL_ARG_NONNULL ((3)));
01147 _GL_CXXALIAS_RPL (snprintf, int,
01148 (char *str, size_t size, const char *format, ...));
01149 # else
01150 # if !1
01151 _GL_FUNCDECL_SYS (snprintf, int,
01152 (char *str, size_t size, const char *format, ...)
01153 __attribute__ ((__format__ (__printf__, 3, 4)))
01154 _GL_ARG_NONNULL ((3)));
01155 # endif
01156 _GL_CXXALIAS_SYS (snprintf, int,
01157 (char *str, size_t size, const char *format, ...));
01158 # endif
01159 _GL_CXXALIASWARN (snprintf);
01160 #elif defined GNULIB_POSIXCHECK
01161 # undef snprintf
01162 # if HAVE_RAW_DECL_SNPRINTF
01163 _GL_WARN_ON_USE (snprintf, "snprintf is unportable - "
01164 "use gnulib module snprintf for portability");
01165 # endif
01166 #endif
01167
01168
01169
01170
01171
01172
01173
01174
01175
01176
01177 #if 0
01178 # if 0
01179 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01180 # define sprintf rpl_sprintf
01181 # endif
01182 _GL_FUNCDECL_RPL (sprintf, int, (char *str, const char *format, ...)
01183 __attribute__ ((__format__ (__printf__, 2, 3)))
01184 _GL_ARG_NONNULL ((1, 2)));
01185 _GL_CXXALIAS_RPL (sprintf, int, (char *str, const char *format, ...));
01186 # else
01187 _GL_CXXALIAS_SYS (sprintf, int, (char *str, const char *format, ...));
01188 # endif
01189 _GL_CXXALIASWARN (sprintf);
01190 #elif defined GNULIB_POSIXCHECK
01191 # undef sprintf
01192
01193 _GL_WARN_ON_USE (sprintf, "sprintf is not always POSIX compliant - "
01194 "use gnulib module sprintf-posix for portable "
01195 "POSIX compliance");
01196 #endif
01197
01198 #if 0
01199 # if 0
01200 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01201 # define tmpfile rpl_tmpfile
01202 # endif
01203 _GL_FUNCDECL_RPL (tmpfile, FILE *, (void));
01204 _GL_CXXALIAS_RPL (tmpfile, FILE *, (void));
01205 # else
01206 _GL_CXXALIAS_SYS (tmpfile, FILE *, (void));
01207 # endif
01208 _GL_CXXALIASWARN (tmpfile);
01209 #elif defined GNULIB_POSIXCHECK
01210 # undef tmpfile
01211 # if HAVE_RAW_DECL_TMPFILE
01212 _GL_WARN_ON_USE (tmpfile, "tmpfile is not usable on mingw - "
01213 "use gnulib module tmpfile for portability");
01214 # endif
01215 #endif
01216
01217 #if 0
01218
01219
01220
01221
01222 # if 0
01223 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01224 # define asprintf rpl_asprintf
01225 # endif
01226 _GL_FUNCDECL_RPL (asprintf, int,
01227 (char **result, const char *format, ...)
01228 __attribute__ ((__format__ (__printf__, 2, 3)))
01229 _GL_ARG_NONNULL ((1, 2)));
01230 _GL_CXXALIAS_RPL (asprintf, int,
01231 (char **result, const char *format, ...));
01232 # else
01233 # if !1
01234 _GL_FUNCDECL_SYS (asprintf, int,
01235 (char **result, const char *format, ...)
01236 __attribute__ ((__format__ (__printf__, 2, 3)))
01237 _GL_ARG_NONNULL ((1, 2)));
01238 # endif
01239 _GL_CXXALIAS_SYS (asprintf, int,
01240 (char **result, const char *format, ...));
01241 # endif
01242 _GL_CXXALIASWARN (asprintf);
01243 # if 0
01244 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01245 # define vasprintf rpl_vasprintf
01246 # endif
01247 _GL_FUNCDECL_RPL (vasprintf, int,
01248 (char **result, const char *format, va_list args)
01249 __attribute__ ((__format__ (__printf__, 2, 0)))
01250 _GL_ARG_NONNULL ((1, 2)));
01251 _GL_CXXALIAS_RPL (vasprintf, int,
01252 (char **result, const char *format, va_list args));
01253 # else
01254 # if !1
01255 _GL_FUNCDECL_SYS (vasprintf, int,
01256 (char **result, const char *format, va_list args)
01257 __attribute__ ((__format__ (__printf__, 2, 0)))
01258 _GL_ARG_NONNULL ((1, 2)));
01259 # endif
01260 _GL_CXXALIAS_SYS (vasprintf, int,
01261 (char **result, const char *format, va_list args));
01262 # endif
01263 _GL_CXXALIASWARN (vasprintf);
01264 #endif
01265
01266 #if 0
01267 # if 0
01268 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01269 # define vdprintf rpl_vdprintf
01270 # endif
01271 _GL_FUNCDECL_RPL (vdprintf, int, (int fd, const char *format, va_list args)
01272 __attribute__ ((__format__ (__printf__, 2, 0)))
01273 _GL_ARG_NONNULL ((2)));
01274 _GL_CXXALIAS_RPL (vdprintf, int, (int fd, const char *format, va_list args));
01275 # else
01276 # if !1
01277 _GL_FUNCDECL_SYS (vdprintf, int, (int fd, const char *format, va_list args)
01278 __attribute__ ((__format__ (__printf__, 2, 0)))
01279 _GL_ARG_NONNULL ((2)));
01280 # endif
01281
01282
01283 _GL_CXXALIAS_SYS_CAST (vdprintf, int,
01284 (int fd, const char *format, va_list args));
01285 # endif
01286 _GL_CXXALIASWARN (vdprintf);
01287 #elif defined GNULIB_POSIXCHECK
01288 # undef vdprintf
01289 # if HAVE_RAW_DECL_VDPRINTF
01290 _GL_WARN_ON_USE (vdprintf, "vdprintf is unportable - "
01291 "use gnulib module vdprintf for portability");
01292 # endif
01293 #endif
01294
01295 #if 0 || 1
01296 # if (0 && 0) \
01297 || (1 && 0 && 0)
01298 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01299 # define vfprintf rpl_vfprintf
01300 # endif
01301 # define GNULIB_overrides_vfprintf 1
01302 _GL_FUNCDECL_RPL (vfprintf, int, (FILE *fp, const char *format, va_list args)
01303 __attribute__ ((__format__ (__printf__, 2, 0)))
01304 _GL_ARG_NONNULL ((1, 2)));
01305 _GL_CXXALIAS_RPL (vfprintf, int, (FILE *fp, const char *format, va_list args));
01306 # else
01307
01308
01309
01310 _GL_CXXALIAS_SYS_CAST (vfprintf, int,
01311 (FILE *fp, const char *format, va_list args));
01312 # endif
01313 _GL_CXXALIASWARN (vfprintf);
01314 #endif
01315 #if !0 && defined GNULIB_POSIXCHECK
01316 # if !GNULIB_overrides_vfprintf
01317 # undef vfprintf
01318 # endif
01319
01320 _GL_WARN_ON_USE (vfprintf, "vfprintf is not always POSIX compliant - "
01321 "use gnulib module vfprintf-posix for portable "
01322 "POSIX compliance");
01323 #endif
01324
01325 #if 0 || 1
01326 # if (0 && 0) \
01327 || (1 && 0 && 0)
01328 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01329 # define vprintf rpl_vprintf
01330 # endif
01331 # define GNULIB_overrides_vprintf 1
01332 _GL_FUNCDECL_RPL (vprintf, int, (const char *format, va_list args)
01333 __attribute__ ((__format__ (__printf__, 1, 0)))
01334 _GL_ARG_NONNULL ((1)));
01335 _GL_CXXALIAS_RPL (vprintf, int, (const char *format, va_list args));
01336 # else
01337
01338
01339
01340 _GL_CXXALIAS_SYS_CAST (vprintf, int, (const char *format, va_list args));
01341 # endif
01342 _GL_CXXALIASWARN (vprintf);
01343 #endif
01344 #if !0 && defined GNULIB_POSIXCHECK
01345 # if !GNULIB_overrides_vprintf
01346 # undef vprintf
01347 # endif
01348
01349 _GL_WARN_ON_USE (vprintf, "vprintf is not always POSIX compliant - "
01350 "use gnulib module vprintf-posix for portable "
01351 "POSIX compliance");
01352 #endif
01353
01354 #if 1
01355 # if 0
01356 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01357 # define vsnprintf rpl_vsnprintf
01358 # endif
01359 _GL_FUNCDECL_RPL (vsnprintf, int,
01360 (char *str, size_t size, const char *format, va_list args)
01361 __attribute__ ((__format__ (__printf__, 3, 0)))
01362 _GL_ARG_NONNULL ((3)));
01363 _GL_CXXALIAS_RPL (vsnprintf, int,
01364 (char *str, size_t size, const char *format, va_list args));
01365 # else
01366 # if !1
01367 _GL_FUNCDECL_SYS (vsnprintf, int,
01368 (char *str, size_t size, const char *format, va_list args)
01369 __attribute__ ((__format__ (__printf__, 3, 0)))
01370 _GL_ARG_NONNULL ((3)));
01371 # endif
01372 _GL_CXXALIAS_SYS (vsnprintf, int,
01373 (char *str, size_t size, const char *format, va_list args));
01374 # endif
01375 _GL_CXXALIASWARN (vsnprintf);
01376 #elif defined GNULIB_POSIXCHECK
01377 # undef vsnprintf
01378 # if HAVE_RAW_DECL_VSNPRINTF
01379 _GL_WARN_ON_USE (vsnprintf, "vsnprintf is unportable - "
01380 "use gnulib module vsnprintf for portability");
01381 # endif
01382 #endif
01383
01384 #if 0
01385 # if 0
01386 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01387 # define vsprintf rpl_vsprintf
01388 # endif
01389 _GL_FUNCDECL_RPL (vsprintf, int,
01390 (char *str, const char *format, va_list args)
01391 __attribute__ ((__format__ (__printf__, 2, 0)))
01392 _GL_ARG_NONNULL ((1, 2)));
01393 _GL_CXXALIAS_RPL (vsprintf, int,
01394 (char *str, const char *format, va_list args));
01395 # else
01396
01397
01398
01399 _GL_CXXALIAS_SYS_CAST (vsprintf, int,
01400 (char *str, const char *format, va_list args));
01401 # endif
01402 _GL_CXXALIASWARN (vsprintf);
01403 #elif defined GNULIB_POSIXCHECK
01404 # undef vsprintf
01405
01406 _GL_WARN_ON_USE (vsprintf, "vsprintf is not always POSIX compliant - "
01407 "use gnulib module vsprintf-posix for portable "
01408 "POSIX compliance");
01409 #endif
01410
01411
01412 #endif
01413 #endif
01414 #endif