00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #if __GNUC__ >= 3
00022 #pragma GCC system_header
00023 #endif
00024
00025
00026 #if defined __need_malloc_and_calloc
00027
00028
00029 #include_next <stdlib.h>
00030
00031 #else
00032
00033
00034 #ifndef _GL_STDLIB_H
00035
00036
00037 #include_next <stdlib.h>
00038
00039 #ifndef _GL_STDLIB_H
00040 #define _GL_STDLIB_H
00041
00042
00043 #include <stddef.h>
00044
00045
00046 #if 0 && !defined WEXITSTATUS
00047 # include <sys/wait.h>
00048 #endif
00049
00050
00051 #if (0 || defined GNULIB_POSIXCHECK) && 0
00052 # include <sys/loadavg.h>
00053 #endif
00054
00055
00056
00057 #if 0
00058 # include <random.h>
00059 #endif
00060
00061 #if !1 || (0 && !1) \
00062 || defined GNULIB_POSIXCHECK
00063 # include <stdint.h>
00064 #endif
00065
00066 #if !1
00067
00068
00069 # if !GNULIB_defined_struct_random_data
00070 struct random_data
00071 {
00072 int32_t *fptr;
00073 int32_t *rptr;
00074 int32_t *state;
00075 int rand_type;
00076 int rand_deg;
00077 int rand_sep;
00078 int32_t *end_ptr;
00079 };
00080 # define GNULIB_defined_struct_random_data 1
00081 # endif
00082 #endif
00083
00084 #if (1 || 0 || defined GNULIB_POSIXCHECK) && ! defined __GLIBC__ && !((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)
00085
00086
00087
00088 # include <unistd.h>
00089 #endif
00090
00091 #ifndef __attribute__
00092 # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
00093 # define __attribute__(Spec)
00094 # endif
00095 #endif
00096
00097
00098 #ifndef _GL_CXXDEFS_H
00099 #define _GL_CXXDEFS_H
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
00148
00149
00150
00151
00152
00153
00154
00155
00156
00157
00158
00159
00160
00161
00162 #if defined __cplusplus
00163 # define _GL_EXTERN_C extern "C"
00164 #else
00165 # define _GL_EXTERN_C extern
00166 #endif
00167
00168
00169
00170
00171
00172
00173
00174
00175 #define _GL_FUNCDECL_RPL(func,rettype,parameters_and_attributes) \
00176 _GL_FUNCDECL_RPL_1 (rpl_##func, rettype, parameters_and_attributes)
00177 #define _GL_FUNCDECL_RPL_1(rpl_func,rettype,parameters_and_attributes) \
00178 _GL_EXTERN_C rettype rpl_func parameters_and_attributes
00179
00180
00181
00182
00183
00184
00185
00186
00187 #define _GL_FUNCDECL_SYS(func,rettype,parameters_and_attributes) \
00188 _GL_EXTERN_C rettype func parameters_and_attributes
00189
00190
00191
00192
00193
00194
00195
00196 #define _GL_CXXALIAS_RPL(func,rettype,parameters) \
00197 _GL_CXXALIAS_RPL_1 (func, rpl_##func, rettype, parameters)
00198 #if defined __cplusplus && defined GNULIB_NAMESPACE
00199 # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \
00200 namespace GNULIB_NAMESPACE \
00201 { \
00202 rettype (*const func) parameters = ::rpl_func; \
00203 } \
00204 _GL_EXTERN_C int _gl_cxxalias_dummy
00205 #else
00206 # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \
00207 _GL_EXTERN_C int _gl_cxxalias_dummy
00208 #endif
00209
00210
00211
00212
00213
00214
00215 #if defined __cplusplus && defined GNULIB_NAMESPACE
00216 # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \
00217 namespace GNULIB_NAMESPACE \
00218 { \
00219 rettype (*const func) parameters = \
00220 reinterpret_cast<rettype(*)parameters>(::rpl_func); \
00221 } \
00222 _GL_EXTERN_C int _gl_cxxalias_dummy
00223 #else
00224 # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \
00225 _GL_EXTERN_C int _gl_cxxalias_dummy
00226 #endif
00227
00228
00229
00230
00231
00232
00233
00234
00235 #if defined __cplusplus && defined GNULIB_NAMESPACE
00236
00237
00238
00239
00240
00241
00242 # define _GL_CXXALIAS_SYS(func,rettype,parameters) \
00243 namespace GNULIB_NAMESPACE \
00244 { \
00245 static rettype (*func) parameters = ::func; \
00246 } \
00247 _GL_EXTERN_C int _gl_cxxalias_dummy
00248 #else
00249 # define _GL_CXXALIAS_SYS(func,rettype,parameters) \
00250 _GL_EXTERN_C int _gl_cxxalias_dummy
00251 #endif
00252
00253
00254
00255
00256
00257
00258 #if defined __cplusplus && defined GNULIB_NAMESPACE
00259 # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \
00260 namespace GNULIB_NAMESPACE \
00261 { \
00262 static rettype (*func) parameters = \
00263 reinterpret_cast<rettype(*)parameters>(::func); \
00264 } \
00265 _GL_EXTERN_C int _gl_cxxalias_dummy
00266 #else
00267 # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \
00268 _GL_EXTERN_C int _gl_cxxalias_dummy
00269 #endif
00270
00271
00272
00273
00274
00275
00276
00277 #if defined __cplusplus && defined GNULIB_NAMESPACE
00278
00279
00280
00281
00282
00283 # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \
00284 namespace GNULIB_NAMESPACE \
00285 { \
00286 static rettype (*func) parameters = \
00287 reinterpret_cast<rettype(*)parameters>( \
00288 (rettype2(*)parameters2)(::func)); \
00289 } \
00290 _GL_EXTERN_C int _gl_cxxalias_dummy
00291 #else
00292 # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \
00293 _GL_EXTERN_C int _gl_cxxalias_dummy
00294 #endif
00295
00296
00297
00298
00299
00300 #if defined __cplusplus && defined GNULIB_NAMESPACE
00301 # define _GL_CXXALIASWARN(func) \
00302 _GL_CXXALIASWARN_1 (func, GNULIB_NAMESPACE)
00303 # define _GL_CXXALIASWARN_1(func,namespace) \
00304 _GL_CXXALIASWARN_2 (func, namespace)
00305
00306
00307 # if !__OPTIMIZE__
00308 # define _GL_CXXALIASWARN_2(func,namespace) \
00309 _GL_WARN_ON_USE (func, \
00310 "The symbol ::" #func " refers to the system function. " \
00311 "Use " #namespace "::" #func " instead.")
00312 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
00313 # define _GL_CXXALIASWARN_2(func,namespace) \
00314 extern __typeof__ (func) func
00315 # else
00316 # define _GL_CXXALIASWARN_2(func,namespace) \
00317 _GL_EXTERN_C int _gl_cxxalias_dummy
00318 # endif
00319 #else
00320 # define _GL_CXXALIASWARN(func) \
00321 _GL_EXTERN_C int _gl_cxxalias_dummy
00322 #endif
00323
00324
00325
00326
00327 #if defined __cplusplus && defined GNULIB_NAMESPACE
00328 # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \
00329 _GL_CXXALIASWARN1_1 (func, rettype, parameters_and_attributes, \
00330 GNULIB_NAMESPACE)
00331 # define _GL_CXXALIASWARN1_1(func,rettype,parameters_and_attributes,namespace) \
00332 _GL_CXXALIASWARN1_2 (func, rettype, parameters_and_attributes, namespace)
00333
00334
00335 # if !__OPTIMIZE__
00336 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
00337 _GL_WARN_ON_USE_CXX (func, rettype, parameters_and_attributes, \
00338 "The symbol ::" #func " refers to the system function. " \
00339 "Use " #namespace "::" #func " instead.")
00340 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
00341 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
00342 extern __typeof__ (func) func
00343 # else
00344 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
00345 _GL_EXTERN_C int _gl_cxxalias_dummy
00346 # endif
00347 #else
00348 # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \
00349 _GL_EXTERN_C int _gl_cxxalias_dummy
00350 #endif
00351
00352 #endif
00353
00354
00355
00356
00357
00358 #ifndef _GL_ARG_NONNULL
00359 # if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || __GNUC__ > 3
00360 # define _GL_ARG_NONNULL(params) __attribute__ ((__nonnull__ params))
00361 # else
00362 # define _GL_ARG_NONNULL(params)
00363 # endif
00364 #endif
00365
00366
00367 #ifndef _GL_WARN_ON_USE
00368
00369 # if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__)
00370
00371 # define _GL_WARN_ON_USE(function, message) \
00372 extern __typeof__ (function) function __attribute__ ((__warning__ (message)))
00373 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
00374
00375 # define _GL_WARN_ON_USE(function, message) \
00376 extern __typeof__ (function) function
00377 # else
00378 # define _GL_WARN_ON_USE(function, message) \
00379 _GL_WARN_EXTERN_C int _gl_warn_on_use
00380 # endif
00381 #endif
00382
00383
00384
00385
00386
00387
00388
00389 #ifndef _GL_WARN_ON_USE_CXX
00390 # if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__)
00391 # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
00392 extern rettype function parameters_and_attributes \
00393 __attribute__ ((__warning__ (msg)))
00394 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
00395
00396 # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
00397 extern rettype function parameters_and_attributes
00398 # else
00399 # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
00400 _GL_WARN_EXTERN_C int _gl_warn_on_use
00401 # endif
00402 #endif
00403
00404
00405
00406 #ifndef _GL_WARN_EXTERN_C
00407 # if defined __cplusplus
00408 # define _GL_WARN_EXTERN_C extern "C"
00409 # else
00410 # define _GL_WARN_EXTERN_C extern
00411 # endif
00412 #endif
00413
00414
00415
00416 #ifndef EXIT_SUCCESS
00417 # define EXIT_SUCCESS 0
00418 #endif
00419
00420
00421 #ifndef EXIT_FAILURE
00422 # define EXIT_FAILURE 1
00423 #elif EXIT_FAILURE != 1
00424 # undef EXIT_FAILURE
00425 # define EXIT_FAILURE 1
00426 #endif
00427
00428
00429 #if 0
00430
00431
00432 # if !1
00433 _GL_FUNCDECL_SYS (_Exit, void, (int status) __attribute__ ((__noreturn__)));
00434 # endif
00435 _GL_CXXALIAS_SYS (_Exit, void, (int status));
00436 _GL_CXXALIASWARN (_Exit);
00437 #elif defined GNULIB_POSIXCHECK
00438 # undef _Exit
00439 # if HAVE_RAW_DECL__EXIT
00440 _GL_WARN_ON_USE (_Exit, "_Exit is unportable - "
00441 "use gnulib module _Exit for portability");
00442 # endif
00443 #endif
00444
00445
00446 #if 0
00447
00448
00449 # if !1
00450 _GL_FUNCDECL_SYS (atoll, long long, (const char *string) _GL_ARG_NONNULL ((1)));
00451 # endif
00452 _GL_CXXALIAS_SYS (atoll, long long, (const char *string));
00453 _GL_CXXALIASWARN (atoll);
00454 #elif defined GNULIB_POSIXCHECK
00455 # undef atoll
00456 # if HAVE_RAW_DECL_ATOLL
00457 _GL_WARN_ON_USE (atoll, "atoll is unportable - "
00458 "use gnulib module atoll for portability");
00459 # endif
00460 #endif
00461
00462 #if 0
00463 # if 0
00464 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00465 # undef calloc
00466 # define calloc rpl_calloc
00467 # endif
00468 _GL_FUNCDECL_RPL (calloc, void *, (size_t nmemb, size_t size));
00469 _GL_CXXALIAS_RPL (calloc, void *, (size_t nmemb, size_t size));
00470 # else
00471 _GL_CXXALIAS_SYS (calloc, void *, (size_t nmemb, size_t size));
00472 # endif
00473 _GL_CXXALIASWARN (calloc);
00474 #elif defined GNULIB_POSIXCHECK
00475 # undef calloc
00476
00477 _GL_WARN_ON_USE (calloc, "calloc is not POSIX compliant everywhere - "
00478 "use gnulib module calloc-posix for portability");
00479 #endif
00480
00481 #if 1
00482 # if 0
00483 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00484 # define canonicalize_file_name rpl_canonicalize_file_name
00485 # endif
00486 _GL_FUNCDECL_RPL (canonicalize_file_name, char *, (const char *name)
00487 _GL_ARG_NONNULL ((1)));
00488 _GL_CXXALIAS_RPL (canonicalize_file_name, char *, (const char *name));
00489 # else
00490 # if !1
00491 _GL_FUNCDECL_SYS (canonicalize_file_name, char *, (const char *name)
00492 _GL_ARG_NONNULL ((1)));
00493 # endif
00494 _GL_CXXALIAS_SYS (canonicalize_file_name, char *, (const char *name));
00495 # endif
00496 _GL_CXXALIASWARN (canonicalize_file_name);
00497 #elif defined GNULIB_POSIXCHECK
00498 # undef canonicalize_file_name
00499 # if HAVE_RAW_DECL_CANONICALIZE_FILE_NAME
00500 _GL_WARN_ON_USE (canonicalize_file_name,
00501 "canonicalize_file_name is unportable - "
00502 "use gnulib module canonicalize-lgpl for portability");
00503 # endif
00504 #endif
00505
00506 #if 0
00507
00508
00509
00510
00511 # if !1
00512 _GL_FUNCDECL_SYS (getloadavg, int, (double loadavg[], int nelem)
00513 _GL_ARG_NONNULL ((1)));
00514 # endif
00515 _GL_CXXALIAS_SYS (getloadavg, int, (double loadavg[], int nelem));
00516 _GL_CXXALIASWARN (getloadavg);
00517 #elif defined GNULIB_POSIXCHECK
00518 # undef getloadavg
00519 # if HAVE_RAW_DECL_GETLOADAVG
00520 _GL_WARN_ON_USE (getloadavg, "getloadavg is not portable - "
00521 "use gnulib module getloadavg for portability");
00522 # endif
00523 #endif
00524
00525 #if 0
00526
00527
00528
00529
00530
00531
00532
00533
00534
00535
00536
00537 # if !1
00538 _GL_FUNCDECL_SYS (getsubopt, int,
00539 (char **optionp, char *const *tokens, char **valuep)
00540 _GL_ARG_NONNULL ((1, 2, 3)));
00541 # endif
00542 _GL_CXXALIAS_SYS (getsubopt, int,
00543 (char **optionp, char *const *tokens, char **valuep));
00544 _GL_CXXALIASWARN (getsubopt);
00545 #elif defined GNULIB_POSIXCHECK
00546 # undef getsubopt
00547 # if HAVE_RAW_DECL_GETSUBOPT
00548 _GL_WARN_ON_USE (getsubopt, "getsubopt is unportable - "
00549 "use gnulib module getsubopt for portability");
00550 # endif
00551 #endif
00552
00553 #if 0
00554
00555
00556 # if !1
00557 _GL_FUNCDECL_SYS (grantpt, int, (int fd));
00558 # endif
00559 _GL_CXXALIAS_SYS (grantpt, int, (int fd));
00560 _GL_CXXALIASWARN (grantpt);
00561 #elif defined GNULIB_POSIXCHECK
00562 # undef grantpt
00563 # if HAVE_RAW_DECL_GRANTPT
00564 _GL_WARN_ON_USE (ptsname, "grantpt is not portable - "
00565 "use gnulib module grantpt for portability");
00566 # endif
00567 #endif
00568
00569 #if 1
00570 # if 0
00571 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00572 # undef malloc
00573 # define malloc rpl_malloc
00574 # endif
00575 _GL_FUNCDECL_RPL (malloc, void *, (size_t size));
00576 _GL_CXXALIAS_RPL (malloc, void *, (size_t size));
00577 # else
00578 _GL_CXXALIAS_SYS (malloc, void *, (size_t size));
00579 # endif
00580 _GL_CXXALIASWARN (malloc);
00581 #elif defined GNULIB_POSIXCHECK
00582 # undef malloc
00583
00584 _GL_WARN_ON_USE (malloc, "malloc is not POSIX compliant everywhere - "
00585 "use gnulib module malloc-posix for portability");
00586 #endif
00587
00588 #if 0
00589
00590
00591
00592
00593
00594 # if !1
00595 _GL_FUNCDECL_SYS (mkdtemp, char *, (char * ) _GL_ARG_NONNULL ((1)));
00596 # endif
00597 _GL_CXXALIAS_SYS (mkdtemp, char *, (char * ));
00598 _GL_CXXALIASWARN (mkdtemp);
00599 #elif defined GNULIB_POSIXCHECK
00600 # undef mkdtemp
00601 # if HAVE_RAW_DECL_MKDTEMP
00602 _GL_WARN_ON_USE (mkdtemp, "mkdtemp is unportable - "
00603 "use gnulib module mkdtemp for portability");
00604 # endif
00605 #endif
00606
00607 #if 0
00608
00609
00610
00611
00612
00613
00614
00615
00616
00617
00618
00619
00620 # if !1
00621 _GL_FUNCDECL_SYS (mkostemp, int, (char * , int )
00622 _GL_ARG_NONNULL ((1)));
00623 # endif
00624 _GL_CXXALIAS_SYS (mkostemp, int, (char * , int ));
00625 _GL_CXXALIASWARN (mkostemp);
00626 #elif defined GNULIB_POSIXCHECK
00627 # undef mkostemp
00628 # if HAVE_RAW_DECL_MKOSTEMP
00629 _GL_WARN_ON_USE (mkostemp, "mkostemp is unportable - "
00630 "use gnulib module mkostemp for portability");
00631 # endif
00632 #endif
00633
00634 #if 0
00635
00636
00637
00638
00639
00640
00641
00642
00643
00644
00645
00646
00647
00648 # if !1
00649 _GL_FUNCDECL_SYS (mkostemps, int,
00650 (char * , int , int )
00651 _GL_ARG_NONNULL ((1)));
00652 # endif
00653 _GL_CXXALIAS_SYS (mkostemps, int,
00654 (char * , int , int ));
00655 _GL_CXXALIASWARN (mkostemps);
00656 #elif defined GNULIB_POSIXCHECK
00657 # undef mkostemps
00658 # if HAVE_RAW_DECL_MKOSTEMPS
00659 _GL_WARN_ON_USE (mkostemps, "mkostemps is unportable - "
00660 "use gnulib module mkostemps for portability");
00661 # endif
00662 #endif
00663
00664 #if 1
00665
00666
00667
00668
00669
00670
00671
00672
00673
00674 # if 0
00675 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00676 # define mkstemp rpl_mkstemp
00677 # endif
00678 _GL_FUNCDECL_RPL (mkstemp, int, (char * ) _GL_ARG_NONNULL ((1)));
00679 _GL_CXXALIAS_RPL (mkstemp, int, (char * ));
00680 # else
00681 # if ! 1
00682 _GL_FUNCDECL_SYS (mkstemp, int, (char * ) _GL_ARG_NONNULL ((1)));
00683 # endif
00684 _GL_CXXALIAS_SYS (mkstemp, int, (char * ));
00685 # endif
00686 _GL_CXXALIASWARN (mkstemp);
00687 #elif defined GNULIB_POSIXCHECK
00688 # undef mkstemp
00689 # if HAVE_RAW_DECL_MKSTEMP
00690 _GL_WARN_ON_USE (mkstemp, "mkstemp is unportable - "
00691 "use gnulib module mkstemp for portability");
00692 # endif
00693 #endif
00694
00695 #if 0
00696
00697
00698
00699
00700
00701
00702
00703
00704
00705
00706 # if !1
00707 _GL_FUNCDECL_SYS (mkstemps, int, (char * , int )
00708 _GL_ARG_NONNULL ((1)));
00709 # endif
00710 _GL_CXXALIAS_SYS (mkstemps, int, (char * , int ));
00711 _GL_CXXALIASWARN (mkstemps);
00712 #elif defined GNULIB_POSIXCHECK
00713 # undef mkstemps
00714 # if HAVE_RAW_DECL_MKSTEMPS
00715 _GL_WARN_ON_USE (mkstemps, "mkstemps is unportable - "
00716 "use gnulib module mkstemps for portability");
00717 # endif
00718 #endif
00719
00720 #if 0
00721
00722
00723 # if !1
00724 _GL_FUNCDECL_SYS (ptsname, char *, (int fd));
00725 # endif
00726 _GL_CXXALIAS_SYS (ptsname, char *, (int fd));
00727 _GL_CXXALIASWARN (ptsname);
00728 #elif defined GNULIB_POSIXCHECK
00729 # undef ptsname
00730 # if HAVE_RAW_DECL_PTSNAME
00731 _GL_WARN_ON_USE (ptsname, "ptsname is not portable - "
00732 "use gnulib module ptsname for portability");
00733 # endif
00734 #endif
00735
00736 #if 0
00737 # if 0
00738 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00739 # undef putenv
00740 # define putenv rpl_putenv
00741 # endif
00742 _GL_FUNCDECL_RPL (putenv, int, (char *string) _GL_ARG_NONNULL ((1)));
00743 _GL_CXXALIAS_RPL (putenv, int, (char *string));
00744 # else
00745 _GL_CXXALIAS_SYS (putenv, int, (char *string));
00746 # endif
00747 _GL_CXXALIASWARN (putenv);
00748 #endif
00749
00750
00751 #if 0
00752 # if !1
00753 # ifndef RAND_MAX
00754 # define RAND_MAX 2147483647
00755 # endif
00756 # endif
00757 #endif
00758
00759 #if 0
00760 # if !1
00761 _GL_FUNCDECL_SYS (random_r, int, (struct random_data *buf, int32_t *result)
00762 _GL_ARG_NONNULL ((1, 2)));
00763 # endif
00764 _GL_CXXALIAS_SYS (random_r, int, (struct random_data *buf, int32_t *result));
00765 _GL_CXXALIASWARN (random_r);
00766 #elif defined GNULIB_POSIXCHECK
00767 # undef random_r
00768 # if HAVE_RAW_DECL_RANDOM_R
00769 _GL_WARN_ON_USE (random_r, "random_r is unportable - "
00770 "use gnulib module random_r for portability");
00771 # endif
00772 #endif
00773
00774 #if 0
00775 # if !1
00776 _GL_FUNCDECL_SYS (srandom_r, int,
00777 (unsigned int seed, struct random_data *rand_state)
00778 _GL_ARG_NONNULL ((2)));
00779 # endif
00780 _GL_CXXALIAS_SYS (srandom_r, int,
00781 (unsigned int seed, struct random_data *rand_state));
00782 _GL_CXXALIASWARN (srandom_r);
00783 #elif defined GNULIB_POSIXCHECK
00784 # undef srandom_r
00785 # if HAVE_RAW_DECL_SRANDOM_R
00786 _GL_WARN_ON_USE (srandom_r, "srandom_r is unportable - "
00787 "use gnulib module random_r for portability");
00788 # endif
00789 #endif
00790
00791 #if 0
00792 # if !1
00793 _GL_FUNCDECL_SYS (initstate_r, int,
00794 (unsigned int seed, char *buf, size_t buf_size,
00795 struct random_data *rand_state)
00796 _GL_ARG_NONNULL ((2, 4)));
00797 # endif
00798 _GL_CXXALIAS_SYS (initstate_r, int,
00799 (unsigned int seed, char *buf, size_t buf_size,
00800 struct random_data *rand_state));
00801 _GL_CXXALIASWARN (initstate_r);
00802 #elif defined GNULIB_POSIXCHECK
00803 # undef initstate_r
00804 # if HAVE_RAW_DECL_INITSTATE_R
00805 _GL_WARN_ON_USE (initstate_r, "initstate_r is unportable - "
00806 "use gnulib module random_r for portability");
00807 # endif
00808 #endif
00809
00810 #if 0
00811 # if !1
00812 _GL_FUNCDECL_SYS (setstate_r, int,
00813 (char *arg_state, struct random_data *rand_state)
00814 _GL_ARG_NONNULL ((1, 2)));
00815 # endif
00816 _GL_CXXALIAS_SYS (setstate_r, int,
00817 (char *arg_state, struct random_data *rand_state));
00818 _GL_CXXALIASWARN (setstate_r);
00819 #elif defined GNULIB_POSIXCHECK
00820 # undef setstate_r
00821 # if HAVE_RAW_DECL_SETSTATE_R
00822 _GL_WARN_ON_USE (setstate_r, "setstate_r is unportable - "
00823 "use gnulib module random_r for portability");
00824 # endif
00825 #endif
00826
00827
00828 #if 1
00829 # if 0
00830 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00831 # undef realloc
00832 # define realloc rpl_realloc
00833 # endif
00834 _GL_FUNCDECL_RPL (realloc, void *, (void *ptr, size_t size));
00835 _GL_CXXALIAS_RPL (realloc, void *, (void *ptr, size_t size));
00836 # else
00837 _GL_CXXALIAS_SYS (realloc, void *, (void *ptr, size_t size));
00838 # endif
00839 _GL_CXXALIASWARN (realloc);
00840 #elif defined GNULIB_POSIXCHECK
00841 # undef realloc
00842
00843 _GL_WARN_ON_USE (realloc, "realloc is not POSIX compliant everywhere - "
00844 "use gnulib module realloc-posix for portability");
00845 #endif
00846
00847 #if 1
00848 # if 0
00849 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00850 # define realpath rpl_realpath
00851 # endif
00852 _GL_FUNCDECL_RPL (realpath, char *, (const char *name, char *resolved)
00853 _GL_ARG_NONNULL ((1)));
00854 _GL_CXXALIAS_RPL (realpath, char *, (const char *name, char *resolved));
00855 # else
00856 # if !1
00857 _GL_FUNCDECL_SYS (realpath, char *, (const char *name, char *resolved)
00858 _GL_ARG_NONNULL ((1)));
00859 # endif
00860 _GL_CXXALIAS_SYS (realpath, char *, (const char *name, char *resolved));
00861 # endif
00862 _GL_CXXALIASWARN (realpath);
00863 #elif defined GNULIB_POSIXCHECK
00864 # undef realpath
00865 # if HAVE_RAW_DECL_REALPATH
00866 _GL_WARN_ON_USE (realpath, "realpath is unportable - use gnulib module "
00867 "canonicalize or canonicalize-lgpl for portability");
00868 # endif
00869 #endif
00870
00871 #if 0
00872
00873
00874 # if !1
00875 _GL_FUNCDECL_SYS (rpmatch, int, (const char *response) _GL_ARG_NONNULL ((1)));
00876 # endif
00877 _GL_CXXALIAS_SYS (rpmatch, int, (const char *response));
00878 _GL_CXXALIASWARN (rpmatch);
00879 #elif defined GNULIB_POSIXCHECK
00880 # undef rpmatch
00881 # if HAVE_RAW_DECL_RPMATCH
00882 _GL_WARN_ON_USE (rpmatch, "rpmatch is unportable - "
00883 "use gnulib module rpmatch for portability");
00884 # endif
00885 #endif
00886
00887 #if 0
00888
00889
00890 # if 0
00891 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00892 # undef setenv
00893 # define setenv rpl_setenv
00894 # endif
00895 _GL_FUNCDECL_RPL (setenv, int,
00896 (const char *name, const char *value, int replace)
00897 _GL_ARG_NONNULL ((1)));
00898 _GL_CXXALIAS_RPL (setenv, int,
00899 (const char *name, const char *value, int replace));
00900 # else
00901 # if !1
00902 _GL_FUNCDECL_SYS (setenv, int,
00903 (const char *name, const char *value, int replace)
00904 _GL_ARG_NONNULL ((1)));
00905 # endif
00906 _GL_CXXALIAS_SYS (setenv, int,
00907 (const char *name, const char *value, int replace));
00908 # endif
00909 # if !(0 && !1)
00910 _GL_CXXALIASWARN (setenv);
00911 # endif
00912 #elif defined GNULIB_POSIXCHECK
00913 # undef setenv
00914 # if HAVE_RAW_DECL_SETENV
00915 _GL_WARN_ON_USE (setenv, "setenv is unportable - "
00916 "use gnulib module setenv for portability");
00917 # endif
00918 #endif
00919
00920 #if 0
00921
00922 # if 0
00923 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00924 # define strtod rpl_strtod
00925 # endif
00926 _GL_FUNCDECL_RPL (strtod, double, (const char *str, char **endp)
00927 _GL_ARG_NONNULL ((1)));
00928 _GL_CXXALIAS_RPL (strtod, double, (const char *str, char **endp));
00929 # else
00930 # if !1
00931 _GL_FUNCDECL_SYS (strtod, double, (const char *str, char **endp)
00932 _GL_ARG_NONNULL ((1)));
00933 # endif
00934 _GL_CXXALIAS_SYS (strtod, double, (const char *str, char **endp));
00935 # endif
00936 _GL_CXXALIASWARN (strtod);
00937 #elif defined GNULIB_POSIXCHECK
00938 # undef strtod
00939 # if HAVE_RAW_DECL_STRTOD
00940 _GL_WARN_ON_USE (strtod, "strtod is unportable - "
00941 "use gnulib module strtod for portability");
00942 # endif
00943 #endif
00944
00945 #if 0
00946
00947
00948
00949
00950
00951
00952
00953
00954 # if !1
00955 _GL_FUNCDECL_SYS (strtoll, long long,
00956 (const char *string, char **endptr, int base)
00957 _GL_ARG_NONNULL ((1)));
00958 # endif
00959 _GL_CXXALIAS_SYS (strtoll, long long,
00960 (const char *string, char **endptr, int base));
00961 _GL_CXXALIASWARN (strtoll);
00962 #elif defined GNULIB_POSIXCHECK
00963 # undef strtoll
00964 # if HAVE_RAW_DECL_STRTOLL
00965 _GL_WARN_ON_USE (strtoll, "strtoll is unportable - "
00966 "use gnulib module strtoll for portability");
00967 # endif
00968 #endif
00969
00970 #if 0
00971
00972
00973
00974
00975
00976
00977
00978
00979 # if !1
00980 _GL_FUNCDECL_SYS (strtoull, unsigned long long,
00981 (const char *string, char **endptr, int base)
00982 _GL_ARG_NONNULL ((1)));
00983 # endif
00984 _GL_CXXALIAS_SYS (strtoull, unsigned long long,
00985 (const char *string, char **endptr, int base));
00986 _GL_CXXALIASWARN (strtoull);
00987 #elif defined GNULIB_POSIXCHECK
00988 # undef strtoull
00989 # if HAVE_RAW_DECL_STRTOULL
00990 _GL_WARN_ON_USE (strtoull, "strtoull is unportable - "
00991 "use gnulib module strtoull for portability");
00992 # endif
00993 #endif
00994
00995 #if 0
00996
00997
00998 # if !1
00999 _GL_FUNCDECL_SYS (unlockpt, int, (int fd));
01000 # endif
01001 _GL_CXXALIAS_SYS (unlockpt, int, (int fd));
01002 _GL_CXXALIASWARN (unlockpt);
01003 #elif defined GNULIB_POSIXCHECK
01004 # undef unlockpt
01005 # if HAVE_RAW_DECL_UNLOCKPT
01006 _GL_WARN_ON_USE (unlockpt, "unlockpt is not portable - "
01007 "use gnulib module unlockpt for portability");
01008 # endif
01009 #endif
01010
01011 #if 0
01012
01013 # if 0
01014 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01015 # undef unsetenv
01016 # define unsetenv rpl_unsetenv
01017 # endif
01018 _GL_FUNCDECL_RPL (unsetenv, int, (const char *name) _GL_ARG_NONNULL ((1)));
01019 _GL_CXXALIAS_RPL (unsetenv, int, (const char *name));
01020 # else
01021 # if !1
01022 _GL_FUNCDECL_SYS (unsetenv, int, (const char *name) _GL_ARG_NONNULL ((1)));
01023 # endif
01024 _GL_CXXALIAS_SYS (unsetenv, int, (const char *name));
01025 # endif
01026 # if !(0 && !1)
01027 _GL_CXXALIASWARN (unsetenv);
01028 # endif
01029 #elif defined GNULIB_POSIXCHECK
01030 # undef unsetenv
01031 # if HAVE_RAW_DECL_UNSETENV
01032 _GL_WARN_ON_USE (unsetenv, "unsetenv is unportable - "
01033 "use gnulib module unsetenv for portability");
01034 # endif
01035 #endif
01036
01037
01038 #endif
01039 #endif
01040 #endif