19 @PRAGMA_SYSTEM_HEADER@
23 #if defined __need_system_stdlib_h || defined __need_malloc_and_calloc 27 #@INCLUDE_NEXT@ @NEXT_STDLIB_H@ 32 #ifndef _@GUARD_PREFIX@_STDLIB_H 35 #@INCLUDE_NEXT@ @NEXT_STDLIB_H@ 37 #ifndef _@GUARD_PREFIX@_STDLIB_H 38 #define _@GUARD_PREFIX@_STDLIB_H 44 #if @GNULIB_SYSTEM_POSIX@ && !defined WEXITSTATUS 45 # include <sys/wait.h> 49 #if (@GNULIB_GETLOADAVG@ || defined GNULIB_POSIXCHECK) && @HAVE_SYS_LOADAVG_H@ 50 # include <sys/loadavg.h> 54 #if 0 && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) 67 # if !@HAVE_STRUCT_RANDOM_DATA@ || @REPLACE_RANDOM_R@ || !@HAVE_RANDOM_R@ 71 # if !@HAVE_STRUCT_RANDOM_DATA@ 74 # if !GNULIB_defined_struct_random_data 85 # define GNULIB_defined_struct_random_data 1 90 #if (@GNULIB_MKSTEMP@ || @GNULIB_MKSTEMPS@ || @GNULIB_GETSUBOPT@ || defined GNULIB_POSIXCHECK) && ! defined __GLIBC__ && !((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) 100 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96) 101 # define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__)) 103 # define _GL_ATTRIBUTE_PURE 117 # define EXIT_SUCCESS 0 122 # define EXIT_FAILURE 1 123 #elif EXIT_FAILURE != 1 125 # define EXIT_FAILURE 1 137 #elif defined GNULIB_POSIXCHECK 139 # if HAVE_RAW_DECL__EXIT 141 "use gnulib module _Exit for portability");
156 #elif defined GNULIB_POSIXCHECK 158 # if HAVE_RAW_DECL_ATOLL 160 "use gnulib module atoll for portability");
164 #if @GNULIB_CALLOC_POSIX@ 165 # if @REPLACE_CALLOC@ 166 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 168 # define calloc rpl_calloc 176 #elif defined GNULIB_POSIXCHECK 180 "use gnulib module calloc-posix for portability");
183 #if @GNULIB_CANONICALIZE_FILE_NAME@ 184 # if @REPLACE_CANONICALIZE_FILE_NAME@ 185 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 186 # define canonicalize_file_name rpl_canonicalize_file_name 192 # if !@HAVE_CANONICALIZE_FILE_NAME@ 199 #elif defined GNULIB_POSIXCHECK 200 # undef canonicalize_file_name 201 # if HAVE_RAW_DECL_CANONICALIZE_FILE_NAME 203 "canonicalize_file_name is unportable - " 204 "use gnulib module canonicalize-lgpl for portability");
208 #if @GNULIB_GETLOADAVG@ 213 # if !@HAVE_DECL_GETLOADAVG@ 219 #elif defined GNULIB_POSIXCHECK 221 # if HAVE_RAW_DECL_GETLOADAVG 223 "use gnulib module getloadavg for portability");
227 #if @GNULIB_GETSUBOPT@ 239 # if !@HAVE_GETSUBOPT@ 241 (
char **optionp,
char *
const *tokens,
char **valuep)
245 (
char **optionp,
char *
const *tokens,
char **valuep));
247 #elif defined GNULIB_POSIXCHECK 249 # if HAVE_RAW_DECL_GETSUBOPT 251 "use gnulib module getsubopt for portability");
263 #elif defined GNULIB_POSIXCHECK 265 # if HAVE_RAW_DECL_GRANTPT 267 "use gnulib module grantpt for portability");
275 #if @GNULIB_MALLOC_POSIX@ 276 # if @REPLACE_MALLOC@ 277 # if !((defined __cplusplus && defined GNULIB_NAMESPACE) \ 278 || _GL_USE_STDLIB_ALLOC) 280 # define malloc rpl_malloc 288 #elif defined GNULIB_POSIXCHECK && !_GL_USE_STDLIB_ALLOC 292 "use gnulib module malloc-posix for portability");
297 # if @REPLACE_MBTOWC@ 298 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 300 # define mbtowc rpl_mbtowc 321 #elif defined GNULIB_POSIXCHECK 323 # if HAVE_RAW_DECL_MKDTEMP 325 "use gnulib module mkdtemp for portability");
329 #if @GNULIB_MKOSTEMP@ 342 # if !@HAVE_MKOSTEMP@ 348 #elif defined GNULIB_POSIXCHECK 350 # if HAVE_RAW_DECL_MKOSTEMP 352 "use gnulib module mkostemp for portability");
356 #if @GNULIB_MKOSTEMPS@ 370 # if !@HAVE_MKOSTEMPS@ 372 (
char * ,
int ,
int )
376 (
char * ,
int ,
int ));
378 #elif defined GNULIB_POSIXCHECK 380 # if HAVE_RAW_DECL_MKOSTEMPS 382 "use gnulib module mkostemps for portability");
396 # if @REPLACE_MKSTEMP@ 397 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 398 # define mkstemp rpl_mkstemp 403 # if ! @HAVE_MKSTEMP@ 409 #elif defined GNULIB_POSIXCHECK 411 # if HAVE_RAW_DECL_MKSTEMP 413 "use gnulib module mkstemp for portability");
417 #if @GNULIB_MKSTEMPS@ 428 # if !@HAVE_MKSTEMPS@ 434 #elif defined GNULIB_POSIXCHECK 436 # if HAVE_RAW_DECL_MKSTEMPS 438 "use gnulib module mkstemps for portability");
442 #if @GNULIB_POSIX_OPENPT@ 445 # if !@HAVE_POSIX_OPENPT@ 450 #elif defined GNULIB_POSIXCHECK 452 # if HAVE_RAW_DECL_POSIX_OPENPT 454 "use gnulib module posix_openpt for portability");
461 # if @REPLACE_PTSNAME@ 462 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 464 # define ptsname rpl_ptsname 475 #elif defined GNULIB_POSIXCHECK 477 # if HAVE_RAW_DECL_PTSNAME 479 "use gnulib module ptsname for portability");
483 #if @GNULIB_PTSNAME_R@ 487 # if @REPLACE_PTSNAME_R@ 488 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 490 # define ptsname_r rpl_ptsname_r 495 # if !@HAVE_PTSNAME_R@ 501 #elif defined GNULIB_POSIXCHECK 503 # if HAVE_RAW_DECL_PTSNAME_R 505 "use gnulib module ptsname_r for portability");
510 # if @REPLACE_PUTENV@ 511 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 513 # define putenv rpl_putenv 527 # if @REPLACE_QSORT_R@ 528 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 530 # define qsort_r rpl_qsort_r 533 int (*compare) (
void const *,
void const *,
537 int (*compare) (
void const *,
void const *,
543 int (*compare) (
void const *,
void const *,
548 int (*compare) (
void const *,
void const *,
553 #elif defined GNULIB_POSIXCHECK 555 # if HAVE_RAW_DECL_QSORT_R 557 "use gnulib module qsort_r for portability");
562 #if @GNULIB_RANDOM_R@ 563 # if !@HAVE_RANDOM_R@ 565 # define RAND_MAX 2147483647 577 #elif defined GNULIB_POSIXCHECK 579 # if HAVE_RAW_DECL_RANDOM 581 "use gnulib module random for portability");
591 #elif defined GNULIB_POSIXCHECK 593 # if HAVE_RAW_DECL_SRANDOM 595 "use gnulib module random for portability");
600 # if !@HAVE_RANDOM@ || !@HAVE_DECL_INITSTATE@ 602 (
unsigned int seed,
char *buf,
size_t buf_size)
606 (
unsigned int seed,
char *buf,
size_t buf_size));
608 #elif defined GNULIB_POSIXCHECK 610 # if HAVE_RAW_DECL_INITSTATE_R 612 "use gnulib module random for portability");
617 # if !@HAVE_RANDOM@ || !@HAVE_DECL_SETSTATE@ 622 #elif defined GNULIB_POSIXCHECK 624 # if HAVE_RAW_DECL_SETSTATE_R 626 "use gnulib module random for portability");
631 #if @GNULIB_RANDOM_R@ 632 # if @REPLACE_RANDOM_R@ 633 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 635 # define random_r rpl_random_r 641 # if !@HAVE_RANDOM_R@ 648 #elif defined GNULIB_POSIXCHECK 650 # if HAVE_RAW_DECL_RANDOM_R 652 "use gnulib module random_r for portability");
656 #if @GNULIB_RANDOM_R@ 657 # if @REPLACE_RANDOM_R@ 658 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 660 # define srandom_r rpl_srandom_r 663 (
unsigned int seed,
struct random_data *rand_state)
666 (
unsigned int seed,
struct random_data *rand_state));
668 # if !@HAVE_RANDOM_R@ 670 (
unsigned int seed,
struct random_data *rand_state)
674 (
unsigned int seed,
struct random_data *rand_state));
677 #elif defined GNULIB_POSIXCHECK 679 # if HAVE_RAW_DECL_SRANDOM_R 681 "use gnulib module random_r for portability");
685 #if @GNULIB_RANDOM_R@ 686 # if @REPLACE_RANDOM_R@ 687 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 689 # define initstate_r rpl_initstate_r 692 (
unsigned int seed,
char *buf,
size_t buf_size,
693 struct random_data *rand_state)
696 (
unsigned int seed,
char *buf,
size_t buf_size,
697 struct random_data *rand_state));
699 # if !@HAVE_RANDOM_R@ 701 (
unsigned int seed,
char *buf,
size_t buf_size,
702 struct random_data *rand_state)
706 (
unsigned int seed,
char *buf,
size_t buf_size,
707 struct random_data *rand_state));
710 #elif defined GNULIB_POSIXCHECK 712 # if HAVE_RAW_DECL_INITSTATE_R 714 "use gnulib module random_r for portability");
718 #if @GNULIB_RANDOM_R@ 719 # if @REPLACE_RANDOM_R@ 720 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 722 # define setstate_r rpl_setstate_r 725 (
char *arg_state,
struct random_data *rand_state)
728 (
char *arg_state,
struct random_data *rand_state));
730 # if !@HAVE_RANDOM_R@ 732 (
char *arg_state,
struct random_data *rand_state)
736 (
char *arg_state,
struct random_data *rand_state));
739 #elif defined GNULIB_POSIXCHECK 741 # if HAVE_RAW_DECL_SETSTATE_R 743 "use gnulib module random_r for portability");
748 #if @GNULIB_REALLOC_POSIX@ 749 # if @REPLACE_REALLOC@ 750 # if !((defined __cplusplus && defined GNULIB_NAMESPACE) \ 751 || _GL_USE_STDLIB_ALLOC) 753 # define realloc rpl_realloc 761 #elif defined GNULIB_POSIXCHECK && !_GL_USE_STDLIB_ALLOC 764 _GL_WARN_ON_USE (realloc,
"realloc is not POSIX compliant everywhere - " 765 "use gnulib module realloc-posix for portability");
769 #if @GNULIB_REALLOCARRAY@ 770 # if ! @HAVE_REALLOCARRAY@ 772 (
void *ptr,
size_t nmemb,
size_t size));
775 (
void *ptr,
size_t nmemb,
size_t size));
777 #elif defined GNULIB_POSIXCHECK 779 # if HAVE_RAW_DECL_REALLOCARRAY 781 "use gnulib module reallocarray for portability");
785 #if @GNULIB_REALPATH@ 786 # if @REPLACE_REALPATH@ 787 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 788 # define realpath rpl_realpath 794 # if !@HAVE_REALPATH@ 801 #elif defined GNULIB_POSIXCHECK 803 # if HAVE_RAW_DECL_REALPATH 804 _GL_WARN_ON_USE (realpath,
"realpath is unportable - use gnulib module " 805 "canonicalize or canonicalize-lgpl for portability");
817 #elif defined GNULIB_POSIXCHECK 819 # if HAVE_RAW_DECL_RPMATCH 821 "use gnulib module rpmatch for portability");
825 #if @GNULIB_SECURE_GETENV@ 827 # if !@HAVE_SECURE_GETENV@ 833 #elif defined GNULIB_POSIXCHECK 834 # undef secure_getenv 835 # if HAVE_RAW_DECL_SECURE_GETENV 837 "use gnulib module secure_getenv for portability");
844 # if @REPLACE_SETENV@ 845 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 847 # define setenv rpl_setenv 850 (
const char *name,
const char *value,
int replace)
853 (
const char *name,
const char *value,
int replace));
855 # if !@HAVE_DECL_SETENV@ 857 (
const char *name,
const char *value,
int replace)
861 (
const char *name,
const char *value,
int replace));
863 # if !(@REPLACE_SETENV@ && !@HAVE_DECL_SETENV@) 866 #elif defined GNULIB_POSIXCHECK 868 # if HAVE_RAW_DECL_SETENV 870 "use gnulib module setenv for portability");
876 # if @REPLACE_STRTOD@ 877 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 878 # define strtod rpl_strtod 891 #elif defined GNULIB_POSIXCHECK 893 # if HAVE_RAW_DECL_STRTOD 895 "use gnulib module strtod for portability");
910 (
const char *
string,
char **endptr,
int base)
914 (
const char *
string,
char **endptr,
int base));
916 #elif defined GNULIB_POSIXCHECK 918 # if HAVE_RAW_DECL_STRTOLL 920 "use gnulib module strtoll for portability");
924 #if @GNULIB_STRTOULL@ 933 # if !@HAVE_STRTOULL@ 935 (
const char *
string,
char **endptr,
int base)
939 (
const char *
string,
char **endptr,
int base));
941 #elif defined GNULIB_POSIXCHECK 943 # if HAVE_RAW_DECL_STRTOULL 945 "use gnulib module strtoull for portability");
949 #if @GNULIB_UNLOCKPT@ 952 # if !@HAVE_UNLOCKPT@ 957 #elif defined GNULIB_POSIXCHECK 959 # if HAVE_RAW_DECL_UNLOCKPT 961 "use gnulib module unlockpt for portability");
965 #if @GNULIB_UNSETENV@ 967 # if @REPLACE_UNSETENV@ 968 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 970 # define unsetenv rpl_unsetenv 975 # if !@HAVE_DECL_UNSETENV@ 980 # if !(@REPLACE_UNSETENV@ && !@HAVE_DECL_UNSETENV@) 983 #elif defined GNULIB_POSIXCHECK 985 # if HAVE_RAW_DECL_UNSETENV 987 "use gnulib module unsetenv for portability");
993 # if @REPLACE_WCTOMB@ 994 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 996 # define wctomb rpl_wctomb #define _GL_FUNCDECL_SYS(func, rettype, parameters_and_attributes)
Definition: inet.h:168
#define _Noreturn
Definition: config.h:1695
int unsetenv(const char *name)
Definition: unsetenv.c:57
double strtod(const char *nptr, char **endptr)
Definition: strtod.c:208
#define _GL_CXXALIAS_RPL(func, rettype, parameters)
Definition: inet.h:180
#define _GL_ATTRIBUTE_PURE
Definition: stdlib.in.h:103
#define _GL_CXXALIASWARN(func)
Definition: inet.h:337
#define _GL_CXXALIAS_SYS(func, rettype, parameters)
Definition: inet.h:253
#define _GL_FUNCDECL_RPL(func, rettype, parameters_and_attributes)
Definition: inet.h:156
int setenv(const char *name, const char *value, int replace)
Definition: setenv.c:291
#define _GL_WARN_ON_USE(function, message)
Definition: inet.h:474
#define int32_t
Definition: stdint.in.h:167