00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #if __GNUC__ >= 3
00021 @PRAGMA_SYSTEM_HEADER@
00022 #endif
00023 @PRAGMA_COLUMNS@
00024
00025 #if defined __need_malloc_and_calloc
00026
00027
00028 #@INCLUDE_NEXT@ @NEXT_STDLIB_H@
00029
00030 #else
00031
00032
00033 #ifndef _GL_STDLIB_H
00034
00035
00036 #@INCLUDE_NEXT@ @NEXT_STDLIB_H@
00037
00038 #ifndef _GL_STDLIB_H
00039 #define _GL_STDLIB_H
00040
00041
00042 #include <stddef.h>
00043
00044
00045 #if @GNULIB_SYSTEM_POSIX@ && !defined WEXITSTATUS
00046 # include <sys/wait.h>
00047 #endif
00048
00049
00050 #if (@GNULIB_GETLOADAVG@ || defined GNULIB_POSIXCHECK) && @HAVE_SYS_LOADAVG_H@
00051 # include <sys/loadavg.h>
00052 #endif
00053
00054
00055
00056 #if @HAVE_RANDOM_H@
00057 # include <random.h>
00058 #endif
00059
00060 #if !@HAVE_STRUCT_RANDOM_DATA@ || (@GNULIB_RANDOM_R@ && !@HAVE_RANDOM_R@) \
00061 || defined GNULIB_POSIXCHECK
00062 # include <stdint.h>
00063 #endif
00064
00065 #if !@HAVE_STRUCT_RANDOM_DATA@
00066
00067
00068 # if !GNULIB_defined_struct_random_data
00069 struct random_data
00070 {
00071 int32_t *fptr;
00072 int32_t *rptr;
00073 int32_t *state;
00074 int rand_type;
00075 int rand_deg;
00076 int rand_sep;
00077 int32_t *end_ptr;
00078 };
00079 # define GNULIB_defined_struct_random_data 1
00080 # endif
00081 #endif
00082
00083 #if (@GNULIB_MKSTEMP@ || @GNULIB_GETSUBOPT@ || defined GNULIB_POSIXCHECK) && ! defined __GLIBC__ && !((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)
00084
00085
00086
00087 # include <unistd.h>
00088 #endif
00089
00090 #ifndef __attribute__
00091 # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
00092 # define __attribute__(Spec)
00093 # endif
00094 #endif
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104 #ifndef EXIT_SUCCESS
00105 # define EXIT_SUCCESS 0
00106 #endif
00107
00108
00109 #ifndef EXIT_FAILURE
00110 # define EXIT_FAILURE 1
00111 #elif EXIT_FAILURE != 1
00112 # undef EXIT_FAILURE
00113 # define EXIT_FAILURE 1
00114 #endif
00115
00116
00117 #if @GNULIB__EXIT@
00118
00119
00120 # if !@HAVE__EXIT@
00121 _GL_FUNCDECL_SYS (_Exit, void, (int status) __attribute__ ((__noreturn__)));
00122 # endif
00123 _GL_CXXALIAS_SYS (_Exit, void, (int status));
00124 _GL_CXXALIASWARN (_Exit);
00125 #elif defined GNULIB_POSIXCHECK
00126 # undef _Exit
00127 # if HAVE_RAW_DECL__EXIT
00128 _GL_WARN_ON_USE (_Exit, "_Exit is unportable - "
00129 "use gnulib module _Exit for portability");
00130 # endif
00131 #endif
00132
00133
00134 #if @GNULIB_ATOLL@
00135
00136
00137 # if !@HAVE_ATOLL@
00138 _GL_FUNCDECL_SYS (atoll, long long, (const char *string) _GL_ARG_NONNULL ((1)));
00139 # endif
00140 _GL_CXXALIAS_SYS (atoll, long long, (const char *string));
00141 _GL_CXXALIASWARN (atoll);
00142 #elif defined GNULIB_POSIXCHECK
00143 # undef atoll
00144 # if HAVE_RAW_DECL_ATOLL
00145 _GL_WARN_ON_USE (atoll, "atoll is unportable - "
00146 "use gnulib module atoll for portability");
00147 # endif
00148 #endif
00149
00150 #if @GNULIB_CALLOC_POSIX@
00151 # if @REPLACE_CALLOC@
00152 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00153 # undef calloc
00154 # define calloc rpl_calloc
00155 # endif
00156 _GL_FUNCDECL_RPL (calloc, void *, (size_t nmemb, size_t size));
00157 _GL_CXXALIAS_RPL (calloc, void *, (size_t nmemb, size_t size));
00158 # else
00159 _GL_CXXALIAS_SYS (calloc, void *, (size_t nmemb, size_t size));
00160 # endif
00161 _GL_CXXALIASWARN (calloc);
00162 #elif defined GNULIB_POSIXCHECK
00163 # undef calloc
00164
00165 _GL_WARN_ON_USE (calloc, "calloc is not POSIX compliant everywhere - "
00166 "use gnulib module calloc-posix for portability");
00167 #endif
00168
00169 #if @GNULIB_CANONICALIZE_FILE_NAME@
00170 # if @REPLACE_CANONICALIZE_FILE_NAME@
00171 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00172 # define canonicalize_file_name rpl_canonicalize_file_name
00173 # endif
00174 _GL_FUNCDECL_RPL (canonicalize_file_name, char *, (const char *name)
00175 _GL_ARG_NONNULL ((1)));
00176 _GL_CXXALIAS_RPL (canonicalize_file_name, char *, (const char *name));
00177 # else
00178 # if !@HAVE_CANONICALIZE_FILE_NAME@
00179 _GL_FUNCDECL_SYS (canonicalize_file_name, char *, (const char *name)
00180 _GL_ARG_NONNULL ((1)));
00181 # endif
00182 _GL_CXXALIAS_SYS (canonicalize_file_name, char *, (const char *name));
00183 # endif
00184 _GL_CXXALIASWARN (canonicalize_file_name);
00185 #elif defined GNULIB_POSIXCHECK
00186 # undef canonicalize_file_name
00187 # if HAVE_RAW_DECL_CANONICALIZE_FILE_NAME
00188 _GL_WARN_ON_USE (canonicalize_file_name,
00189 "canonicalize_file_name is unportable - "
00190 "use gnulib module canonicalize-lgpl for portability");
00191 # endif
00192 #endif
00193
00194 #if @GNULIB_GETLOADAVG@
00195
00196
00197
00198
00199 # if !@HAVE_DECL_GETLOADAVG@
00200 _GL_FUNCDECL_SYS (getloadavg, int, (double loadavg[], int nelem)
00201 _GL_ARG_NONNULL ((1)));
00202 # endif
00203 _GL_CXXALIAS_SYS (getloadavg, int, (double loadavg[], int nelem));
00204 _GL_CXXALIASWARN (getloadavg);
00205 #elif defined GNULIB_POSIXCHECK
00206 # undef getloadavg
00207 # if HAVE_RAW_DECL_GETLOADAVG
00208 _GL_WARN_ON_USE (getloadavg, "getloadavg is not portable - "
00209 "use gnulib module getloadavg for portability");
00210 # endif
00211 #endif
00212
00213 #if @GNULIB_GETSUBOPT@
00214
00215
00216
00217
00218
00219
00220
00221
00222
00223
00224
00225 # if !@HAVE_GETSUBOPT@
00226 _GL_FUNCDECL_SYS (getsubopt, int,
00227 (char **optionp, char *const *tokens, char **valuep)
00228 _GL_ARG_NONNULL ((1, 2, 3)));
00229 # endif
00230 _GL_CXXALIAS_SYS (getsubopt, int,
00231 (char **optionp, char *const *tokens, char **valuep));
00232 _GL_CXXALIASWARN (getsubopt);
00233 #elif defined GNULIB_POSIXCHECK
00234 # undef getsubopt
00235 # if HAVE_RAW_DECL_GETSUBOPT
00236 _GL_WARN_ON_USE (getsubopt, "getsubopt is unportable - "
00237 "use gnulib module getsubopt for portability");
00238 # endif
00239 #endif
00240
00241 #if @GNULIB_GRANTPT@
00242
00243
00244 # if !@HAVE_GRANTPT@
00245 _GL_FUNCDECL_SYS (grantpt, int, (int fd));
00246 # endif
00247 _GL_CXXALIAS_SYS (grantpt, int, (int fd));
00248 _GL_CXXALIASWARN (grantpt);
00249 #elif defined GNULIB_POSIXCHECK
00250 # undef grantpt
00251 # if HAVE_RAW_DECL_GRANTPT
00252 _GL_WARN_ON_USE (ptsname, "grantpt is not portable - "
00253 "use gnulib module grantpt for portability");
00254 # endif
00255 #endif
00256
00257 #if @GNULIB_MALLOC_POSIX@
00258 # if @REPLACE_MALLOC@
00259 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00260 # undef malloc
00261 # define malloc rpl_malloc
00262 # endif
00263 _GL_FUNCDECL_RPL (malloc, void *, (size_t size));
00264 _GL_CXXALIAS_RPL (malloc, void *, (size_t size));
00265 # else
00266 _GL_CXXALIAS_SYS (malloc, void *, (size_t size));
00267 # endif
00268 _GL_CXXALIASWARN (malloc);
00269 #elif defined GNULIB_POSIXCHECK
00270 # undef malloc
00271
00272 _GL_WARN_ON_USE (malloc, "malloc is not POSIX compliant everywhere - "
00273 "use gnulib module malloc-posix for portability");
00274 #endif
00275
00276 #if @GNULIB_MKDTEMP@
00277
00278
00279
00280
00281
00282 # if !@HAVE_MKDTEMP@
00283 _GL_FUNCDECL_SYS (mkdtemp, char *, (char * ) _GL_ARG_NONNULL ((1)));
00284 # endif
00285 _GL_CXXALIAS_SYS (mkdtemp, char *, (char * ));
00286 _GL_CXXALIASWARN (mkdtemp);
00287 #elif defined GNULIB_POSIXCHECK
00288 # undef mkdtemp
00289 # if HAVE_RAW_DECL_MKDTEMP
00290 _GL_WARN_ON_USE (mkdtemp, "mkdtemp is unportable - "
00291 "use gnulib module mkdtemp for portability");
00292 # endif
00293 #endif
00294
00295 #if @GNULIB_MKOSTEMP@
00296
00297
00298
00299
00300
00301
00302
00303
00304
00305
00306
00307
00308 # if !@HAVE_MKOSTEMP@
00309 _GL_FUNCDECL_SYS (mkostemp, int, (char * , int )
00310 _GL_ARG_NONNULL ((1)));
00311 # endif
00312 _GL_CXXALIAS_SYS (mkostemp, int, (char * , int ));
00313 _GL_CXXALIASWARN (mkostemp);
00314 #elif defined GNULIB_POSIXCHECK
00315 # undef mkostemp
00316 # if HAVE_RAW_DECL_MKOSTEMP
00317 _GL_WARN_ON_USE (mkostemp, "mkostemp is unportable - "
00318 "use gnulib module mkostemp for portability");
00319 # endif
00320 #endif
00321
00322 #if @GNULIB_MKOSTEMPS@
00323
00324
00325
00326
00327
00328
00329
00330
00331
00332
00333
00334
00335
00336 # if !@HAVE_MKOSTEMPS@
00337 _GL_FUNCDECL_SYS (mkostemps, int,
00338 (char * , int , int )
00339 _GL_ARG_NONNULL ((1)));
00340 # endif
00341 _GL_CXXALIAS_SYS (mkostemps, int,
00342 (char * , int , int ));
00343 _GL_CXXALIASWARN (mkostemps);
00344 #elif defined GNULIB_POSIXCHECK
00345 # undef mkostemps
00346 # if HAVE_RAW_DECL_MKOSTEMPS
00347 _GL_WARN_ON_USE (mkostemps, "mkostemps is unportable - "
00348 "use gnulib module mkostemps for portability");
00349 # endif
00350 #endif
00351
00352 #if @GNULIB_MKSTEMP@
00353
00354
00355
00356
00357
00358
00359
00360
00361
00362 # if @REPLACE_MKSTEMP@
00363 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00364 # define mkstemp rpl_mkstemp
00365 # endif
00366 _GL_FUNCDECL_RPL (mkstemp, int, (char * ) _GL_ARG_NONNULL ((1)));
00367 _GL_CXXALIAS_RPL (mkstemp, int, (char * ));
00368 # else
00369 # if ! @HAVE_MKSTEMP@
00370 _GL_FUNCDECL_SYS (mkstemp, int, (char * ) _GL_ARG_NONNULL ((1)));
00371 # endif
00372 _GL_CXXALIAS_SYS (mkstemp, int, (char * ));
00373 # endif
00374 _GL_CXXALIASWARN (mkstemp);
00375 #elif defined GNULIB_POSIXCHECK
00376 # undef mkstemp
00377 # if HAVE_RAW_DECL_MKSTEMP
00378 _GL_WARN_ON_USE (mkstemp, "mkstemp is unportable - "
00379 "use gnulib module mkstemp for portability");
00380 # endif
00381 #endif
00382
00383 #if @GNULIB_MKSTEMPS@
00384
00385
00386
00387
00388
00389
00390
00391
00392
00393
00394 # if !@HAVE_MKSTEMPS@
00395 _GL_FUNCDECL_SYS (mkstemps, int, (char * , int )
00396 _GL_ARG_NONNULL ((1)));
00397 # endif
00398 _GL_CXXALIAS_SYS (mkstemps, int, (char * , int ));
00399 _GL_CXXALIASWARN (mkstemps);
00400 #elif defined GNULIB_POSIXCHECK
00401 # undef mkstemps
00402 # if HAVE_RAW_DECL_MKSTEMPS
00403 _GL_WARN_ON_USE (mkstemps, "mkstemps is unportable - "
00404 "use gnulib module mkstemps for portability");
00405 # endif
00406 #endif
00407
00408 #if @GNULIB_PTSNAME@
00409
00410
00411 # if !@HAVE_PTSNAME@
00412 _GL_FUNCDECL_SYS (ptsname, char *, (int fd));
00413 # endif
00414 _GL_CXXALIAS_SYS (ptsname, char *, (int fd));
00415 _GL_CXXALIASWARN (ptsname);
00416 #elif defined GNULIB_POSIXCHECK
00417 # undef ptsname
00418 # if HAVE_RAW_DECL_PTSNAME
00419 _GL_WARN_ON_USE (ptsname, "ptsname is not portable - "
00420 "use gnulib module ptsname for portability");
00421 # endif
00422 #endif
00423
00424 #if @GNULIB_PUTENV@
00425 # if @REPLACE_PUTENV@
00426 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00427 # undef putenv
00428 # define putenv rpl_putenv
00429 # endif
00430 _GL_FUNCDECL_RPL (putenv, int, (char *string) _GL_ARG_NONNULL ((1)));
00431 _GL_CXXALIAS_RPL (putenv, int, (char *string));
00432 # else
00433 _GL_CXXALIAS_SYS (putenv, int, (char *string));
00434 # endif
00435 _GL_CXXALIASWARN (putenv);
00436 #endif
00437
00438
00439 #if @GNULIB_RANDOM_R@
00440 # if !@HAVE_RANDOM_R@
00441 # ifndef RAND_MAX
00442 # define RAND_MAX 2147483647
00443 # endif
00444 # endif
00445 #endif
00446
00447 #if @GNULIB_RANDOM_R@
00448 # if !@HAVE_RANDOM_R@
00449 _GL_FUNCDECL_SYS (random_r, int, (struct random_data *buf, int32_t *result)
00450 _GL_ARG_NONNULL ((1, 2)));
00451 # endif
00452 _GL_CXXALIAS_SYS (random_r, int, (struct random_data *buf, int32_t *result));
00453 _GL_CXXALIASWARN (random_r);
00454 #elif defined GNULIB_POSIXCHECK
00455 # undef random_r
00456 # if HAVE_RAW_DECL_RANDOM_R
00457 _GL_WARN_ON_USE (random_r, "random_r is unportable - "
00458 "use gnulib module random_r for portability");
00459 # endif
00460 #endif
00461
00462 #if @GNULIB_RANDOM_R@
00463 # if !@HAVE_RANDOM_R@
00464 _GL_FUNCDECL_SYS (srandom_r, int,
00465 (unsigned int seed, struct random_data *rand_state)
00466 _GL_ARG_NONNULL ((2)));
00467 # endif
00468 _GL_CXXALIAS_SYS (srandom_r, int,
00469 (unsigned int seed, struct random_data *rand_state));
00470 _GL_CXXALIASWARN (srandom_r);
00471 #elif defined GNULIB_POSIXCHECK
00472 # undef srandom_r
00473 # if HAVE_RAW_DECL_SRANDOM_R
00474 _GL_WARN_ON_USE (srandom_r, "srandom_r is unportable - "
00475 "use gnulib module random_r for portability");
00476 # endif
00477 #endif
00478
00479 #if @GNULIB_RANDOM_R@
00480 # if !@HAVE_RANDOM_R@
00481 _GL_FUNCDECL_SYS (initstate_r, int,
00482 (unsigned int seed, char *buf, size_t buf_size,
00483 struct random_data *rand_state)
00484 _GL_ARG_NONNULL ((2, 4)));
00485 # endif
00486 _GL_CXXALIAS_SYS (initstate_r, int,
00487 (unsigned int seed, char *buf, size_t buf_size,
00488 struct random_data *rand_state));
00489 _GL_CXXALIASWARN (initstate_r);
00490 #elif defined GNULIB_POSIXCHECK
00491 # undef initstate_r
00492 # if HAVE_RAW_DECL_INITSTATE_R
00493 _GL_WARN_ON_USE (initstate_r, "initstate_r is unportable - "
00494 "use gnulib module random_r for portability");
00495 # endif
00496 #endif
00497
00498 #if @GNULIB_RANDOM_R@
00499 # if !@HAVE_RANDOM_R@
00500 _GL_FUNCDECL_SYS (setstate_r, int,
00501 (char *arg_state, struct random_data *rand_state)
00502 _GL_ARG_NONNULL ((1, 2)));
00503 # endif
00504 _GL_CXXALIAS_SYS (setstate_r, int,
00505 (char *arg_state, struct random_data *rand_state));
00506 _GL_CXXALIASWARN (setstate_r);
00507 #elif defined GNULIB_POSIXCHECK
00508 # undef setstate_r
00509 # if HAVE_RAW_DECL_SETSTATE_R
00510 _GL_WARN_ON_USE (setstate_r, "setstate_r is unportable - "
00511 "use gnulib module random_r for portability");
00512 # endif
00513 #endif
00514
00515
00516 #if @GNULIB_REALLOC_POSIX@
00517 # if @REPLACE_REALLOC@
00518 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00519 # undef realloc
00520 # define realloc rpl_realloc
00521 # endif
00522 _GL_FUNCDECL_RPL (realloc, void *, (void *ptr, size_t size));
00523 _GL_CXXALIAS_RPL (realloc, void *, (void *ptr, size_t size));
00524 # else
00525 _GL_CXXALIAS_SYS (realloc, void *, (void *ptr, size_t size));
00526 # endif
00527 _GL_CXXALIASWARN (realloc);
00528 #elif defined GNULIB_POSIXCHECK
00529 # undef realloc
00530
00531 _GL_WARN_ON_USE (realloc, "realloc is not POSIX compliant everywhere - "
00532 "use gnulib module realloc-posix for portability");
00533 #endif
00534
00535 #if @GNULIB_REALPATH@
00536 # if @REPLACE_REALPATH@
00537 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00538 # define realpath rpl_realpath
00539 # endif
00540 _GL_FUNCDECL_RPL (realpath, char *, (const char *name, char *resolved)
00541 _GL_ARG_NONNULL ((1)));
00542 _GL_CXXALIAS_RPL (realpath, char *, (const char *name, char *resolved));
00543 # else
00544 # if !@HAVE_REALPATH@
00545 _GL_FUNCDECL_SYS (realpath, char *, (const char *name, char *resolved)
00546 _GL_ARG_NONNULL ((1)));
00547 # endif
00548 _GL_CXXALIAS_SYS (realpath, char *, (const char *name, char *resolved));
00549 # endif
00550 _GL_CXXALIASWARN (realpath);
00551 #elif defined GNULIB_POSIXCHECK
00552 # undef realpath
00553 # if HAVE_RAW_DECL_REALPATH
00554 _GL_WARN_ON_USE (realpath, "realpath is unportable - use gnulib module "
00555 "canonicalize or canonicalize-lgpl for portability");
00556 # endif
00557 #endif
00558
00559 #if @GNULIB_RPMATCH@
00560
00561
00562 # if !@HAVE_RPMATCH@
00563 _GL_FUNCDECL_SYS (rpmatch, int, (const char *response) _GL_ARG_NONNULL ((1)));
00564 # endif
00565 _GL_CXXALIAS_SYS (rpmatch, int, (const char *response));
00566 _GL_CXXALIASWARN (rpmatch);
00567 #elif defined GNULIB_POSIXCHECK
00568 # undef rpmatch
00569 # if HAVE_RAW_DECL_RPMATCH
00570 _GL_WARN_ON_USE (rpmatch, "rpmatch is unportable - "
00571 "use gnulib module rpmatch for portability");
00572 # endif
00573 #endif
00574
00575 #if @GNULIB_SETENV@
00576
00577
00578 # if @REPLACE_SETENV@
00579 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00580 # undef setenv
00581 # define setenv rpl_setenv
00582 # endif
00583 _GL_FUNCDECL_RPL (setenv, int,
00584 (const char *name, const char *value, int replace)
00585 _GL_ARG_NONNULL ((1)));
00586 _GL_CXXALIAS_RPL (setenv, int,
00587 (const char *name, const char *value, int replace));
00588 # else
00589 # if !@HAVE_DECL_SETENV@
00590 _GL_FUNCDECL_SYS (setenv, int,
00591 (const char *name, const char *value, int replace)
00592 _GL_ARG_NONNULL ((1)));
00593 # endif
00594 _GL_CXXALIAS_SYS (setenv, int,
00595 (const char *name, const char *value, int replace));
00596 # endif
00597 # if !(@REPLACE_SETENV@ && !@HAVE_DECL_SETENV@)
00598 _GL_CXXALIASWARN (setenv);
00599 # endif
00600 #elif defined GNULIB_POSIXCHECK
00601 # undef setenv
00602 # if HAVE_RAW_DECL_SETENV
00603 _GL_WARN_ON_USE (setenv, "setenv is unportable - "
00604 "use gnulib module setenv for portability");
00605 # endif
00606 #endif
00607
00608 #if @GNULIB_STRTOD@
00609
00610 # if @REPLACE_STRTOD@
00611 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00612 # define strtod rpl_strtod
00613 # endif
00614 _GL_FUNCDECL_RPL (strtod, double, (const char *str, char **endp)
00615 _GL_ARG_NONNULL ((1)));
00616 _GL_CXXALIAS_RPL (strtod, double, (const char *str, char **endp));
00617 # else
00618 # if !@HAVE_STRTOD@
00619 _GL_FUNCDECL_SYS (strtod, double, (const char *str, char **endp)
00620 _GL_ARG_NONNULL ((1)));
00621 # endif
00622 _GL_CXXALIAS_SYS (strtod, double, (const char *str, char **endp));
00623 # endif
00624 _GL_CXXALIASWARN (strtod);
00625 #elif defined GNULIB_POSIXCHECK
00626 # undef strtod
00627 # if HAVE_RAW_DECL_STRTOD
00628 _GL_WARN_ON_USE (strtod, "strtod is unportable - "
00629 "use gnulib module strtod for portability");
00630 # endif
00631 #endif
00632
00633 #if @GNULIB_STRTOLL@
00634
00635
00636
00637
00638
00639
00640
00641
00642 # if !@HAVE_STRTOLL@
00643 _GL_FUNCDECL_SYS (strtoll, long long,
00644 (const char *string, char **endptr, int base)
00645 _GL_ARG_NONNULL ((1)));
00646 # endif
00647 _GL_CXXALIAS_SYS (strtoll, long long,
00648 (const char *string, char **endptr, int base));
00649 _GL_CXXALIASWARN (strtoll);
00650 #elif defined GNULIB_POSIXCHECK
00651 # undef strtoll
00652 # if HAVE_RAW_DECL_STRTOLL
00653 _GL_WARN_ON_USE (strtoll, "strtoll is unportable - "
00654 "use gnulib module strtoll for portability");
00655 # endif
00656 #endif
00657
00658 #if @GNULIB_STRTOULL@
00659
00660
00661
00662
00663
00664
00665
00666
00667 # if !@HAVE_STRTOULL@
00668 _GL_FUNCDECL_SYS (strtoull, unsigned long long,
00669 (const char *string, char **endptr, int base)
00670 _GL_ARG_NONNULL ((1)));
00671 # endif
00672 _GL_CXXALIAS_SYS (strtoull, unsigned long long,
00673 (const char *string, char **endptr, int base));
00674 _GL_CXXALIASWARN (strtoull);
00675 #elif defined GNULIB_POSIXCHECK
00676 # undef strtoull
00677 # if HAVE_RAW_DECL_STRTOULL
00678 _GL_WARN_ON_USE (strtoull, "strtoull is unportable - "
00679 "use gnulib module strtoull for portability");
00680 # endif
00681 #endif
00682
00683 #if @GNULIB_UNLOCKPT@
00684
00685
00686 # if !@HAVE_UNLOCKPT@
00687 _GL_FUNCDECL_SYS (unlockpt, int, (int fd));
00688 # endif
00689 _GL_CXXALIAS_SYS (unlockpt, int, (int fd));
00690 _GL_CXXALIASWARN (unlockpt);
00691 #elif defined GNULIB_POSIXCHECK
00692 # undef unlockpt
00693 # if HAVE_RAW_DECL_UNLOCKPT
00694 _GL_WARN_ON_USE (unlockpt, "unlockpt is not portable - "
00695 "use gnulib module unlockpt for portability");
00696 # endif
00697 #endif
00698
00699 #if @GNULIB_UNSETENV@
00700
00701 # if @REPLACE_UNSETENV@
00702 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00703 # undef unsetenv
00704 # define unsetenv rpl_unsetenv
00705 # endif
00706 _GL_FUNCDECL_RPL (unsetenv, int, (const char *name) _GL_ARG_NONNULL ((1)));
00707 _GL_CXXALIAS_RPL (unsetenv, int, (const char *name));
00708 # else
00709 # if !@HAVE_DECL_UNSETENV@
00710 _GL_FUNCDECL_SYS (unsetenv, int, (const char *name) _GL_ARG_NONNULL ((1)));
00711 # endif
00712 _GL_CXXALIAS_SYS (unsetenv, int, (const char *name));
00713 # endif
00714 # if !(@REPLACE_UNSETENV@ && !@HAVE_DECL_UNSETENV@)
00715 _GL_CXXALIASWARN (unsetenv);
00716 # endif
00717 #elif defined GNULIB_POSIXCHECK
00718 # undef unsetenv
00719 # if HAVE_RAW_DECL_UNSETENV
00720 _GL_WARN_ON_USE (unsetenv, "unsetenv is unportable - "
00721 "use gnulib module unsetenv for portability");
00722 # endif
00723 #endif
00724
00725
00726 #endif
00727 #endif
00728 #endif