1eceb233bSchristos /* This file is automatically generated. DO NOT EDIT! */ 2d16b7486Schristos /* Generated from: NetBSD: mknative-gdb,v 1.16 2023/07/31 17:09:59 christos Exp */ 3eceb233bSchristos /* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp */ 4eceb233bSchristos 5eceb233bSchristos /* config.h. Generated from config.in by configure. */ 6eceb233bSchristos /* config.in. Generated from configure.ac by autoheader. */ 7eceb233bSchristos 8eceb233bSchristos /* Define if building universal (internal helper macro) */ 9eceb233bSchristos /* #undef AC_APPLE_UNIVERSAL_BUILD */ 10eceb233bSchristos 11eceb233bSchristos /* Define to the number of bits in type 'ptrdiff_t'. */ 12eceb233bSchristos /* #undef BITSIZEOF_PTRDIFF_T */ 13eceb233bSchristos 14eceb233bSchristos /* Define to the number of bits in type 'sig_atomic_t'. */ 15eceb233bSchristos /* #undef BITSIZEOF_SIG_ATOMIC_T */ 16eceb233bSchristos 17eceb233bSchristos /* Define to the number of bits in type 'size_t'. */ 18eceb233bSchristos /* #undef BITSIZEOF_SIZE_T */ 19eceb233bSchristos 20eceb233bSchristos /* Define to the number of bits in type 'wchar_t'. */ 21eceb233bSchristos /* #undef BITSIZEOF_WCHAR_T */ 22eceb233bSchristos 23eceb233bSchristos /* Define to the number of bits in type 'wint_t'. */ 24eceb233bSchristos /* #undef BITSIZEOF_WINT_T */ 25eceb233bSchristos 26d16b7486Schristos /* Define to 1 if chown fails to change ctime when at least one argument was 27d16b7486Schristos not -1. */ 28d16b7486Schristos #define CHOWN_CHANGE_TIME_BUG 1 29eceb233bSchristos 30d16b7486Schristos /* Define if chown is not POSIX compliant regarding IDs of -1. */ 31d16b7486Schristos #define CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE 1 32d16b7486Schristos 33d16b7486Schristos /* Define if chown modifies symlinks. */ 34d16b7486Schristos /* #undef CHOWN_MODIFIES_SYMLINK */ 35d16b7486Schristos 36d16b7486Schristos /* Define to 1 if chown mishandles trailing slash. */ 37d16b7486Schristos #define CHOWN_TRAILING_SLASH_BUG 1 38d16b7486Schristos 39d16b7486Schristos /* Define to 1 if using 'alloca.c'. */ 40eceb233bSchristos /* #undef C_ALLOCA */ 41eceb233bSchristos 42eceb233bSchristos /* Define as the bit index in the word where to find bit 0 of the exponent of 43eceb233bSchristos 'double'. */ 44eceb233bSchristos #define DBL_EXPBIT0_BIT 20 45eceb233bSchristos 46eceb233bSchristos /* Define as the word index where to find the exponent of 'double'. */ 47eceb233bSchristos #define DBL_EXPBIT0_WORD 1 48eceb233bSchristos 49eceb233bSchristos /* the name of the file descriptor member of DIR */ 50eceb233bSchristos /* #undef DIR_FD_MEMBER_NAME */ 51eceb233bSchristos 52eceb233bSchristos #ifdef DIR_FD_MEMBER_NAME 53eceb233bSchristos # define DIR_TO_FD(Dir_p) ((Dir_p)->DIR_FD_MEMBER_NAME) 54eceb233bSchristos #else 55eceb233bSchristos # define DIR_TO_FD(Dir_p) -1 56eceb233bSchristos #endif 57eceb233bSchristos 58eceb233bSchristos 59eceb233bSchristos /* Define to 1 if // is a file system root distinct from /. */ 60eceb233bSchristos /* #undef DOUBLE_SLASH_IS_DISTINCT_ROOT */ 61eceb233bSchristos 62eceb233bSchristos /* Define if struct dirent has a member d_ino that actually works. */ 63eceb233bSchristos /* #undef D_INO_IN_DIRENT */ 64eceb233bSchristos 65eceb233bSchristos /* Define this to 1 if F_DUPFD behavior does not match POSIX */ 66eceb233bSchristos /* #undef FCNTL_DUPFD_BUGGY */ 67eceb233bSchristos 68eceb233bSchristos /* Define to nothing if C supports flexible array members, and to 1 if it does 69eceb233bSchristos not. That way, with a declaration like 'struct s { int n; short 70eceb233bSchristos d[FLEXIBLE_ARRAY_MEMBER]; };', the struct hack can be used with pre-C99 71eceb233bSchristos compilers. Use 'FLEXSIZEOF (struct s, d, N * sizeof (short))' to calculate 72eceb233bSchristos the size in bytes of such a struct containing an N-element array. */ 73eceb233bSchristos #define FLEXIBLE_ARRAY_MEMBER /**/ 74eceb233bSchristos 75eceb233bSchristos /* Define to 1 if mkdir mistakenly creates a directory given with a trailing 76eceb233bSchristos dot component. */ 77d16b7486Schristos #define FUNC_MKDIR_DOT_BUG 1 78eceb233bSchristos 79eceb233bSchristos /* Define to 1 if realpath() can malloc memory, always gives an absolute path, 80d16b7486Schristos and handles a trailing slash correctly. */ 81d16b7486Schristos /* #undef FUNC_REALPATH_NEARLY_WORKS */ 82eceb233bSchristos 83d16b7486Schristos /* Define to 1 if realpath() can malloc memory, always gives an absolute path, 84d16b7486Schristos and handles leading slashes and a trailing slash correctly. */ 85d16b7486Schristos /* #undef FUNC_REALPATH_WORKS */ 86eceb233bSchristos 87eceb233bSchristos /* Define this to 'void' or 'struct timezone' to match the system's 88eceb233bSchristos declaration of the second argument to gettimeofday. */ 89eceb233bSchristos #define GETTIMEOFDAY_TIMEZONE void 90eceb233bSchristos 91eceb233bSchristos /* Define to a C preprocessor expression that evaluates to 1 or 0, depending 92eceb233bSchristos whether the gnulib module canonicalize-lgpl shall be considered present. */ 93eceb233bSchristos #define GNULIB_CANONICALIZE_LGPL 1 94eceb233bSchristos 95eceb233bSchristos /* Define to a C preprocessor expression that evaluates to 1 or 0, depending 96eceb233bSchristos whether the gnulib module fdopendir shall be considered present. */ 97eceb233bSchristos #define GNULIB_FDOPENDIR 1 98eceb233bSchristos 99eceb233bSchristos /* Define to a C preprocessor expression that evaluates to 1 or 0, depending 100eceb233bSchristos whether the gnulib module fd-safer-flag shall be considered present. */ 101eceb233bSchristos #define GNULIB_FD_SAFER_FLAG 1 102eceb233bSchristos 103eceb233bSchristos /* Define to a C preprocessor expression that evaluates to 1 or 0, depending 104eceb233bSchristos whether the gnulib module fnmatch-gnu shall be considered present. */ 105eceb233bSchristos #define GNULIB_FNMATCH_GNU 1 106eceb233bSchristos 107eceb233bSchristos /* Define to a C preprocessor expression that evaluates to 1 or 0, depending 108eceb233bSchristos whether the gnulib module fscanf shall be considered present. */ 109eceb233bSchristos #define GNULIB_FSCANF 1 110eceb233bSchristos 111eceb233bSchristos /* Define to a C preprocessor expression that evaluates to 1 or 0, depending 112eceb233bSchristos whether the gnulib module getcwd shall be considered present. */ 113eceb233bSchristos #define GNULIB_GETCWD 1 114eceb233bSchristos 115eceb233bSchristos /* Define to a C preprocessor expression that evaluates to 1 or 0, depending 116eceb233bSchristos whether the gnulib module isblank shall be considered present. */ 117eceb233bSchristos #define GNULIB_ISBLANK 1 118eceb233bSchristos 119eceb233bSchristos /* Define to a C preprocessor expression that evaluates to 1 or 0, depending 120eceb233bSchristos whether the gnulib module lock shall be considered present. */ 121eceb233bSchristos #define GNULIB_LOCK 1 122eceb233bSchristos 123eceb233bSchristos /* Define to a C preprocessor expression that evaluates to 1 or 0, depending 124eceb233bSchristos whether the gnulib module mkostemp shall be considered present. */ 125eceb233bSchristos #define GNULIB_MKOSTEMP 1 126eceb233bSchristos 127eceb233bSchristos /* Define to a C preprocessor expression that evaluates to 1 or 0, depending 128eceb233bSchristos whether the gnulib module msvc-nothrow shall be considered present. */ 129eceb233bSchristos #define GNULIB_MSVC_NOTHROW 1 130eceb233bSchristos 131eceb233bSchristos /* Define to a C preprocessor expression that evaluates to 1 or 0, depending 132eceb233bSchristos whether the gnulib module openat shall be considered present. */ 133eceb233bSchristos #define GNULIB_OPENAT 1 134eceb233bSchristos 135eceb233bSchristos /* Define to 1 if printf and friends should be labeled with attribute 136eceb233bSchristos "__gnu_printf__" instead of "__printf__" */ 137eceb233bSchristos /* #undef GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU */ 138eceb233bSchristos 139eceb233bSchristos /* Define to a C preprocessor expression that evaluates to 1 or 0, depending 140eceb233bSchristos whether the gnulib module scanf shall be considered present. */ 141eceb233bSchristos #define GNULIB_SCANF 1 142eceb233bSchristos 143eceb233bSchristos /* Define to a C preprocessor expression that evaluates to 1 or 0, depending 144eceb233bSchristos whether the gnulib module strerror shall be considered present. */ 145eceb233bSchristos #define GNULIB_STRERROR 1 146eceb233bSchristos 147eceb233bSchristos /* Define to a C preprocessor expression that evaluates to 1 or 0, depending 148eceb233bSchristos whether the gnulib module strerror_r-posix shall be considered present. */ 149eceb233bSchristos #define GNULIB_STRERROR_R_POSIX 1 150eceb233bSchristos 151d16b7486Schristos /* Define to a C preprocessor expression that evaluates to 1 or 0, depending 152d16b7486Schristos whether the gnulib module tempname shall be considered present. */ 153d16b7486Schristos #define GNULIB_TEMPNAME 1 154d16b7486Schristos 155d16b7486Schristos /* Define to 1 when the gnulib module accept should be tested. */ 156d16b7486Schristos #define GNULIB_TEST_ACCEPT 1 157d16b7486Schristos 158d16b7486Schristos /* Define to 1 when the gnulib module bind should be tested. */ 159d16b7486Schristos #define GNULIB_TEST_BIND 1 160d16b7486Schristos 161eceb233bSchristos /* Define to 1 when the gnulib module btowc should be tested. */ 162eceb233bSchristos #define GNULIB_TEST_BTOWC 1 163eceb233bSchristos 164eceb233bSchristos /* Define to 1 when the gnulib module canonicalize_file_name should be tested. 165eceb233bSchristos */ 166eceb233bSchristos #define GNULIB_TEST_CANONICALIZE_FILE_NAME 1 167eceb233bSchristos 168eceb233bSchristos /* Define to 1 when the gnulib module chdir should be tested. */ 169eceb233bSchristos #define GNULIB_TEST_CHDIR 1 170eceb233bSchristos 171d16b7486Schristos /* Define to 1 when the gnulib module chown should be tested. */ 172d16b7486Schristos #define GNULIB_TEST_CHOWN 1 173d16b7486Schristos 174eceb233bSchristos /* Define to 1 when the gnulib module cloexec should be tested. */ 175eceb233bSchristos #define GNULIB_TEST_CLOEXEC 1 176eceb233bSchristos 177eceb233bSchristos /* Define to 1 when the gnulib module close should be tested. */ 178eceb233bSchristos #define GNULIB_TEST_CLOSE 1 179eceb233bSchristos 180eceb233bSchristos /* Define to 1 when the gnulib module closedir should be tested. */ 181eceb233bSchristos #define GNULIB_TEST_CLOSEDIR 1 182eceb233bSchristos 183d16b7486Schristos /* Define to 1 when the gnulib module connect should be tested. */ 184d16b7486Schristos #define GNULIB_TEST_CONNECT 1 185d16b7486Schristos 186eceb233bSchristos /* Define to 1 when the gnulib module dirfd should be tested. */ 187eceb233bSchristos #define GNULIB_TEST_DIRFD 1 188eceb233bSchristos 189eceb233bSchristos /* Define to 1 when the gnulib module dup should be tested. */ 190eceb233bSchristos #define GNULIB_TEST_DUP 1 191eceb233bSchristos 192eceb233bSchristos /* Define to 1 when the gnulib module dup2 should be tested. */ 193eceb233bSchristos #define GNULIB_TEST_DUP2 1 194eceb233bSchristos 195eceb233bSchristos /* Define to 1 when the gnulib module environ should be tested. */ 196eceb233bSchristos #define GNULIB_TEST_ENVIRON 1 197eceb233bSchristos 198eceb233bSchristos /* Define to 1 when the gnulib module fchdir should be tested. */ 199eceb233bSchristos #define GNULIB_TEST_FCHDIR 1 200eceb233bSchristos 201eceb233bSchristos /* Define to 1 when the gnulib module fcntl should be tested. */ 202eceb233bSchristos #define GNULIB_TEST_FCNTL 1 203eceb233bSchristos 204eceb233bSchristos /* Define to 1 when the gnulib module fdopendir should be tested. */ 205eceb233bSchristos #define GNULIB_TEST_FDOPENDIR 1 206eceb233bSchristos 207d16b7486Schristos /* Define to 1 when the gnulib module fgetc should be tested. */ 208d16b7486Schristos #define GNULIB_TEST_FGETC 1 209d16b7486Schristos 210d16b7486Schristos /* Define to 1 when the gnulib module fgets should be tested. */ 211d16b7486Schristos #define GNULIB_TEST_FGETS 1 212d16b7486Schristos 213eceb233bSchristos /* Define to 1 when the gnulib module fnmatch should be tested. */ 214eceb233bSchristos #define GNULIB_TEST_FNMATCH 1 215eceb233bSchristos 216d16b7486Schristos /* Define to 1 when the gnulib module fprintf should be tested. */ 217d16b7486Schristos #define GNULIB_TEST_FPRINTF 1 218d16b7486Schristos 219d16b7486Schristos /* Define to 1 when the gnulib module fputc should be tested. */ 220d16b7486Schristos #define GNULIB_TEST_FPUTC 1 221d16b7486Schristos 222d16b7486Schristos /* Define to 1 when the gnulib module fputs should be tested. */ 223d16b7486Schristos #define GNULIB_TEST_FPUTS 1 224d16b7486Schristos 225d16b7486Schristos /* Define to 1 when the gnulib module fread should be tested. */ 226d16b7486Schristos #define GNULIB_TEST_FREAD 1 227d16b7486Schristos 228d16b7486Schristos /* Define to 1 when the gnulib module free-posix should be tested. */ 229d16b7486Schristos #define GNULIB_TEST_FREE_POSIX 1 230d16b7486Schristos 231eceb233bSchristos /* Define to 1 when the gnulib module frexp should be tested. */ 232eceb233bSchristos #define GNULIB_TEST_FREXP 1 233eceb233bSchristos 234eceb233bSchristos /* Define to 1 when the gnulib module frexpl should be tested. */ 235eceb233bSchristos #define GNULIB_TEST_FREXPL 1 236eceb233bSchristos 237d16b7486Schristos /* Define to 1 when the gnulib module fscanf should be tested. */ 238d16b7486Schristos #define GNULIB_TEST_FSCANF 1 239d16b7486Schristos 240eceb233bSchristos /* Define to 1 when the gnulib module fstat should be tested. */ 241eceb233bSchristos #define GNULIB_TEST_FSTAT 1 242eceb233bSchristos 243eceb233bSchristos /* Define to 1 when the gnulib module fstatat should be tested. */ 244eceb233bSchristos #define GNULIB_TEST_FSTATAT 1 245eceb233bSchristos 246d16b7486Schristos /* Define to 1 when the gnulib module fwrite should be tested. */ 247d16b7486Schristos #define GNULIB_TEST_FWRITE 1 248d16b7486Schristos 249d16b7486Schristos /* Define to 1 when the gnulib module getc should be tested. */ 250d16b7486Schristos #define GNULIB_TEST_GETC 1 251d16b7486Schristos 252d16b7486Schristos /* Define to 1 when the gnulib module getchar should be tested. */ 253d16b7486Schristos #define GNULIB_TEST_GETCHAR 1 254d16b7486Schristos 255eceb233bSchristos /* Define to 1 when the gnulib module getcwd should be tested. */ 256eceb233bSchristos #define GNULIB_TEST_GETCWD 1 257eceb233bSchristos 258d16b7486Schristos /* Define to 1 when the gnulib module getdelim should be tested. */ 259d16b7486Schristos #define GNULIB_TEST_GETDELIM 1 260d16b7486Schristos 261eceb233bSchristos /* Define to 1 when the gnulib module getdtablesize should be tested. */ 262eceb233bSchristos #define GNULIB_TEST_GETDTABLESIZE 1 263eceb233bSchristos 264d16b7486Schristos /* Define to 1 when the gnulib module getline should be tested. */ 265d16b7486Schristos #define GNULIB_TEST_GETLINE 1 266d16b7486Schristos 267eceb233bSchristos /* Define to 1 when the gnulib module getlogin_r should be tested. */ 268eceb233bSchristos #define GNULIB_TEST_GETLOGIN_R 1 269eceb233bSchristos 270eceb233bSchristos /* Define to 1 when the gnulib module getrandom should be tested. */ 271eceb233bSchristos #define GNULIB_TEST_GETRANDOM 1 272eceb233bSchristos 273eceb233bSchristos /* Define to 1 when the gnulib module gettimeofday should be tested. */ 274eceb233bSchristos #define GNULIB_TEST_GETTIMEOFDAY 1 275eceb233bSchristos 276eceb233bSchristos /* Define to 1 when the gnulib module glob should be tested. */ 277eceb233bSchristos #define GNULIB_TEST_GLOB 1 278eceb233bSchristos 279d16b7486Schristos /* Define to 1 when the gnulib module listen should be tested. */ 280d16b7486Schristos #define GNULIB_TEST_LISTEN 1 281d16b7486Schristos 282eceb233bSchristos /* Define to 1 when the gnulib module lstat should be tested. */ 283eceb233bSchristos #define GNULIB_TEST_LSTAT 1 284eceb233bSchristos 285eceb233bSchristos /* Define to 1 when the gnulib module malloc-posix should be tested. */ 286eceb233bSchristos #define GNULIB_TEST_MALLOC_POSIX 1 287eceb233bSchristos 288eceb233bSchristos /* Define to 1 when the gnulib module mbrtowc should be tested. */ 289eceb233bSchristos #define GNULIB_TEST_MBRTOWC 1 290eceb233bSchristos 291eceb233bSchristos /* Define to 1 when the gnulib module mbsinit should be tested. */ 292eceb233bSchristos #define GNULIB_TEST_MBSINIT 1 293eceb233bSchristos 294eceb233bSchristos /* Define to 1 when the gnulib module mbsrtowcs should be tested. */ 295eceb233bSchristos #define GNULIB_TEST_MBSRTOWCS 1 296eceb233bSchristos 297eceb233bSchristos /* Define to 1 when the gnulib module mbtowc should be tested. */ 298eceb233bSchristos #define GNULIB_TEST_MBTOWC 1 299eceb233bSchristos 300eceb233bSchristos /* Define to 1 when the gnulib module memchr should be tested. */ 301eceb233bSchristos #define GNULIB_TEST_MEMCHR 1 302eceb233bSchristos 303eceb233bSchristos /* Define to 1 when the gnulib module memmem should be tested. */ 304eceb233bSchristos #define GNULIB_TEST_MEMMEM 1 305eceb233bSchristos 306eceb233bSchristos /* Define to 1 when the gnulib module mempcpy should be tested. */ 307eceb233bSchristos #define GNULIB_TEST_MEMPCPY 1 308eceb233bSchristos 309eceb233bSchristos /* Define to 1 when the gnulib module memrchr should be tested. */ 310eceb233bSchristos #define GNULIB_TEST_MEMRCHR 1 311eceb233bSchristos 312d16b7486Schristos /* Define to 1 when the gnulib module mkdir should be tested. */ 313d16b7486Schristos #define GNULIB_TEST_MKDIR 1 314d16b7486Schristos 315eceb233bSchristos /* Define to 1 when the gnulib module mkdtemp should be tested. */ 316eceb233bSchristos #define GNULIB_TEST_MKDTEMP 1 317eceb233bSchristos 318eceb233bSchristos /* Define to 1 when the gnulib module mkostemp should be tested. */ 319eceb233bSchristos #define GNULIB_TEST_MKOSTEMP 1 320eceb233bSchristos 321eceb233bSchristos /* Define to 1 when the gnulib module open should be tested. */ 322eceb233bSchristos #define GNULIB_TEST_OPEN 1 323eceb233bSchristos 324eceb233bSchristos /* Define to 1 when the gnulib module openat should be tested. */ 325eceb233bSchristos #define GNULIB_TEST_OPENAT 1 326eceb233bSchristos 327eceb233bSchristos /* Define to 1 when the gnulib module opendir should be tested. */ 328eceb233bSchristos #define GNULIB_TEST_OPENDIR 1 329eceb233bSchristos 330d16b7486Schristos /* Define to 1 when the gnulib module pipe should be tested. */ 331d16b7486Schristos #define GNULIB_TEST_PIPE 1 332d16b7486Schristos 333d16b7486Schristos /* Define to 1 when the gnulib module printf should be tested. */ 334d16b7486Schristos #define GNULIB_TEST_PRINTF 1 335d16b7486Schristos 336d16b7486Schristos /* Define to 1 when the gnulib module putc should be tested. */ 337d16b7486Schristos #define GNULIB_TEST_PUTC 1 338d16b7486Schristos 339d16b7486Schristos /* Define to 1 when the gnulib module putchar should be tested. */ 340d16b7486Schristos #define GNULIB_TEST_PUTCHAR 1 341d16b7486Schristos 342d16b7486Schristos /* Define to 1 when the gnulib module puts should be tested. */ 343d16b7486Schristos #define GNULIB_TEST_PUTS 1 344d16b7486Schristos 345eceb233bSchristos /* Define to 1 when the gnulib module rawmemchr should be tested. */ 346eceb233bSchristos #define GNULIB_TEST_RAWMEMCHR 1 347eceb233bSchristos 348eceb233bSchristos /* Define to 1 when the gnulib module readdir should be tested. */ 349eceb233bSchristos #define GNULIB_TEST_READDIR 1 350eceb233bSchristos 351eceb233bSchristos /* Define to 1 when the gnulib module readlink should be tested. */ 352eceb233bSchristos #define GNULIB_TEST_READLINK 1 353eceb233bSchristos 354eceb233bSchristos /* Define to 1 when the gnulib module realloc-posix should be tested. */ 355eceb233bSchristos #define GNULIB_TEST_REALLOC_POSIX 1 356eceb233bSchristos 357eceb233bSchristos /* Define to 1 when the gnulib module realpath should be tested. */ 358eceb233bSchristos #define GNULIB_TEST_REALPATH 1 359eceb233bSchristos 360eceb233bSchristos /* Define to 1 when the gnulib module rename should be tested. */ 361eceb233bSchristos #define GNULIB_TEST_RENAME 1 362eceb233bSchristos 363eceb233bSchristos /* Define to 1 when the gnulib module rewinddir should be tested. */ 364eceb233bSchristos #define GNULIB_TEST_REWINDDIR 1 365eceb233bSchristos 366eceb233bSchristos /* Define to 1 when the gnulib module rmdir should be tested. */ 367eceb233bSchristos #define GNULIB_TEST_RMDIR 1 368eceb233bSchristos 369d16b7486Schristos /* Define to 1 when the gnulib module scanf should be tested. */ 370d16b7486Schristos #define GNULIB_TEST_SCANF 1 371d16b7486Schristos 372d16b7486Schristos /* Define to 1 when the gnulib module select should be tested. */ 373d16b7486Schristos #define GNULIB_TEST_SELECT 1 374d16b7486Schristos 375eceb233bSchristos /* Define to 1 when the gnulib module setenv should be tested. */ 376eceb233bSchristos #define GNULIB_TEST_SETENV 1 377eceb233bSchristos 378eceb233bSchristos /* Define to 1 when the gnulib module setlocale_null should be tested. */ 379eceb233bSchristos #define GNULIB_TEST_SETLOCALE_NULL 1 380eceb233bSchristos 381d16b7486Schristos /* Define to 1 when the gnulib module setsockopt should be tested. */ 382d16b7486Schristos #define GNULIB_TEST_SETSOCKOPT 1 383d16b7486Schristos 384d16b7486Schristos /* Define to 1 when the gnulib module socket should be tested. */ 385d16b7486Schristos #define GNULIB_TEST_SOCKET 1 386d16b7486Schristos 387eceb233bSchristos /* Define to 1 when the gnulib module stat should be tested. */ 388eceb233bSchristos #define GNULIB_TEST_STAT 1 389eceb233bSchristos 390eceb233bSchristos /* Define to 1 when the gnulib module strchrnul should be tested. */ 391eceb233bSchristos #define GNULIB_TEST_STRCHRNUL 1 392eceb233bSchristos 393eceb233bSchristos /* Define to 1 when the gnulib module strdup should be tested. */ 394eceb233bSchristos #define GNULIB_TEST_STRDUP 1 395eceb233bSchristos 396eceb233bSchristos /* Define to 1 when the gnulib module strerror should be tested. */ 397eceb233bSchristos #define GNULIB_TEST_STRERROR 1 398eceb233bSchristos 399eceb233bSchristos /* Define to 1 when the gnulib module strerror_r should be tested. */ 400eceb233bSchristos #define GNULIB_TEST_STRERROR_R 1 401eceb233bSchristos 402eceb233bSchristos /* Define to 1 when the gnulib module strnlen should be tested. */ 403eceb233bSchristos #define GNULIB_TEST_STRNLEN 1 404eceb233bSchristos 405eceb233bSchristos /* Define to 1 when the gnulib module strstr should be tested. */ 406eceb233bSchristos #define GNULIB_TEST_STRSTR 1 407eceb233bSchristos 408eceb233bSchristos /* Define to 1 when the gnulib module strtok_r should be tested. */ 409eceb233bSchristos #define GNULIB_TEST_STRTOK_R 1 410eceb233bSchristos 411eceb233bSchristos /* Define to 1 when the gnulib module time_r should be tested. */ 412eceb233bSchristos #define GNULIB_TEST_TIME_R 1 413eceb233bSchristos 414eceb233bSchristos /* Define to 1 when the gnulib module unsetenv should be tested. */ 415eceb233bSchristos #define GNULIB_TEST_UNSETENV 1 416eceb233bSchristos 417d16b7486Schristos /* Define to 1 when the gnulib module vfprintf should be tested. */ 418d16b7486Schristos #define GNULIB_TEST_VFPRINTF 1 419d16b7486Schristos 420d16b7486Schristos /* Define to 1 when the gnulib module vprintf should be tested. */ 421d16b7486Schristos #define GNULIB_TEST_VPRINTF 1 422d16b7486Schristos 423eceb233bSchristos /* Define to 1 when the gnulib module wmemchr should be tested. */ 424eceb233bSchristos #define GNULIB_TEST_WMEMCHR 1 425eceb233bSchristos 426eceb233bSchristos /* Define to 1 when the gnulib module wmempcpy should be tested. */ 427eceb233bSchristos #define GNULIB_TEST_WMEMPCPY 1 428eceb233bSchristos 429eceb233bSchristos /* Define to 1 if you have 'alloca' after including <alloca.h>, a header that 430eceb233bSchristos may be supplied by this distribution. */ 431eceb233bSchristos #define HAVE_ALLOCA 1 432eceb233bSchristos 433eceb233bSchristos /* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix). 434eceb233bSchristos */ 435eceb233bSchristos /* #undef HAVE_ALLOCA_H */ 436eceb233bSchristos 437eceb233bSchristos /* Define to 1 if you have the <arpa/inet.h> header file. */ 438eceb233bSchristos #define HAVE_ARPA_INET_H 1 439eceb233bSchristos 440eceb233bSchristos /* Define to 1 if you have the <bcrypt.h> header file. */ 441eceb233bSchristos /* #undef HAVE_BCRYPT_H */ 442eceb233bSchristos 443eceb233bSchristos /* Define to 1 if you have the <bp-sym.h> header file. */ 444eceb233bSchristos /* #undef HAVE_BP_SYM_H */ 445eceb233bSchristos 446eceb233bSchristos /* Define to 1 if you have the `btowc' function. */ 447eceb233bSchristos #define HAVE_BTOWC 1 448eceb233bSchristos 449eceb233bSchristos /* Define to 1 if you have the `canonicalize_file_name' function. */ 450eceb233bSchristos /* #undef HAVE_CANONICALIZE_FILE_NAME */ 451eceb233bSchristos 452eceb233bSchristos /* Define to 1 if you have the `catgets' function. */ 453eceb233bSchristos #define HAVE_CATGETS 1 454eceb233bSchristos 455d16b7486Schristos /* Define to 1 if you have the `chown' function. */ 456d16b7486Schristos #define HAVE_CHOWN 1 457d16b7486Schristos 458d16b7486Schristos /* Define to 1 if you have the `clock_getres' function. */ 459d16b7486Schristos #define HAVE_CLOCK_GETRES 1 460d16b7486Schristos 461d16b7486Schristos /* Define to 1 if you have the `clock_gettime' function. */ 462d16b7486Schristos #define HAVE_CLOCK_GETTIME 1 463d16b7486Schristos 464d16b7486Schristos /* Define to 1 if you have the `clock_settime' function. */ 465d16b7486Schristos #define HAVE_CLOCK_SETTIME 1 466d16b7486Schristos 467eceb233bSchristos /* Define to 1 if you have the `closedir' function. */ 468eceb233bSchristos #define HAVE_CLOSEDIR 1 469eceb233bSchristos 470eceb233bSchristos /* Define to 1 if you have the <crtdefs.h> header file. */ 471eceb233bSchristos /* #undef HAVE_CRTDEFS_H */ 472eceb233bSchristos 473d16b7486Schristos /* Define to 1 if C supports variable-length arrays. */ 474d16b7486Schristos #define HAVE_C_VARARRAYS 1 475d16b7486Schristos 476eceb233bSchristos /* Define to 1 if you have the declaration of `alarm', and to 0 if you don't. 477eceb233bSchristos */ 478eceb233bSchristos #define HAVE_DECL_ALARM 1 479eceb233bSchristos 480eceb233bSchristos /* Define to 1 if you have the declaration of `dirfd', and to 0 if you don't. 481eceb233bSchristos */ 482eceb233bSchristos #define HAVE_DECL_DIRFD 1 483eceb233bSchristos 484d16b7486Schristos /* Define to 1 if you have the declaration of `ecvt', and to 0 if you don't. 485d16b7486Schristos */ 486d16b7486Schristos #define HAVE_DECL_ECVT 0 487d16b7486Schristos 488d16b7486Schristos /* Define to 1 if you have the declaration of `execvpe', and to 0 if you 489d16b7486Schristos don't. */ 490d16b7486Schristos #define HAVE_DECL_EXECVPE 1 491d16b7486Schristos 492eceb233bSchristos /* Define to 1 if you have the declaration of `fchdir', and to 0 if you don't. 493eceb233bSchristos */ 494eceb233bSchristos #define HAVE_DECL_FCHDIR 1 495eceb233bSchristos 496d16b7486Schristos /* Define to 1 if you have the declaration of `fcloseall', and to 0 if you 497d16b7486Schristos don't. */ 498d16b7486Schristos #define HAVE_DECL_FCLOSEALL 0 499d16b7486Schristos 500d16b7486Schristos /* Define to 1 if you have the declaration of `fcvt', and to 0 if you don't. 501d16b7486Schristos */ 502d16b7486Schristos #define HAVE_DECL_FCVT 0 503d16b7486Schristos 504eceb233bSchristos /* Define to 1 if you have the declaration of `fdopendir', and to 0 if you 505eceb233bSchristos don't. */ 506eceb233bSchristos #define HAVE_DECL_FDOPENDIR 1 507eceb233bSchristos 508d16b7486Schristos /* Define to 1 if you have the declaration of `gcvt', and to 0 if you don't. 509d16b7486Schristos */ 510d16b7486Schristos #define HAVE_DECL_GCVT 0 511d16b7486Schristos 512eceb233bSchristos /* Define to 1 if you have the declaration of `getcwd', and to 0 if you don't. 513eceb233bSchristos */ 514eceb233bSchristos #define HAVE_DECL_GETCWD 1 515eceb233bSchristos 516d16b7486Schristos /* Define to 1 if you have the declaration of `getc_unlocked', and to 0 if you 517d16b7486Schristos don't. */ 518d16b7486Schristos #define HAVE_DECL_GETC_UNLOCKED 1 519d16b7486Schristos 520d16b7486Schristos /* Define to 1 if you have the declaration of `getdelim', and to 0 if you 521d16b7486Schristos don't. */ 522d16b7486Schristos #define HAVE_DECL_GETDELIM 1 523d16b7486Schristos 524eceb233bSchristos /* Define to 1 if you have the declaration of `getdtablesize', and to 0 if you 525eceb233bSchristos don't. */ 526eceb233bSchristos #define HAVE_DECL_GETDTABLESIZE 1 527eceb233bSchristos 528d16b7486Schristos /* Define to 1 if you have the declaration of `getline', and to 0 if you 529d16b7486Schristos don't. */ 530d16b7486Schristos #define HAVE_DECL_GETLINE 1 531d16b7486Schristos 532eceb233bSchristos /* Define to 1 if you have the declaration of `getlogin', and to 0 if you 533eceb233bSchristos don't. */ 534eceb233bSchristos #define HAVE_DECL_GETLOGIN 1 535eceb233bSchristos 536eceb233bSchristos /* Define to 1 if you have the declaration of `getlogin_r', and to 0 if you 537eceb233bSchristos don't. */ 538eceb233bSchristos #define HAVE_DECL_GETLOGIN_R 1 539eceb233bSchristos 540eceb233bSchristos /* Define to 1 if you have the declaration of `inet_ntop', and to 0 if you 541eceb233bSchristos don't. */ 542eceb233bSchristos #define HAVE_DECL_INET_NTOP 1 543eceb233bSchristos 544eceb233bSchristos /* Define to 1 if you have the declaration of `localtime_r', and to 0 if you 545eceb233bSchristos don't. */ 546eceb233bSchristos #define HAVE_DECL_LOCALTIME_R 1 547eceb233bSchristos 548eceb233bSchristos /* Define to 1 if you have the declaration of `mbrtowc', and to 0 if you 549eceb233bSchristos don't. */ 550eceb233bSchristos /* #undef HAVE_DECL_MBRTOWC */ 551eceb233bSchristos 552eceb233bSchristos /* Define to 1 if you have the declaration of `mbsinit', and to 0 if you 553eceb233bSchristos don't. */ 554eceb233bSchristos /* #undef HAVE_DECL_MBSINIT */ 555eceb233bSchristos 556eceb233bSchristos /* Define to 1 if you have the declaration of `mbsrtowcs', and to 0 if you 557eceb233bSchristos don't. */ 558eceb233bSchristos /* #undef HAVE_DECL_MBSRTOWCS */ 559eceb233bSchristos 560eceb233bSchristos /* Define to 1 if you have the declaration of `memmem', and to 0 if you don't. 561eceb233bSchristos */ 562eceb233bSchristos #define HAVE_DECL_MEMMEM 1 563eceb233bSchristos 564eceb233bSchristos /* Define to 1 if you have the declaration of `memrchr', and to 0 if you 565eceb233bSchristos don't. */ 566eceb233bSchristos #define HAVE_DECL_MEMRCHR 1 567eceb233bSchristos 568eceb233bSchristos /* Define to 1 if you have the declaration of `program_invocation_name', and 569eceb233bSchristos to 0 if you don't. */ 570eceb233bSchristos #define HAVE_DECL_PROGRAM_INVOCATION_NAME 0 571eceb233bSchristos 572eceb233bSchristos /* Define to 1 if you have the declaration of `program_invocation_short_name', 573eceb233bSchristos and to 0 if you don't. */ 574eceb233bSchristos #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 0 575eceb233bSchristos 576eceb233bSchristos /* Define to 1 if you have the declaration of `setenv', and to 0 if you don't. 577eceb233bSchristos */ 578eceb233bSchristos #define HAVE_DECL_SETENV 1 579eceb233bSchristos 580eceb233bSchristos /* Define to 1 if you have the declaration of `strdup', and to 0 if you don't. 581eceb233bSchristos */ 582eceb233bSchristos #define HAVE_DECL_STRDUP 1 583eceb233bSchristos 584eceb233bSchristos /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you 585eceb233bSchristos don't. */ 586eceb233bSchristos #define HAVE_DECL_STRERROR_R 1 587eceb233bSchristos 588eceb233bSchristos /* Define to 1 if you have the declaration of `strnlen', and to 0 if you 589eceb233bSchristos don't. */ 590eceb233bSchristos #define HAVE_DECL_STRNLEN 1 591eceb233bSchristos 592eceb233bSchristos /* Define to 1 if you have the declaration of `strtok_r', and to 0 if you 593eceb233bSchristos don't. */ 594eceb233bSchristos #define HAVE_DECL_STRTOK_R 1 595eceb233bSchristos 596eceb233bSchristos /* Define to 1 if you have the declaration of `towlower', and to 0 if you 597eceb233bSchristos don't. */ 598eceb233bSchristos /* #undef HAVE_DECL_TOWLOWER */ 599eceb233bSchristos 600eceb233bSchristos /* Define to 1 if you have the declaration of `unsetenv', and to 0 if you 601eceb233bSchristos don't. */ 602eceb233bSchristos #define HAVE_DECL_UNSETENV 1 603eceb233bSchristos 604d16b7486Schristos /* Define to 1 if you have the declaration of `wcsdup', and to 0 if you don't. 605d16b7486Schristos */ 606d16b7486Schristos #define HAVE_DECL_WCSDUP 1 607d16b7486Schristos 608eceb233bSchristos /* Define to 1 if you have the declaration of `__argv', and to 0 if you don't. 609eceb233bSchristos */ 610eceb233bSchristos #define HAVE_DECL___ARGV 0 611eceb233bSchristos 612eceb233bSchristos /* Define to 1 if you have the <dirent.h> header file. */ 613eceb233bSchristos #define HAVE_DIRENT_H 1 614eceb233bSchristos 615eceb233bSchristos /* Define to 1 if you have the `dirfd' function. */ 616eceb233bSchristos /* #undef HAVE_DIRFD */ 617eceb233bSchristos 618eceb233bSchristos /* Define to 1 if you have the <dlfcn.h> header file. */ 619eceb233bSchristos #define HAVE_DLFCN_H 1 620eceb233bSchristos 621eceb233bSchristos /* Define if you have the declaration of environ. */ 622eceb233bSchristos /* #undef HAVE_ENVIRON_DECL */ 623eceb233bSchristos 624d16b7486Schristos /* Define to 1 if you have the `faccessat' function. */ 625d16b7486Schristos #define HAVE_FACCESSAT 1 626d16b7486Schristos 627eceb233bSchristos /* Define to 1 if you have the `fchdir' function. */ 628eceb233bSchristos #define HAVE_FCHDIR 1 629eceb233bSchristos 630d16b7486Schristos /* Define to 1 if you have the `fchown' function. */ 631d16b7486Schristos #define HAVE_FCHOWN 1 632d16b7486Schristos 633eceb233bSchristos /* Define to 1 if you have the `fcntl' function. */ 634eceb233bSchristos #define HAVE_FCNTL 1 635eceb233bSchristos 636eceb233bSchristos /* Define to 1 if you have the `fdopendir' function. */ 637eceb233bSchristos #define HAVE_FDOPENDIR 1 638eceb233bSchristos 639eceb233bSchristos /* Define to 1 if you have the <features.h> header file. */ 640eceb233bSchristos /* #undef HAVE_FEATURES_H */ 641eceb233bSchristos 642d16b7486Schristos /* Define to 1 if you have the `flockfile' function. */ 643d16b7486Schristos #define HAVE_FLOCKFILE 1 644d16b7486Schristos 645eceb233bSchristos /* Define to 1 if you have the `fnmatch' function. */ 646eceb233bSchristos #define HAVE_FNMATCH 1 647eceb233bSchristos 648eceb233bSchristos /* Define to 1 if you have the <fnmatch.h> header file. */ 649eceb233bSchristos #define HAVE_FNMATCH_H 1 650eceb233bSchristos 651d16b7486Schristos /* Define if the 'free' function is guaranteed to preserve errno. */ 652d16b7486Schristos /* #undef HAVE_FREE_POSIX */ 653d16b7486Schristos 654eceb233bSchristos /* Define if the frexp() function is available and works. */ 655d16b7486Schristos /* #undef HAVE_FREXP */ 656eceb233bSchristos 657eceb233bSchristos /* Define if the frexpl() function is available. */ 658eceb233bSchristos #define HAVE_FREXPL 1 659eceb233bSchristos 660eceb233bSchristos /* Define to 1 if you have the `fstatat' function. */ 661eceb233bSchristos #define HAVE_FSTATAT 1 662eceb233bSchristos 663d16b7486Schristos /* Define to 1 if you have the `funlockfile' function. */ 664d16b7486Schristos #define HAVE_FUNLOCKFILE 1 665d16b7486Schristos 666eceb233bSchristos /* Define to 1 if you have the `getcwd' function. */ 667eceb233bSchristos #define HAVE_GETCWD 1 668eceb233bSchristos 669eceb233bSchristos /* Define to 1 if getcwd works, but with shorter paths than is generally 670eceb233bSchristos tested with the replacement. */ 671eceb233bSchristos /* #undef HAVE_GETCWD_SHORTER */ 672eceb233bSchristos 673d16b7486Schristos /* Define to 1 if you have the `getdelim' function. */ 674d16b7486Schristos #define HAVE_GETDELIM 1 675d16b7486Schristos 676eceb233bSchristos /* Define to 1 if you have the `getdtablesize' function. */ 677eceb233bSchristos #define HAVE_GETDTABLESIZE 1 678eceb233bSchristos 679eceb233bSchristos /* Define to 1 if you have the `getexecname' function. */ 680eceb233bSchristos /* #undef HAVE_GETEXECNAME */ 681eceb233bSchristos 682eceb233bSchristos /* Define to 1 if you have the `getlogin_r' function. */ 683eceb233bSchristos #define HAVE_GETLOGIN_R 1 684eceb233bSchristos 685eceb233bSchristos /* Define to 1 if the system has the 'getpagesize' function. */ 686eceb233bSchristos /* #undef HAVE_GETPAGESIZE */ 687eceb233bSchristos 688eceb233bSchristos /* Define to 1 if you have the `getprogname' function. */ 689eceb233bSchristos #define HAVE_GETPROGNAME 1 690eceb233bSchristos 691eceb233bSchristos /* Define to 1 if you have the `getpwnam_r' function. */ 692eceb233bSchristos #define HAVE_GETPWNAM_R 1 693eceb233bSchristos 694eceb233bSchristos /* Define to 1 if you have the `getrandom' function. */ 695eceb233bSchristos #define HAVE_GETRANDOM 1 696eceb233bSchristos 697eceb233bSchristos /* Define to 1 if you have the `gettimeofday' function. */ 698eceb233bSchristos #define HAVE_GETTIMEOFDAY 1 699eceb233bSchristos 700eceb233bSchristos /* Define to 1 if you have the `glob' function. */ 701eceb233bSchristos #define HAVE_GLOB 1 702eceb233bSchristos 703eceb233bSchristos /* Define to 1 if you have the <glob.h> header file. */ 704eceb233bSchristos #define HAVE_GLOB_H 1 705eceb233bSchristos 706eceb233bSchristos /* Define to 1 if you have the `glob_pattern_p' function. */ 707eceb233bSchristos #define HAVE_GLOB_PATTERN_P 1 708eceb233bSchristos 709eceb233bSchristos /* Define to 1 if you have the `inet_ntop' function. */ 710eceb233bSchristos /* #undef HAVE_INET_NTOP */ 711eceb233bSchristos 712eceb233bSchristos /* Define to 1 if you have the <inttypes.h> header file. */ 713eceb233bSchristos #define HAVE_INTTYPES_H 1 714eceb233bSchristos 715eceb233bSchristos /* Define to 1 if <sys/socket.h> defines AF_INET. */ 716eceb233bSchristos #define HAVE_IPV4 1 717eceb233bSchristos 718eceb233bSchristos /* Define to 1 if <sys/socket.h> defines AF_INET6. */ 719eceb233bSchristos #define HAVE_IPV6 1 720eceb233bSchristos 721eceb233bSchristos /* Define to 1 if you have the `isblank' function. */ 722eceb233bSchristos #define HAVE_ISBLANK 1 723eceb233bSchristos 724eceb233bSchristos /* Define if the isnan(double) function is available in libc. */ 725eceb233bSchristos #define HAVE_ISNAND_IN_LIBC 1 726eceb233bSchristos 727eceb233bSchristos /* Define if the isnan(long double) function is available in libc. */ 728eceb233bSchristos #define HAVE_ISNANL_IN_LIBC 1 729eceb233bSchristos 730eceb233bSchristos /* Define to 1 if you have the `iswcntrl' function. */ 731eceb233bSchristos #define HAVE_ISWCNTRL 1 732eceb233bSchristos 733eceb233bSchristos /* Define if you have <langinfo.h> and nl_langinfo(CODESET). */ 734eceb233bSchristos #define HAVE_LANGINFO_CODESET 1 735eceb233bSchristos 736eceb233bSchristos /* Define to 1 if the bcrypt library is guaranteed to be present. */ 737eceb233bSchristos /* #undef HAVE_LIB_BCRYPT */ 738eceb233bSchristos 739eceb233bSchristos /* Define to 1 if you have the <limits.h> header file. */ 740eceb233bSchristos #define HAVE_LIMITS_H 1 741eceb233bSchristos 742eceb233bSchristos /* Define to 1 if you have the `link' function. */ 743eceb233bSchristos #define HAVE_LINK 1 744eceb233bSchristos 745eceb233bSchristos /* Define to 1 if you have the `localtime_r' function. */ 746eceb233bSchristos #define HAVE_LOCALTIME_R 1 747eceb233bSchristos 748eceb233bSchristos /* Define to 1 if the system has the type 'long long int'. */ 749eceb233bSchristos #define HAVE_LONG_LONG_INT 1 750eceb233bSchristos 751eceb233bSchristos /* Define to 1 if you have the `lstat' function. */ 752eceb233bSchristos #define HAVE_LSTAT 1 753eceb233bSchristos 754d16b7486Schristos /* Define if malloc, realloc, and calloc set errno on allocation failure. */ 755eceb233bSchristos #define HAVE_MALLOC_POSIX 1 756eceb233bSchristos 757eceb233bSchristos /* Define to 1 if mmap()'s MAP_ANONYMOUS flag is available after including 758eceb233bSchristos config.h and <sys/mman.h>. */ 759eceb233bSchristos #define HAVE_MAP_ANONYMOUS 1 760eceb233bSchristos 761eceb233bSchristos /* Define to 1 if you have the <math.h> header file. */ 762eceb233bSchristos #define HAVE_MATH_H 1 763eceb233bSchristos 764eceb233bSchristos /* Define to 1 if you have the `mbrtowc' function. */ 765eceb233bSchristos #define HAVE_MBRTOWC 1 766eceb233bSchristos 767eceb233bSchristos /* Define to 1 if you have the `mbsinit' function. */ 768eceb233bSchristos #define HAVE_MBSINIT 1 769eceb233bSchristos 770eceb233bSchristos /* Define to 1 if you have the `mbsrtowcs' function. */ 771eceb233bSchristos #define HAVE_MBSRTOWCS 1 772eceb233bSchristos 773eceb233bSchristos /* Define to 1 if <wchar.h> declares mbstate_t. */ 774eceb233bSchristos #define HAVE_MBSTATE_T 1 775eceb233bSchristos 776eceb233bSchristos /* Define to 1 if you have the `mbtowc' function. */ 777eceb233bSchristos #define HAVE_MBTOWC 1 778eceb233bSchristos 779eceb233bSchristos /* Define to 1 if you have the `memmem' function. */ 780eceb233bSchristos #define HAVE_MEMMEM 1 781eceb233bSchristos 782eceb233bSchristos /* Define to 1 if you have the <memory.h> header file. */ 783eceb233bSchristos #define HAVE_MEMORY_H 1 784eceb233bSchristos 785eceb233bSchristos /* Define to 1 if you have the `mempcpy' function. */ 786d16b7486Schristos #define HAVE_MEMPCPY 1 787eceb233bSchristos 788eceb233bSchristos /* Define to 1 if you have the `memrchr' function. */ 789eceb233bSchristos #define HAVE_MEMRCHR 1 790eceb233bSchristos 791eceb233bSchristos /* Define to 1 if getcwd minimally works, that is, its result can be trusted 792eceb233bSchristos when it succeeds. */ 793eceb233bSchristos /* #undef HAVE_MINIMALLY_WORKING_GETCWD */ 794eceb233bSchristos 795d16b7486Schristos /* Define to 1 if you have the <minix/config.h> header file. */ 796d16b7486Schristos /* #undef HAVE_MINIX_CONFIG_H */ 797d16b7486Schristos 798eceb233bSchristos /* Define to 1 if <limits.h> defines the MIN and MAX macros. */ 799eceb233bSchristos /* #undef HAVE_MINMAX_IN_LIMITS_H */ 800eceb233bSchristos 801eceb233bSchristos /* Define to 1 if <sys/param.h> defines the MIN and MAX macros. */ 802eceb233bSchristos #define HAVE_MINMAX_IN_SYS_PARAM_H 1 803eceb233bSchristos 804eceb233bSchristos /* Define to 1 if you have the `mkdtemp' function. */ 805eceb233bSchristos #define HAVE_MKDTEMP 1 806eceb233bSchristos 807eceb233bSchristos /* Define to 1 if you have the `mkostemp' function. */ 808eceb233bSchristos #define HAVE_MKOSTEMP 1 809eceb233bSchristos 810eceb233bSchristos /* Define to 1 if you have the `mprotect' function. */ 811eceb233bSchristos #define HAVE_MPROTECT 1 812eceb233bSchristos 813eceb233bSchristos /* Define to 1 on MSVC platforms that have the "invalid parameter handler" 814eceb233bSchristos concept. */ 815eceb233bSchristos /* #undef HAVE_MSVC_INVALID_PARAMETER_HANDLER */ 816eceb233bSchristos 817eceb233bSchristos /* Define to 1 if you have the <netdb.h> header file. */ 818eceb233bSchristos #define HAVE_NETDB_H 1 819eceb233bSchristos 820eceb233bSchristos /* Define to 1 if you have the <netinet/in.h> header file. */ 821eceb233bSchristos #define HAVE_NETINET_IN_H 1 822eceb233bSchristos 823eceb233bSchristos /* Define to 1 if you have the `openat' function. */ 824eceb233bSchristos #define HAVE_OPENAT 1 825eceb233bSchristos 826eceb233bSchristos /* Define to 1 if you have the `opendir' function. */ 827eceb233bSchristos #define HAVE_OPENDIR 1 828eceb233bSchristos 829eceb233bSchristos /* Define to 1 if getcwd works, except it sometimes fails when it shouldn't, 830eceb233bSchristos setting errno to ERANGE, ENAMETOOLONG, or ENOENT. */ 831eceb233bSchristos /* #undef HAVE_PARTLY_WORKING_GETCWD */ 832eceb233bSchristos 833eceb233bSchristos /* Define to 1 if you have the `pipe' function. */ 834eceb233bSchristos #define HAVE_PIPE 1 835eceb233bSchristos 836eceb233bSchristos /* Define if you have the <pthread.h> header and the POSIX threads API. */ 837eceb233bSchristos #define HAVE_PTHREAD_API 1 838eceb233bSchristos 839eceb233bSchristos /* Define if the <pthread.h> defines PTHREAD_MUTEX_RECURSIVE. */ 840eceb233bSchristos #define HAVE_PTHREAD_MUTEX_RECURSIVE 1 841eceb233bSchristos 842eceb233bSchristos /* Define if the POSIX multithreading library has read/write locks. */ 843eceb233bSchristos #define HAVE_PTHREAD_RWLOCK 1 844eceb233bSchristos 845eceb233bSchristos /* Define if the 'pthread_rwlock_rdlock' function prefers a writer to a 846eceb233bSchristos reader. */ 847eceb233bSchristos /* #undef HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER */ 848eceb233bSchristos 849eceb233bSchristos /* Define to 1 if you have the `rawmemchr' function. */ 850eceb233bSchristos /* #undef HAVE_RAWMEMCHR */ 851eceb233bSchristos 852eceb233bSchristos /* Define to 1 if you have the `readdir' function. */ 853eceb233bSchristos #define HAVE_READDIR 1 854eceb233bSchristos 855eceb233bSchristos /* Define to 1 if you have the `readlink' function. */ 856eceb233bSchristos #define HAVE_READLINK 1 857eceb233bSchristos 858eceb233bSchristos /* Define to 1 if you have the `realpath' function. */ 859eceb233bSchristos #define HAVE_REALPATH 1 860eceb233bSchristos 861eceb233bSchristos /* Define to 1 if you have the `rewinddir' function. */ 862eceb233bSchristos #define HAVE_REWINDDIR 1 863eceb233bSchristos 864eceb233bSchristos /* Define to 1 if 'long double' and 'double' have the same representation. */ 865eceb233bSchristos /* #undef HAVE_SAME_LONG_DOUBLE_AS_DOUBLE */ 866eceb233bSchristos 867eceb233bSchristos /* Define to 1 if the system has the type `sa_family_t'. */ 868eceb233bSchristos #define HAVE_SA_FAMILY_T 1 869eceb233bSchristos 870d16b7486Schristos /* Define to 1 if you have the <sdkddkver.h> header file. */ 871d16b7486Schristos /* #undef HAVE_SDKDDKVER_H */ 872d16b7486Schristos 873eceb233bSchristos /* Define to 1 if you have the <search.h> header file. */ 874eceb233bSchristos #define HAVE_SEARCH_H 1 875eceb233bSchristos 876eceb233bSchristos /* Define to 1 if you have the `setdtablesize' function. */ 877eceb233bSchristos /* #undef HAVE_SETDTABLESIZE */ 878eceb233bSchristos 879eceb233bSchristos /* Define to 1 if you have the `setenv' function. */ 880eceb233bSchristos #define HAVE_SETENV 1 881eceb233bSchristos 882eceb233bSchristos /* Define to 1 if you have the `shutdown' function. */ 883eceb233bSchristos #define HAVE_SHUTDOWN 1 884eceb233bSchristos 885eceb233bSchristos /* Define to 1 if 'sig_atomic_t' is a signed integer type. */ 886eceb233bSchristos /* #undef HAVE_SIGNED_SIG_ATOMIC_T */ 887eceb233bSchristos 888eceb233bSchristos /* Define to 1 if 'wchar_t' is a signed integer type. */ 889eceb233bSchristos /* #undef HAVE_SIGNED_WCHAR_T */ 890eceb233bSchristos 891eceb233bSchristos /* Define to 1 if 'wint_t' is a signed integer type. */ 892eceb233bSchristos /* #undef HAVE_SIGNED_WINT_T */ 893eceb233bSchristos 894eceb233bSchristos /* Define to 1 if the system has the type `sigset_t'. */ 895eceb233bSchristos #define HAVE_SIGSET_T 1 896eceb233bSchristos 897eceb233bSchristos /* Define to 1 if you have the `snprintf' function. */ 898eceb233bSchristos #define HAVE_SNPRINTF 1 899eceb233bSchristos 900eceb233bSchristos /* Define to 1 if you have the <stdint.h> header file. */ 901eceb233bSchristos #define HAVE_STDINT_H 1 902eceb233bSchristos 903eceb233bSchristos /* Define to 1 if you have the <stdlib.h> header file. */ 904eceb233bSchristos #define HAVE_STDLIB_H 1 905eceb233bSchristos 906eceb233bSchristos /* Define to 1 if you have the `strchrnul' function. */ 907eceb233bSchristos #define HAVE_STRCHRNUL 1 908eceb233bSchristos 909eceb233bSchristos /* Define to 1 if you have the `strerror_r' function. */ 910eceb233bSchristos #define HAVE_STRERROR_R 1 911eceb233bSchristos 912eceb233bSchristos /* Define to 1 if you have the <strings.h> header file. */ 913eceb233bSchristos #define HAVE_STRINGS_H 1 914eceb233bSchristos 915eceb233bSchristos /* Define to 1 if you have the <string.h> header file. */ 916eceb233bSchristos #define HAVE_STRING_H 1 917eceb233bSchristos 918eceb233bSchristos /* Define to 1 if you have the `strtok_r' function. */ 919eceb233bSchristos #define HAVE_STRTOK_R 1 920eceb233bSchristos 921eceb233bSchristos /* Define if there is a member named d_type in the struct describing directory 922eceb233bSchristos headers. */ 923eceb233bSchristos #define HAVE_STRUCT_DIRENT_D_TYPE 1 924eceb233bSchristos 925eceb233bSchristos /* Define to 1 if the system has the type `struct sockaddr_storage'. */ 926eceb233bSchristos #define HAVE_STRUCT_SOCKADDR_STORAGE 1 927eceb233bSchristos 928eceb233bSchristos /* Define to 1 if `ss_family' is a member of `struct sockaddr_storage'. */ 929eceb233bSchristos #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1 930eceb233bSchristos 931eceb233bSchristos /* Define to 1 if `st_atimensec' is a member of `struct stat'. */ 932eceb233bSchristos /* #undef HAVE_STRUCT_STAT_ST_ATIMENSEC */ 933eceb233bSchristos 934eceb233bSchristos /* Define to 1 if `st_atimespec.tv_nsec' is a member of `struct stat'. */ 935eceb233bSchristos /* #undef HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC */ 936eceb233bSchristos 937eceb233bSchristos /* Define to 1 if `st_atim.st__tim.tv_nsec' is a member of `struct stat'. */ 938eceb233bSchristos /* #undef HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC */ 939eceb233bSchristos 940eceb233bSchristos /* Define to 1 if `st_atim.tv_nsec' is a member of `struct stat'. */ 941eceb233bSchristos #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1 942eceb233bSchristos 943eceb233bSchristos /* Define to 1 if `st_birthtimensec' is a member of `struct stat'. */ 944eceb233bSchristos /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC */ 945eceb233bSchristos 946eceb233bSchristos /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */ 947eceb233bSchristos #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1 948eceb233bSchristos 949eceb233bSchristos /* Define to 1 if `st_birthtim.tv_nsec' is a member of `struct stat'. */ 950eceb233bSchristos /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC */ 951eceb233bSchristos 952eceb233bSchristos /* Define to 1 if you have the `symlink' function. */ 953eceb233bSchristos #define HAVE_SYMLINK 1 954eceb233bSchristos 955eceb233bSchristos /* Define to 1 if you have the <sys/bitypes.h> header file. */ 956eceb233bSchristos /* #undef HAVE_SYS_BITYPES_H */ 957eceb233bSchristos 958eceb233bSchristos /* Define to 1 if you have the <sys/inttypes.h> header file. */ 959eceb233bSchristos /* #undef HAVE_SYS_INTTYPES_H */ 960eceb233bSchristos 961eceb233bSchristos /* Define to 1 if you have the <sys/mman.h> header file. */ 962eceb233bSchristos #define HAVE_SYS_MMAN_H 1 963eceb233bSchristos 964eceb233bSchristos /* Define to 1 if you have the <sys/param.h> header file. */ 965eceb233bSchristos #define HAVE_SYS_PARAM_H 1 966eceb233bSchristos 967eceb233bSchristos /* Define to 1 if you have the <sys/random.h> header file. */ 968eceb233bSchristos #define HAVE_SYS_RANDOM_H 1 969eceb233bSchristos 970d16b7486Schristos /* Define to 1 if you have the <sys/select.h> header file. */ 971d16b7486Schristos #define HAVE_SYS_SELECT_H 1 972d16b7486Schristos 973eceb233bSchristos /* Define to 1 if you have the <sys/socket.h> header file. */ 974eceb233bSchristos #define HAVE_SYS_SOCKET_H 1 975eceb233bSchristos 976eceb233bSchristos /* Define to 1 if you have the <sys/stat.h> header file. */ 977eceb233bSchristos #define HAVE_SYS_STAT_H 1 978eceb233bSchristos 979eceb233bSchristos /* Define to 1 if you have the <sys/time.h> header file. */ 980eceb233bSchristos #define HAVE_SYS_TIME_H 1 981eceb233bSchristos 982eceb233bSchristos /* Define to 1 if you have the <sys/types.h> header file. */ 983eceb233bSchristos #define HAVE_SYS_TYPES_H 1 984eceb233bSchristos 985eceb233bSchristos /* Define to 1 if you have the <sys/uio.h> header file. */ 986eceb233bSchristos #define HAVE_SYS_UIO_H 1 987eceb233bSchristos 988d16b7486Schristos /* Define to 1 if you have the <sys/wait.h> header file. */ 989d16b7486Schristos #define HAVE_SYS_WAIT_H 1 990d16b7486Schristos 991eceb233bSchristos /* Define to 1 if you have the `thrd_create' function. */ 992eceb233bSchristos /* #undef HAVE_THRD_CREATE */ 993eceb233bSchristos 994eceb233bSchristos /* Define to 1 if you have the <threads.h> header file. */ 995eceb233bSchristos #define HAVE_THREADS_H 1 996eceb233bSchristos 997eceb233bSchristos /* Define to 1 if you have the `towlower' function. */ 998eceb233bSchristos #define HAVE_TOWLOWER 1 999eceb233bSchristos 1000eceb233bSchristos /* Define to 1 if you have the `tsearch' function. */ 1001eceb233bSchristos #define HAVE_TSEARCH 1 1002eceb233bSchristos 1003eceb233bSchristos /* Define to 1 if you have the <unistd.h> header file. */ 1004eceb233bSchristos #define HAVE_UNISTD_H 1 1005eceb233bSchristos 1006eceb233bSchristos /* Define to 1 if you have the `unsetenv' function. */ 1007eceb233bSchristos #define HAVE_UNSETENV 1 1008eceb233bSchristos 1009eceb233bSchristos /* Define to 1 if the system has the type 'unsigned long long int'. */ 1010eceb233bSchristos #define HAVE_UNSIGNED_LONG_LONG_INT 1 1011eceb233bSchristos 1012eceb233bSchristos /* Define if you have a global __progname variable */ 1013eceb233bSchristos #define HAVE_VAR___PROGNAME 1 1014eceb233bSchristos 1015eceb233bSchristos /* Define to 1 or 0, depending whether the compiler supports simple visibility 1016eceb233bSchristos declarations. */ 1017eceb233bSchristos #define HAVE_VISIBILITY 1 1018eceb233bSchristos 1019eceb233bSchristos /* Define to 1 if you have the <wchar.h> header file. */ 1020eceb233bSchristos #define HAVE_WCHAR_H 1 1021eceb233bSchristos 1022eceb233bSchristos /* Define if you have the 'wchar_t' type. */ 1023eceb233bSchristos #define HAVE_WCHAR_T 1 1024eceb233bSchristos 1025eceb233bSchristos /* Define to 1 if you have the <wctype.h> header file. */ 1026eceb233bSchristos #define HAVE_WCTYPE_H 1 1027eceb233bSchristos 1028eceb233bSchristos /* Define to 1 if the compiler and linker support weak declarations of 1029eceb233bSchristos symbols. */ 1030eceb233bSchristos #define HAVE_WEAK_SYMBOLS 1 1031eceb233bSchristos 1032eceb233bSchristos /* Define to 1 if you have the <windows.h> header file. */ 1033eceb233bSchristos /* #undef HAVE_WINDOWS_H */ 1034eceb233bSchristos 1035eceb233bSchristos /* Define to 1 if you have the <winsock2.h> header file. */ 1036eceb233bSchristos /* #undef HAVE_WINSOCK2_H */ 1037eceb233bSchristos 1038eceb233bSchristos /* Define if you have the 'wint_t' type. */ 1039eceb233bSchristos #define HAVE_WINT_T 1 1040eceb233bSchristos 1041eceb233bSchristos /* Define to 1 if you have the `wmempcpy' function. */ 1042d16b7486Schristos #define HAVE_WMEMPCPY 1 1043eceb233bSchristos 1044eceb233bSchristos /* Define to 1 if fstatat (..., 0) works. For example, it does not work in AIX 1045eceb233bSchristos 7.1. */ 1046d16b7486Schristos #define HAVE_WORKING_FSTATAT_ZERO_FLAG 1 1047eceb233bSchristos 1048eceb233bSchristos /* Define to 1 if O_NOATIME works. */ 1049eceb233bSchristos #define HAVE_WORKING_O_NOATIME 0 1050eceb233bSchristos 1051eceb233bSchristos /* Define to 1 if O_NOFOLLOW works. */ 1052eceb233bSchristos #define HAVE_WORKING_O_NOFOLLOW 0 1053eceb233bSchristos 1054eceb233bSchristos /* Define to 1 if you have the <ws2tcpip.h> header file. */ 1055eceb233bSchristos /* #undef HAVE_WS2TCPIP_H */ 1056eceb233bSchristos 1057eceb233bSchristos /* Define to 1 if you have the <xlocale.h> header file. */ 1058eceb233bSchristos /* #undef HAVE_XLOCALE_H */ 1059eceb233bSchristos 1060eceb233bSchristos /* Define to 1 if the system has the type `_Bool'. */ 1061eceb233bSchristos #define HAVE__BOOL 1 1062eceb233bSchristos 1063eceb233bSchristos /* Define to 1 if you have the `_set_invalid_parameter_handler' function. */ 1064eceb233bSchristos /* #undef HAVE__SET_INVALID_PARAMETER_HANDLER */ 1065eceb233bSchristos 1066eceb233bSchristos /* Define to 1 if the compiler supports __builtin_expect, 1067eceb233bSchristos and to 2 if <builtins.h> does. */ 1068eceb233bSchristos #define HAVE___BUILTIN_EXPECT 1 1069eceb233bSchristos #ifndef HAVE___BUILTIN_EXPECT 1070eceb233bSchristos # define __builtin_expect(e, c) (e) 1071eceb233bSchristos #elif HAVE___BUILTIN_EXPECT == 2 1072eceb233bSchristos # include <builtins.h> 1073eceb233bSchristos #endif 1074eceb233bSchristos 1075eceb233bSchristos 1076d16b7486Schristos /* Define to 1 if ctype.h defines __header_inline. */ 1077d16b7486Schristos /* #undef HAVE___HEADER_INLINE */ 1078d16b7486Schristos 1079d16b7486Schristos /* Please see the Gnulib manual for how to use these macros. 1080d16b7486Schristos 1081d16b7486Schristos Suppress extern inline with HP-UX cc, as it appears to be broken; see 1082d16b7486Schristos <https://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>. 1083d16b7486Schristos 1084d16b7486Schristos Suppress extern inline with Sun C in standards-conformance mode, as it 1085d16b7486Schristos mishandles inline functions that call each other. E.g., for 'inline void f 1086d16b7486Schristos (void) { } inline void g (void) { f (); }', c99 incorrectly complains 1087d16b7486Schristos 'reference to static identifier "f" in extern inline function'. 1088d16b7486Schristos This bug was observed with Oracle Developer Studio 12.6 1089d16b7486Schristos (Sun C 5.15 SunOS_sparc 2017/05/30). 1090d16b7486Schristos 1091d16b7486Schristos Suppress extern inline (with or without __attribute__ ((__gnu_inline__))) 1092d16b7486Schristos on configurations that mistakenly use 'static inline' to implement 1093d16b7486Schristos functions or macros in standard C headers like <ctype.h>. For example, 1094d16b7486Schristos if isdigit is mistakenly implemented via a static inline function, 1095d16b7486Schristos a program containing an extern inline function that calls isdigit 1096d16b7486Schristos may not work since the C standard prohibits extern inline functions 1097d16b7486Schristos from calling static functions (ISO C 99 section 6.7.4.(3). 1098d16b7486Schristos This bug is known to occur on: 1099d16b7486Schristos 1100d16b7486Schristos OS X 10.8 and earlier; see: 1101d16b7486Schristos https://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html 1102d16b7486Schristos 1103d16b7486Schristos DragonFly; see 1104d16b7486Schristos http://muscles.dragonflybsd.org/bulk/clang-master-potential/20141111_102002/logs/ah-tty-0.3.12.log 1105d16b7486Schristos 1106d16b7486Schristos FreeBSD; see: 1107d16b7486Schristos https://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html 1108d16b7486Schristos 1109d16b7486Schristos OS X 10.9 has a macro __header_inline indicating the bug is fixed for C and 1110d16b7486Schristos for clang but remains for g++; see <https://trac.macports.org/ticket/41033>. 1111d16b7486Schristos Assume DragonFly and FreeBSD will be similar. 1112d16b7486Schristos 1113d16b7486Schristos GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 1114d16b7486Schristos inline semantics, unless -fgnu89-inline is used. It defines a macro 1115d16b7486Schristos __GNUC_STDC_INLINE__ to indicate this situation or a macro 1116d16b7486Schristos __GNUC_GNU_INLINE__ to indicate the opposite situation. 1117d16b7486Schristos GCC 4.2 with -std=c99 or -std=gnu99 implements the GNU C inline 1118d16b7486Schristos semantics but warns, unless -fgnu89-inline is used: 1119d16b7486Schristos warning: C99 inline functions are not supported; using GNU89 1120d16b7486Schristos warning: to disable this warning use -fgnu89-inline or the gnu_inline function attribute 1121d16b7486Schristos It defines a macro __GNUC_GNU_INLINE__ to indicate this situation. 1122d16b7486Schristos */ 1123d16b7486Schristos #if (((defined __APPLE__ && defined __MACH__) \ 1124d16b7486Schristos || defined __DragonFly__ || defined __FreeBSD__) \ 1125d16b7486Schristos && (defined HAVE___HEADER_INLINE \ 1126d16b7486Schristos ? (defined __cplusplus && defined __GNUC_STDC_INLINE__ \ 1127d16b7486Schristos && ! defined __clang__) \ 1128d16b7486Schristos : ((! defined _DONT_USE_CTYPE_INLINE_ \ 1129d16b7486Schristos && (defined __GNUC__ || defined __cplusplus)) \ 1130d16b7486Schristos || (defined _FORTIFY_SOURCE && 0 < _FORTIFY_SOURCE \ 1131d16b7486Schristos && defined __GNUC__ && ! defined __cplusplus)))) 1132d16b7486Schristos # define _GL_EXTERN_INLINE_STDHEADER_BUG 1133d16b7486Schristos #endif 1134d16b7486Schristos #if ((__GNUC__ \ 1135d16b7486Schristos ? defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ \ 1136d16b7486Schristos : (199901L <= __STDC_VERSION__ \ 1137d16b7486Schristos && !defined __HP_cc \ 1138d16b7486Schristos && !defined __PGI \ 1139d16b7486Schristos && !(defined __SUNPRO_C && __STDC__))) \ 1140d16b7486Schristos && !defined _GL_EXTERN_INLINE_STDHEADER_BUG) 1141d16b7486Schristos # define _GL_INLINE inline 1142d16b7486Schristos # define _GL_EXTERN_INLINE extern inline 1143d16b7486Schristos # define _GL_EXTERN_INLINE_IN_USE 1144d16b7486Schristos #elif (2 < __GNUC__ + (7 <= __GNUC_MINOR__) && !defined __STRICT_ANSI__ \ 1145d16b7486Schristos && !defined _GL_EXTERN_INLINE_STDHEADER_BUG) 1146d16b7486Schristos # if defined __GNUC_GNU_INLINE__ && __GNUC_GNU_INLINE__ 1147d16b7486Schristos /* __gnu_inline__ suppresses a GCC 4.2 diagnostic. */ 1148d16b7486Schristos # define _GL_INLINE extern inline __attribute__ ((__gnu_inline__)) 1149d16b7486Schristos # else 1150d16b7486Schristos # define _GL_INLINE extern inline 1151d16b7486Schristos # endif 1152d16b7486Schristos # define _GL_EXTERN_INLINE extern 1153d16b7486Schristos # define _GL_EXTERN_INLINE_IN_USE 1154d16b7486Schristos #else 1155d16b7486Schristos # define _GL_INLINE _GL_UNUSED static 1156d16b7486Schristos # define _GL_EXTERN_INLINE _GL_UNUSED static 1157d16b7486Schristos #endif 1158d16b7486Schristos 1159d16b7486Schristos /* In GCC 4.6 (inclusive) to 5.1 (exclusive), 1160d16b7486Schristos suppress bogus "no previous prototype for 'FOO'" 1161d16b7486Schristos and "no previous declaration for 'FOO'" diagnostics, 1162d16b7486Schristos when FOO is an inline function in the header; see 1163d16b7486Schristos <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54113> and 1164d16b7486Schristos <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63877>. */ 1165d16b7486Schristos #if __GNUC__ == 4 && 6 <= __GNUC_MINOR__ 1166d16b7486Schristos # if defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ 1167d16b7486Schristos # define _GL_INLINE_HEADER_CONST_PRAGMA 1168d16b7486Schristos # else 1169d16b7486Schristos # define _GL_INLINE_HEADER_CONST_PRAGMA \ 1170d16b7486Schristos _Pragma ("GCC diagnostic ignored \"-Wsuggest-attribute=const\"") 1171d16b7486Schristos # endif 1172d16b7486Schristos # define _GL_INLINE_HEADER_BEGIN \ 1173d16b7486Schristos _Pragma ("GCC diagnostic push") \ 1174d16b7486Schristos _Pragma ("GCC diagnostic ignored \"-Wmissing-prototypes\"") \ 1175d16b7486Schristos _Pragma ("GCC diagnostic ignored \"-Wmissing-declarations\"") \ 1176d16b7486Schristos _GL_INLINE_HEADER_CONST_PRAGMA 1177d16b7486Schristos # define _GL_INLINE_HEADER_END \ 1178d16b7486Schristos _Pragma ("GCC diagnostic pop") 1179d16b7486Schristos #else 1180d16b7486Schristos # define _GL_INLINE_HEADER_BEGIN 1181d16b7486Schristos # define _GL_INLINE_HEADER_END 1182d16b7486Schristos #endif 1183d16b7486Schristos 1184eceb233bSchristos /* Define to 1 if the compiler supports the keyword '__inline'. */ 1185eceb233bSchristos #define HAVE___INLINE 1 1186eceb233bSchristos 1187eceb233bSchristos /* Define to 1 if you have the `__xpg_strerror_r' function. */ 1188eceb233bSchristos /* #undef HAVE___XPG_STRERROR_R */ 1189eceb233bSchristos 1190eceb233bSchristos /* Define as the bit index in the word where to find bit 0 of the exponent of 1191eceb233bSchristos 'long double'. */ 1192eceb233bSchristos /* #undef LDBL_EXPBIT0_BIT */ 1193eceb233bSchristos 1194eceb233bSchristos /* Define as the word index where to find the exponent of 'long double'. */ 1195eceb233bSchristos /* #undef LDBL_EXPBIT0_WORD */ 1196eceb233bSchristos 1197eceb233bSchristos /* Define to 1 if 'lstat' dereferences a symlink specified with a trailing 1198eceb233bSchristos slash. */ 1199d16b7486Schristos /* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */ 1200eceb233bSchristos 1201eceb233bSchristos /* If malloc(0) is != NULL, define this to 1. Otherwise define this to 0. */ 1202eceb233bSchristos #define MALLOC_0_IS_NONNULL 1 1203eceb233bSchristos 1204eceb233bSchristos /* Define to a substitute value for mmap()'s MAP_ANONYMOUS flag. */ 1205eceb233bSchristos /* #undef MAP_ANONYMOUS */ 1206eceb233bSchristos 1207eceb233bSchristos /* Define if the mbrtowc function does not return (size_t) -2 for empty input. 1208eceb233bSchristos */ 1209eceb233bSchristos /* #undef MBRTOWC_EMPTY_INPUT_BUG */ 1210eceb233bSchristos 1211eceb233bSchristos /* Define if the mbrtowc function may signal encoding errors in the C locale. 1212eceb233bSchristos */ 1213d16b7486Schristos #define MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ 1 1214eceb233bSchristos 1215eceb233bSchristos /* Define if the mbrtowc function has the NULL pwc argument bug. */ 1216eceb233bSchristos /* #undef MBRTOWC_NULL_ARG1_BUG */ 1217eceb233bSchristos 1218eceb233bSchristos /* Define if the mbrtowc function has the NULL string argument bug. */ 1219eceb233bSchristos /* #undef MBRTOWC_NULL_ARG2_BUG */ 1220eceb233bSchristos 1221eceb233bSchristos /* Define if the mbrtowc function does not return 0 for a NUL character. */ 1222eceb233bSchristos /* #undef MBRTOWC_NUL_RETVAL_BUG */ 1223eceb233bSchristos 1224eceb233bSchristos /* Define if the mbrtowc function returns a wrong return value. */ 1225eceb233bSchristos /* #undef MBRTOWC_RETVAL_BUG */ 1226eceb233bSchristos 1227eceb233bSchristos /* Define if the mbrtowc function stores a wide character when reporting 1228eceb233bSchristos incomplete input. */ 1229eceb233bSchristos /* #undef MBRTOWC_STORES_INCOMPLETE_BUG */ 1230eceb233bSchristos 1231eceb233bSchristos /* Use GNU style printf and scanf. */ 1232eceb233bSchristos #ifndef __USE_MINGW_ANSI_STDIO 1233eceb233bSchristos # define __USE_MINGW_ANSI_STDIO 1 1234eceb233bSchristos #endif 1235eceb233bSchristos 1236eceb233bSchristos 1237eceb233bSchristos /* Define to 1 if open() fails to recognize a trailing slash. */ 1238eceb233bSchristos /* #undef OPEN_TRAILING_SLASH_BUG */ 1239eceb233bSchristos 1240eceb233bSchristos /* Define to the address where bug reports for this package should be sent. */ 1241eceb233bSchristos #define PACKAGE_BUGREPORT "" 1242eceb233bSchristos 1243eceb233bSchristos /* Define to the full name of this package. */ 1244eceb233bSchristos #define PACKAGE_NAME "libgnu" 1245eceb233bSchristos 1246eceb233bSchristos /* Define to the full name and version of this package. */ 1247eceb233bSchristos #define PACKAGE_STRING "libgnu UNUSED-VERSION" 1248eceb233bSchristos 1249eceb233bSchristos /* Define to the one symbol short name of this package. */ 1250eceb233bSchristos #define PACKAGE_TARNAME "libgnu" 1251eceb233bSchristos 1252eceb233bSchristos /* Define to the home page for this package. */ 1253eceb233bSchristos #define PACKAGE_URL "" 1254eceb233bSchristos 1255eceb233bSchristos /* Define to the version of this package. */ 1256eceb233bSchristos #define PACKAGE_VERSION "UNUSED-VERSION" 1257eceb233bSchristos 1258eceb233bSchristos /* Define to the type that is the result of default argument promotions of 1259eceb233bSchristos type mode_t. */ 1260eceb233bSchristos #define PROMOTED_MODE_T mode_t 1261eceb233bSchristos 1262eceb233bSchristos /* Define if the pthread_in_use() detection is hard. */ 1263eceb233bSchristos /* #undef PTHREAD_IN_USE_DETECTION_HARD */ 1264eceb233bSchristos 1265eceb233bSchristos /* Define to l, ll, u, ul, ull, etc., as suitable for constants of type 1266eceb233bSchristos 'ptrdiff_t'. */ 1267eceb233bSchristos /* #undef PTRDIFF_T_SUFFIX */ 1268eceb233bSchristos 1269eceb233bSchristos /* Define to 1 if readlink fails to recognize a trailing slash. */ 1270d16b7486Schristos #define READLINK_TRAILING_SLASH_BUG 1 1271d16b7486Schristos 1272d16b7486Schristos /* Define to 1 if readlink sets errno instead of truncating a too-long link. 1273d16b7486Schristos */ 1274d16b7486Schristos #define READLINK_TRUNCATE_BUG 1 1275eceb233bSchristos 1276eceb233bSchristos /* Define if rename does not work when the destination file exists, as on 1277eceb233bSchristos Cygwin 1.5 or Windows. */ 1278*800f65cfSrin /* #undef RENAME_DEST_EXISTS_BUG */ 1279eceb233bSchristos 1280eceb233bSchristos /* Define if rename fails to leave hard links alone, as on NetBSD 1.6 or 1281eceb233bSchristos Cygwin 1.5. */ 1282*800f65cfSrin /* #undef RENAME_HARD_LINK_BUG */ 1283eceb233bSchristos 1284eceb233bSchristos /* Define if rename does not correctly handle slashes on the destination 1285eceb233bSchristos argument, such as on Solaris 11 or NetBSD 1.6. */ 1286*800f65cfSrin /* #undef RENAME_TRAILING_SLASH_DEST_BUG */ 1287eceb233bSchristos 1288eceb233bSchristos /* Define if rename does not correctly handle slashes on the source argument, 1289eceb233bSchristos such as on Solaris 9 or cygwin 1.5. */ 1290*800f65cfSrin /* #undef RENAME_TRAILING_SLASH_SOURCE_BUG */ 1291eceb233bSchristos 1292eceb233bSchristos /* Define to 1 if gnulib's dirfd() replacement is used. */ 1293eceb233bSchristos /* #undef REPLACE_DIRFD */ 1294eceb233bSchristos 1295eceb233bSchristos /* Define to 1 if gnulib's fchdir() replacement is used. */ 1296eceb233bSchristos /* #undef REPLACE_FCHDIR */ 1297eceb233bSchristos 1298eceb233bSchristos /* Define to 1 if stat needs help when passed a file name with a trailing 1299eceb233bSchristos slash */ 1300d16b7486Schristos #define REPLACE_FUNC_STAT_FILE 1 1301eceb233bSchristos 1302eceb233bSchristos /* Define to 1 if open() should work around the inability to open a directory. 1303eceb233bSchristos */ 1304eceb233bSchristos /* #undef REPLACE_OPEN_DIRECTORY */ 1305eceb233bSchristos 1306eceb233bSchristos /* Define to 1 if strerror(0) does not return a message implying success. */ 1307eceb233bSchristos #define REPLACE_STRERROR_0 1 1308eceb233bSchristos 1309eceb233bSchristos /* Define to 1 if setlocale (LC_ALL, NULL) is multithread-safe. */ 1310eceb233bSchristos #define SETLOCALE_NULL_ALL_MTSAFE 0 1311eceb233bSchristos 1312eceb233bSchristos /* Define to 1 if setlocale (category, NULL) is multithread-safe. */ 1313eceb233bSchristos #define SETLOCALE_NULL_ONE_MTSAFE 1 1314eceb233bSchristos 1315eceb233bSchristos /* Define to l, ll, u, ul, ull, etc., as suitable for constants of type 1316eceb233bSchristos 'sig_atomic_t'. */ 1317eceb233bSchristos /* #undef SIG_ATOMIC_T_SUFFIX */ 1318eceb233bSchristos 1319eceb233bSchristos /* Define to l, ll, u, ul, ull, etc., as suitable for constants of type 1320eceb233bSchristos 'size_t'. */ 1321eceb233bSchristos /* #undef SIZE_T_SUFFIX */ 1322eceb233bSchristos 1323eceb233bSchristos /* If using the C implementation of alloca, define if you know the 1324eceb233bSchristos direction of stack growth for your system; otherwise it will be 1325eceb233bSchristos automatically deduced at runtime. 1326eceb233bSchristos STACK_DIRECTION > 0 => grows toward higher addresses 1327eceb233bSchristos STACK_DIRECTION < 0 => grows toward lower addresses 1328eceb233bSchristos STACK_DIRECTION = 0 => direction of growth unknown */ 1329eceb233bSchristos /* #undef STACK_DIRECTION */ 1330eceb233bSchristos 1331eceb233bSchristos /* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */ 1332eceb233bSchristos /* #undef STAT_MACROS_BROKEN */ 1333eceb233bSchristos 1334eceb233bSchristos /* Define to 1 if you have the ANSI C header files. */ 1335eceb233bSchristos #define STDC_HEADERS 1 1336eceb233bSchristos 1337eceb233bSchristos /* Define to 1 if strerror_r returns char *. */ 1338eceb233bSchristos /* #undef STRERROR_R_CHAR_P */ 1339eceb233bSchristos 1340eceb233bSchristos /* Define to 1 if the type of the st_atim member of a struct stat is struct 1341eceb233bSchristos timespec. */ 1342eceb233bSchristos #define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1 1343eceb233bSchristos 1344eceb233bSchristos /* Define if the combination of the ISO C and POSIX multithreading APIs can be 1345eceb233bSchristos used. */ 1346eceb233bSchristos /* #undef USE_ISOC_AND_POSIX_THREADS */ 1347eceb233bSchristos 1348eceb233bSchristos /* Define if the ISO C multithreading library can be used. */ 1349eceb233bSchristos /* #undef USE_ISOC_THREADS */ 1350eceb233bSchristos 1351eceb233bSchristos /* Define if the POSIX multithreading library can be used. */ 1352eceb233bSchristos #define USE_POSIX_THREADS 1 1353eceb233bSchristos 1354d16b7486Schristos /* Define if references to the POSIX multithreading library are satisfied by 1355d16b7486Schristos libc. */ 1356d16b7486Schristos /* #undef USE_POSIX_THREADS_FROM_LIBC */ 1357d16b7486Schristos 1358eceb233bSchristos /* Define if references to the POSIX multithreading library should be made 1359eceb233bSchristos weak. */ 1360eceb233bSchristos #define USE_POSIX_THREADS_WEAK 1 1361eceb233bSchristos 1362eceb233bSchristos /* Enable extensions on AIX 3, Interix. */ 1363eceb233bSchristos #ifndef _ALL_SOURCE 1364eceb233bSchristos # define _ALL_SOURCE 1 1365eceb233bSchristos #endif 1366eceb233bSchristos /* Enable general extensions on macOS. */ 1367eceb233bSchristos #ifndef _DARWIN_C_SOURCE 1368eceb233bSchristos # define _DARWIN_C_SOURCE 1 1369eceb233bSchristos #endif 1370d16b7486Schristos /* Enable general extensions on Solaris. */ 1371d16b7486Schristos #ifndef __EXTENSIONS__ 1372d16b7486Schristos # define __EXTENSIONS__ 1 1373d16b7486Schristos #endif 1374eceb233bSchristos /* Enable GNU extensions on systems that have them. */ 1375eceb233bSchristos #ifndef _GNU_SOURCE 1376eceb233bSchristos # define _GNU_SOURCE 1 1377eceb233bSchristos #endif 1378d16b7486Schristos /* Enable X/Open compliant socket functions that do not require linking 1379d16b7486Schristos with -lxnet on HP-UX 11.11. */ 1380d16b7486Schristos #ifndef _HPUX_ALT_XOPEN_SOCKET_API 1381d16b7486Schristos # define _HPUX_ALT_XOPEN_SOCKET_API 1 1382d16b7486Schristos #endif 1383d16b7486Schristos /* Identify the host operating system as Minix. 1384d16b7486Schristos This macro does not affect the system headers' behavior. 1385d16b7486Schristos A future release of Autoconf may stop defining this macro. */ 1386d16b7486Schristos #ifndef _MINIX 1387d16b7486Schristos /* # undef _MINIX */ 1388d16b7486Schristos #endif 1389d16b7486Schristos /* Enable general extensions on NetBSD. 1390d16b7486Schristos Enable NetBSD compatibility extensions on Minix. */ 1391eceb233bSchristos #ifndef _NETBSD_SOURCE 1392eceb233bSchristos # define _NETBSD_SOURCE 1 1393eceb233bSchristos #endif 1394d16b7486Schristos /* Enable OpenBSD compatibility extensions on NetBSD. 1395d16b7486Schristos Oddly enough, this does nothing on OpenBSD. */ 1396eceb233bSchristos #ifndef _OPENBSD_SOURCE 1397eceb233bSchristos # define _OPENBSD_SOURCE 1 1398eceb233bSchristos #endif 1399d16b7486Schristos /* Define to 1 if needed for POSIX-compatible behavior. */ 1400d16b7486Schristos #ifndef _POSIX_SOURCE 1401d16b7486Schristos /* # undef _POSIX_SOURCE */ 1402d16b7486Schristos #endif 1403d16b7486Schristos /* Define to 2 if needed for POSIX-compatible behavior. */ 1404d16b7486Schristos #ifndef _POSIX_1_SOURCE 1405d16b7486Schristos /* # undef _POSIX_1_SOURCE */ 1406d16b7486Schristos #endif 1407d16b7486Schristos /* Enable POSIX-compatible threading on Solaris. */ 1408eceb233bSchristos #ifndef _POSIX_PTHREAD_SEMANTICS 1409eceb233bSchristos # define _POSIX_PTHREAD_SEMANTICS 1 1410eceb233bSchristos #endif 1411eceb233bSchristos /* Enable extensions specified by ISO/IEC TS 18661-5:2014. */ 1412eceb233bSchristos #ifndef __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1413eceb233bSchristos # define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 1414eceb233bSchristos #endif 1415eceb233bSchristos /* Enable extensions specified by ISO/IEC TS 18661-1:2014. */ 1416eceb233bSchristos #ifndef __STDC_WANT_IEC_60559_BFP_EXT__ 1417eceb233bSchristos # define __STDC_WANT_IEC_60559_BFP_EXT__ 1 1418eceb233bSchristos #endif 1419eceb233bSchristos /* Enable extensions specified by ISO/IEC TS 18661-2:2015. */ 1420eceb233bSchristos #ifndef __STDC_WANT_IEC_60559_DFP_EXT__ 1421eceb233bSchristos # define __STDC_WANT_IEC_60559_DFP_EXT__ 1 1422eceb233bSchristos #endif 1423eceb233bSchristos /* Enable extensions specified by ISO/IEC TS 18661-4:2015. */ 1424eceb233bSchristos #ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__ 1425eceb233bSchristos # define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 1426eceb233bSchristos #endif 1427eceb233bSchristos /* Enable extensions specified by ISO/IEC TS 18661-3:2015. */ 1428eceb233bSchristos #ifndef __STDC_WANT_IEC_60559_TYPES_EXT__ 1429eceb233bSchristos # define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 1430eceb233bSchristos #endif 1431eceb233bSchristos /* Enable extensions specified by ISO/IEC TR 24731-2:2010. */ 1432eceb233bSchristos #ifndef __STDC_WANT_LIB_EXT2__ 1433eceb233bSchristos # define __STDC_WANT_LIB_EXT2__ 1 1434eceb233bSchristos #endif 1435eceb233bSchristos /* Enable extensions specified by ISO/IEC 24747:2009. */ 1436eceb233bSchristos #ifndef __STDC_WANT_MATH_SPEC_FUNCS__ 1437eceb233bSchristos # define __STDC_WANT_MATH_SPEC_FUNCS__ 1 1438eceb233bSchristos #endif 1439eceb233bSchristos /* Enable extensions on HP NonStop. */ 1440eceb233bSchristos #ifndef _TANDEM_SOURCE 1441eceb233bSchristos # define _TANDEM_SOURCE 1 1442eceb233bSchristos #endif 1443d16b7486Schristos /* Enable X/Open extensions. Define to 500 only if necessary 1444d16b7486Schristos to make mbstate_t available. */ 1445eceb233bSchristos #ifndef _XOPEN_SOURCE 1446eceb233bSchristos /* # undef _XOPEN_SOURCE */ 1447eceb233bSchristos #endif 1448eceb233bSchristos 1449eceb233bSchristos 1450eceb233bSchristos /* Define if the native Windows multithreading API can be used. */ 1451eceb233bSchristos /* #undef USE_WINDOWS_THREADS */ 1452eceb233bSchristos 1453eceb233bSchristos /* Define to 1 if unsetenv returns void instead of int. */ 1454eceb233bSchristos /* #undef VOID_UNSETENV */ 1455eceb233bSchristos 1456eceb233bSchristos /* Define to l, ll, u, ul, ull, etc., as suitable for constants of type 1457eceb233bSchristos 'wchar_t'. */ 1458eceb233bSchristos /* #undef WCHAR_T_SUFFIX */ 1459eceb233bSchristos 1460d16b7486Schristos /* Define if WSAStartup is needed. */ 1461d16b7486Schristos /* #undef WINDOWS_SOCKETS */ 1462d16b7486Schristos 1463eceb233bSchristos /* Define to l, ll, u, ul, ull, etc., as suitable for constants of type 1464eceb233bSchristos 'wint_t'. */ 1465eceb233bSchristos /* #undef WINT_T_SUFFIX */ 1466eceb233bSchristos 1467eceb233bSchristos /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most 1468eceb233bSchristos significant byte first (like Motorola and SPARC, unlike Intel). */ 1469eceb233bSchristos #if defined AC_APPLE_UNIVERSAL_BUILD 1470eceb233bSchristos # if defined __BIG_ENDIAN__ 1471eceb233bSchristos # define WORDS_BIGENDIAN 1 1472eceb233bSchristos # endif 1473eceb233bSchristos #else 1474eceb233bSchristos # ifndef WORDS_BIGENDIAN 1475eceb233bSchristos /* # undef WORDS_BIGENDIAN */ 1476eceb233bSchristos # endif 1477eceb233bSchristos #endif 1478eceb233bSchristos 1479eceb233bSchristos /* Number of bits in a file offset, on hosts where this is settable. */ 1480eceb233bSchristos /* #undef _FILE_OFFSET_BITS */ 1481eceb233bSchristos 1482eceb233bSchristos /* True if the compiler says it groks GNU C version MAJOR.MINOR. */ 1483eceb233bSchristos #if defined __GNUC__ && defined __GNUC_MINOR__ 1484eceb233bSchristos # define _GL_GNUC_PREREQ(major, minor) \ 1485eceb233bSchristos ((major) < __GNUC__ + ((minor) <= __GNUC_MINOR__)) 1486eceb233bSchristos #else 1487eceb233bSchristos # define _GL_GNUC_PREREQ(major, minor) 0 1488eceb233bSchristos #endif 1489eceb233bSchristos 1490eceb233bSchristos 1491d16b7486Schristos /* Define to enable the declarations of ISO C 11 types and functions. */ 1492d16b7486Schristos /* #undef _ISOC11_SOURCE */ 1493d16b7486Schristos 1494eceb233bSchristos /* Define for large files, on AIX-style hosts. */ 1495eceb233bSchristos /* #undef _LARGE_FILES */ 1496eceb233bSchristos 1497eceb233bSchristos /* Define to 1 on Solaris. */ 1498eceb233bSchristos /* #undef _LCONV_C99 */ 1499eceb233bSchristos 1500eceb233bSchristos /* The _Noreturn keyword of C11. */ 1501eceb233bSchristos #ifndef _Noreturn 1502eceb233bSchristos # if (defined __cplusplus \ 1503eceb233bSchristos && ((201103 <= __cplusplus && !(__GNUC__ == 4 && __GNUC_MINOR__ == 7)) \ 1504eceb233bSchristos || (defined _MSC_VER && 1900 <= _MSC_VER)) \ 1505eceb233bSchristos && 0) 1506eceb233bSchristos /* [[noreturn]] is not practically usable, because with it the syntax 1507eceb233bSchristos extern _Noreturn void func (...); 1508eceb233bSchristos would not be valid; such a declaration would only be valid with 'extern' 1509eceb233bSchristos and '_Noreturn' swapped, or without the 'extern' keyword. However, some 1510eceb233bSchristos AIX system header files and several gnulib header files use precisely 1511eceb233bSchristos this syntax with 'extern'. */ 1512eceb233bSchristos # define _Noreturn [[noreturn]] 1513eceb233bSchristos # elif ((!defined __cplusplus || defined __clang__) \ 1514eceb233bSchristos && (201112 <= (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) \ 1515d16b7486Schristos || (!defined __STRICT_ANSI__ \ 1516d16b7486Schristos && (_GL_GNUC_PREREQ (4, 7) \ 1517eceb233bSchristos || (defined __apple_build_version__ \ 1518eceb233bSchristos ? 6000000 <= __apple_build_version__ \ 1519d16b7486Schristos : 3 < __clang_major__ + (5 <= __clang_minor__)))))) 1520eceb233bSchristos /* _Noreturn works as-is. */ 1521d16b7486Schristos # elif _GL_GNUC_PREREQ (2, 8) || defined __clang__ || 0x5110 <= __SUNPRO_C 1522eceb233bSchristos # define _Noreturn __attribute__ ((__noreturn__)) 1523eceb233bSchristos # elif 1200 <= (defined _MSC_VER ? _MSC_VER : 0) 1524eceb233bSchristos # define _Noreturn __declspec (noreturn) 1525eceb233bSchristos # else 1526eceb233bSchristos # define _Noreturn 1527eceb233bSchristos # endif 1528eceb233bSchristos #endif 1529eceb233bSchristos 1530eceb233bSchristos 1531eceb233bSchristos /* Define to 1 in order to get the POSIX compatible declarations of socket 1532eceb233bSchristos functions. */ 1533eceb233bSchristos /* #undef _POSIX_PII_SOCKET */ 1534eceb233bSchristos 1535d16b7486Schristos /* Number of bits in a timestamp, on hosts where this is settable. */ 1536d16b7486Schristos /* #undef _TIME_BITS */ 1537eceb233bSchristos 1538eceb233bSchristos /* For standard stat data types on VMS. */ 1539eceb233bSchristos #define _USE_STD_STAT 1 1540eceb233bSchristos 1541d16b7486Schristos /* For 64-bit time_t on 32-bit mingw. */ 1542d16b7486Schristos /* #undef __MINGW_USE_VC2005_COMPAT */ 1543d16b7486Schristos 1544eceb233bSchristos /* Define to 1 if the system <stdint.h> predates C++11. */ 1545eceb233bSchristos /* #undef __STDC_CONSTANT_MACROS */ 1546eceb233bSchristos 1547eceb233bSchristos /* Define to 1 if the system <stdint.h> predates C++11. */ 1548eceb233bSchristos /* #undef __STDC_LIMIT_MACROS */ 1549eceb233bSchristos 1550d16b7486Schristos /* Define to 1 if C does not support variable-length arrays, and if the 1551d16b7486Schristos compiler does not already define this. */ 1552d16b7486Schristos /* #undef __STDC_NO_VLA__ */ 1553d16b7486Schristos 1554eceb233bSchristos /* The _GL_ASYNC_SAFE marker should be attached to functions that are 1555eceb233bSchristos signal handlers (for signals other than SIGABRT, SIGPIPE) or can be 1556eceb233bSchristos invoked from such signal handlers. Such functions have some restrictions: 1557eceb233bSchristos * All functions that it calls should be marked _GL_ASYNC_SAFE as well, 1558eceb233bSchristos or should be listed as async-signal-safe in POSIX 1559eceb233bSchristos <https://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_04> 1560eceb233bSchristos section 2.4.3. Note that malloc(), sprintf(), and fwrite(), in 1561eceb233bSchristos particular, are NOT async-signal-safe. 1562eceb233bSchristos * All memory locations (variables and struct fields) that these functions 1563eceb233bSchristos access must be marked 'volatile'. This holds for both read and write 1564eceb233bSchristos accesses. Otherwise the compiler might optimize away stores to and 1565eceb233bSchristos reads from such locations that occur in the program, depending on its 1566eceb233bSchristos data flow analysis. For example, when the program contains a loop 1567eceb233bSchristos that is intended to inspect a variable set from within a signal handler 1568eceb233bSchristos while (!signal_occurred) 1569eceb233bSchristos ; 1570eceb233bSchristos the compiler is allowed to transform this into an endless loop if the 1571eceb233bSchristos variable 'signal_occurred' is not declared 'volatile'. 1572eceb233bSchristos Additionally, recall that: 1573eceb233bSchristos * A signal handler should not modify errno (except if it is a handler 1574eceb233bSchristos for a fatal signal and ends by raising the same signal again, thus 1575eceb233bSchristos provoking the termination of the process). If it invokes a function 1576eceb233bSchristos that may clobber errno, it needs to save and restore the value of 1577eceb233bSchristos errno. */ 1578eceb233bSchristos #define _GL_ASYNC_SAFE 1579eceb233bSchristos 1580eceb233bSchristos 1581eceb233bSchristos /* Attributes. */ 1582d16b7486Schristos #if (defined __has_attribute \ 1583d16b7486Schristos && (!defined __clang_minor__ \ 1584d16b7486Schristos || (defined __apple_build_version__ \ 1585d16b7486Schristos ? 6000000 <= __apple_build_version__ \ 1586d16b7486Schristos : 3 < __clang_major__ + (5 <= __clang_minor__)))) 1587eceb233bSchristos # define _GL_HAS_ATTRIBUTE(attr) __has_attribute (__##attr##__) 1588eceb233bSchristos #else 1589eceb233bSchristos # define _GL_HAS_ATTRIBUTE(attr) _GL_ATTR_##attr 1590eceb233bSchristos # define _GL_ATTR_alloc_size _GL_GNUC_PREREQ (4, 3) 1591eceb233bSchristos # define _GL_ATTR_always_inline _GL_GNUC_PREREQ (3, 2) 1592eceb233bSchristos # define _GL_ATTR_artificial _GL_GNUC_PREREQ (4, 3) 1593eceb233bSchristos # define _GL_ATTR_cold _GL_GNUC_PREREQ (4, 3) 1594eceb233bSchristos # define _GL_ATTR_const _GL_GNUC_PREREQ (2, 95) 1595eceb233bSchristos # define _GL_ATTR_deprecated _GL_GNUC_PREREQ (3, 1) 1596d16b7486Schristos # define _GL_ATTR_diagnose_if 0 1597eceb233bSchristos # define _GL_ATTR_error _GL_GNUC_PREREQ (4, 3) 1598eceb233bSchristos # define _GL_ATTR_externally_visible _GL_GNUC_PREREQ (4, 1) 1599eceb233bSchristos # define _GL_ATTR_fallthrough _GL_GNUC_PREREQ (7, 0) 1600eceb233bSchristos # define _GL_ATTR_format _GL_GNUC_PREREQ (2, 7) 1601eceb233bSchristos # define _GL_ATTR_leaf _GL_GNUC_PREREQ (4, 6) 1602d16b7486Schristos # define _GL_ATTR_malloc _GL_GNUC_PREREQ (3, 0) 1603eceb233bSchristos # ifdef _ICC 1604eceb233bSchristos # define _GL_ATTR_may_alias 0 1605eceb233bSchristos # else 1606eceb233bSchristos # define _GL_ATTR_may_alias _GL_GNUC_PREREQ (3, 3) 1607eceb233bSchristos # endif 1608eceb233bSchristos # define _GL_ATTR_noinline _GL_GNUC_PREREQ (3, 1) 1609eceb233bSchristos # define _GL_ATTR_nonnull _GL_GNUC_PREREQ (3, 3) 1610eceb233bSchristos # define _GL_ATTR_nonstring _GL_GNUC_PREREQ (8, 0) 1611eceb233bSchristos # define _GL_ATTR_nothrow _GL_GNUC_PREREQ (3, 3) 1612eceb233bSchristos # define _GL_ATTR_packed _GL_GNUC_PREREQ (2, 7) 1613eceb233bSchristos # define _GL_ATTR_pure _GL_GNUC_PREREQ (2, 96) 1614eceb233bSchristos # define _GL_ATTR_returns_nonnull _GL_GNUC_PREREQ (4, 9) 1615eceb233bSchristos # define _GL_ATTR_sentinel _GL_GNUC_PREREQ (4, 0) 1616eceb233bSchristos # define _GL_ATTR_unused _GL_GNUC_PREREQ (2, 7) 1617eceb233bSchristos # define _GL_ATTR_warn_unused_result _GL_GNUC_PREREQ (3, 4) 1618eceb233bSchristos #endif 1619eceb233bSchristos 1620d16b7486Schristos #ifdef __has_c_attribute 1621d16b7486Schristos # if ((defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) <= 201710 \ 1622d16b7486Schristos && _GL_GNUC_PREREQ (4, 6)) 1623d16b7486Schristos # pragma GCC diagnostic ignored "-Wpedantic" 1624d16b7486Schristos # endif 1625d16b7486Schristos # define _GL_HAS_C_ATTRIBUTE(attr) __has_c_attribute (__##attr##__) 1626d16b7486Schristos #else 1627d16b7486Schristos # define _GL_HAS_C_ATTRIBUTE(attr) 0 1628d16b7486Schristos #endif 1629eceb233bSchristos 1630d16b7486Schristos 1631d16b7486Schristos /* _GL_ATTRIBUTE_ALLOC_SIZE ((N)) declares that the Nth argument of the function 1632d16b7486Schristos is the size of the returned memory block. 1633d16b7486Schristos _GL_ATTRIBUTE_ALLOC_SIZE ((M, N)) declares that the Mth argument multiplied 1634d16b7486Schristos by the Nth argument of the function is the size of the returned memory block. 1635d16b7486Schristos */ 1636d16b7486Schristos /* Applies to: function, pointer to function, function types. */ 1637eceb233bSchristos #if _GL_HAS_ATTRIBUTE (alloc_size) 1638eceb233bSchristos # define _GL_ATTRIBUTE_ALLOC_SIZE(args) __attribute__ ((__alloc_size__ args)) 1639eceb233bSchristos #else 1640eceb233bSchristos # define _GL_ATTRIBUTE_ALLOC_SIZE(args) 1641eceb233bSchristos #endif 1642eceb233bSchristos 1643d16b7486Schristos /* _GL_ATTRIBUTE_ALWAYS_INLINE tells that the compiler should always inline the 1644d16b7486Schristos function and report an error if it cannot do so. */ 1645d16b7486Schristos /* Applies to: function. */ 1646eceb233bSchristos #if _GL_HAS_ATTRIBUTE (always_inline) 1647eceb233bSchristos # define _GL_ATTRIBUTE_ALWAYS_INLINE __attribute__ ((__always_inline__)) 1648eceb233bSchristos #else 1649eceb233bSchristos # define _GL_ATTRIBUTE_ALWAYS_INLINE 1650eceb233bSchristos #endif 1651eceb233bSchristos 1652d16b7486Schristos /* _GL_ATTRIBUTE_ARTIFICIAL declares that the function is not important to show 1653d16b7486Schristos in stack traces when debugging. The compiler should omit the function from 1654d16b7486Schristos stack traces. */ 1655d16b7486Schristos /* Applies to: function. */ 1656eceb233bSchristos #if _GL_HAS_ATTRIBUTE (artificial) 1657eceb233bSchristos # define _GL_ATTRIBUTE_ARTIFICIAL __attribute__ ((__artificial__)) 1658eceb233bSchristos #else 1659eceb233bSchristos # define _GL_ATTRIBUTE_ARTIFICIAL 1660eceb233bSchristos #endif 1661eceb233bSchristos 1662d16b7486Schristos /* _GL_ATTRIBUTE_COLD declares that the function is rarely executed. */ 1663d16b7486Schristos /* Applies to: functions. */ 1664eceb233bSchristos /* Avoid __attribute__ ((cold)) on MinGW; see thread starting at 1665d16b7486Schristos <https://lists.gnu.org/r/emacs-devel/2019-04/msg01152.html>. 1666d16b7486Schristos Also, Oracle Studio 12.6 requires 'cold' not '__cold__'. */ 1667eceb233bSchristos #if _GL_HAS_ATTRIBUTE (cold) && !defined __MINGW32__ 1668d16b7486Schristos # ifndef __SUNPRO_C 1669eceb233bSchristos # define _GL_ATTRIBUTE_COLD __attribute__ ((__cold__)) 1670eceb233bSchristos # else 1671d16b7486Schristos # define _GL_ATTRIBUTE_COLD __attribute__ ((cold)) 1672d16b7486Schristos # endif 1673d16b7486Schristos #else 1674eceb233bSchristos # define _GL_ATTRIBUTE_COLD 1675eceb233bSchristos #endif 1676eceb233bSchristos 1677d16b7486Schristos /* _GL_ATTRIBUTE_CONST declares that it is OK for a compiler to omit duplicate 1678d16b7486Schristos calls to the function with the same arguments. 1679d16b7486Schristos This attribute is safe for a function that neither depends on nor affects 1680d16b7486Schristos observable state, and always returns exactly once - e.g., does not loop 1681d16b7486Schristos forever, and does not call longjmp. 1682d16b7486Schristos (This attribute is stricter than _GL_ATTRIBUTE_PURE.) */ 1683d16b7486Schristos /* Applies to: functions. */ 1684eceb233bSchristos #if _GL_HAS_ATTRIBUTE (const) 1685eceb233bSchristos # define _GL_ATTRIBUTE_CONST __attribute__ ((__const__)) 1686eceb233bSchristos #else 1687eceb233bSchristos # define _GL_ATTRIBUTE_CONST 1688eceb233bSchristos #endif 1689eceb233bSchristos 1690d16b7486Schristos /* _GL_ATTRIBUTE_DEALLOC (F, I) declares that the function returns pointers 1691d16b7486Schristos that can be freed by passing them as the Ith argument to the 1692d16b7486Schristos function F. 1693d16b7486Schristos _GL_ATTRIBUTE_DEALLOC_FREE declares that the function returns pointers that 1694d16b7486Schristos can be freed via 'free'; it can be used only after declaring 'free'. */ 1695d16b7486Schristos /* Applies to: functions. Cannot be used on inline functions. */ 1696d16b7486Schristos /* Disable on Solaris to avoid GDB PR build/29791. */ 1697d16b7486Schristos #if _GL_GNUC_PREREQ (11, 0) && !(defined(__sun__) && defined(__svr4__)) 1698d16b7486Schristos # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f, i))) 1699d16b7486Schristos #else 1700d16b7486Schristos # define _GL_ATTRIBUTE_DEALLOC(f, i) 1701d16b7486Schristos #endif 1702d16b7486Schristos /* If gnulib's <string.h> or <wchar.h> has already defined this macro, continue 1703d16b7486Schristos to use this earlier definition, since <stdlib.h> may not have been included 1704d16b7486Schristos yet. */ 1705d16b7486Schristos #ifndef _GL_ATTRIBUTE_DEALLOC_FREE 1706d16b7486Schristos # define _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_DEALLOC (free, 1) 1707d16b7486Schristos #endif 1708d16b7486Schristos 1709d16b7486Schristos /* _GL_ATTRIBUTE_DEPRECATED: Declares that an entity is deprecated. 1710d16b7486Schristos The compiler may warn if the entity is used. */ 1711d16b7486Schristos /* Applies to: 1712d16b7486Schristos - function, variable, 1713d16b7486Schristos - struct, union, struct/union member, 1714d16b7486Schristos - enumeration, enumeration item, 1715d16b7486Schristos - typedef, 1716d16b7486Schristos in C++ also: namespace, class, template specialization. */ 1717d16b7486Schristos #if _GL_HAS_C_ATTRIBUTE (deprecated) 1718eceb233bSchristos # define _GL_ATTRIBUTE_DEPRECATED [[__deprecated__]] 1719eceb233bSchristos #elif _GL_HAS_ATTRIBUTE (deprecated) 1720eceb233bSchristos # define _GL_ATTRIBUTE_DEPRECATED __attribute__ ((__deprecated__)) 1721eceb233bSchristos #else 1722eceb233bSchristos # define _GL_ATTRIBUTE_DEPRECATED 1723eceb233bSchristos #endif 1724eceb233bSchristos 1725d16b7486Schristos /* _GL_ATTRIBUTE_ERROR(msg) requests an error if a function is called and 1726d16b7486Schristos the function call is not optimized away. 1727d16b7486Schristos _GL_ATTRIBUTE_WARNING(msg) requests a warning if a function is called and 1728d16b7486Schristos the function call is not optimized away. */ 1729d16b7486Schristos /* Applies to: functions. */ 1730eceb233bSchristos #if _GL_HAS_ATTRIBUTE (error) 1731eceb233bSchristos # define _GL_ATTRIBUTE_ERROR(msg) __attribute__ ((__error__ (msg))) 1732eceb233bSchristos # define _GL_ATTRIBUTE_WARNING(msg) __attribute__ ((__warning__ (msg))) 1733d16b7486Schristos #elif _GL_HAS_ATTRIBUTE (diagnose_if) 1734d16b7486Schristos # define _GL_ATTRIBUTE_ERROR(msg) __attribute__ ((__diagnose_if__ (1, msg, "error"))) 1735d16b7486Schristos # define _GL_ATTRIBUTE_WARNING(msg) __attribute__ ((__diagnose_if__ (1, msg, "warning"))) 1736eceb233bSchristos #else 1737eceb233bSchristos # define _GL_ATTRIBUTE_ERROR(msg) 1738eceb233bSchristos # define _GL_ATTRIBUTE_WARNING(msg) 1739eceb233bSchristos #endif 1740eceb233bSchristos 1741d16b7486Schristos /* _GL_ATTRIBUTE_EXTERNALLY_VISIBLE declares that the entity should remain 1742d16b7486Schristos visible to debuggers etc., even with '-fwhole-program'. */ 1743d16b7486Schristos /* Applies to: functions, variables. */ 1744eceb233bSchristos #if _GL_HAS_ATTRIBUTE (externally_visible) 1745eceb233bSchristos # define _GL_ATTRIBUTE_EXTERNALLY_VISIBLE __attribute__ ((externally_visible)) 1746eceb233bSchristos #else 1747eceb233bSchristos # define _GL_ATTRIBUTE_EXTERNALLY_VISIBLE 1748eceb233bSchristos #endif 1749eceb233bSchristos 1750d16b7486Schristos /* _GL_ATTRIBUTE_FALLTHROUGH declares that it is not a programming mistake if 1751d16b7486Schristos the control flow falls through to the immediately following 'case' or 1752d16b7486Schristos 'default' label. The compiler should not warn in this case. */ 1753d16b7486Schristos /* Applies to: Empty statement (;), inside a 'switch' statement. */ 1754d16b7486Schristos /* Always expands to something. */ 1755d16b7486Schristos #if _GL_HAS_C_ATTRIBUTE (fallthrough) 1756eceb233bSchristos # define _GL_ATTRIBUTE_FALLTHROUGH [[__fallthrough__]] 1757eceb233bSchristos #elif _GL_HAS_ATTRIBUTE (fallthrough) 1758eceb233bSchristos # define _GL_ATTRIBUTE_FALLTHROUGH __attribute__ ((__fallthrough__)) 1759eceb233bSchristos #else 1760eceb233bSchristos # define _GL_ATTRIBUTE_FALLTHROUGH ((void) 0) 1761eceb233bSchristos #endif 1762eceb233bSchristos 1763d16b7486Schristos /* _GL_ATTRIBUTE_FORMAT ((ARCHETYPE, STRING-INDEX, FIRST-TO-CHECK)) 1764d16b7486Schristos declares that the STRING-INDEXth function argument is a format string of 1765d16b7486Schristos style ARCHETYPE, which is one of: 1766d16b7486Schristos printf, gnu_printf 1767d16b7486Schristos scanf, gnu_scanf, 1768d16b7486Schristos strftime, gnu_strftime, 1769d16b7486Schristos strfmon, 1770d16b7486Schristos or the same thing prefixed and suffixed with '__'. 1771d16b7486Schristos If FIRST-TO-CHECK is not 0, arguments starting at FIRST-TO_CHECK 1772d16b7486Schristos are suitable for the format string. */ 1773d16b7486Schristos /* Applies to: functions. */ 1774eceb233bSchristos #if _GL_HAS_ATTRIBUTE (format) 1775eceb233bSchristos # define _GL_ATTRIBUTE_FORMAT(spec) __attribute__ ((__format__ spec)) 1776eceb233bSchristos #else 1777eceb233bSchristos # define _GL_ATTRIBUTE_FORMAT(spec) 1778eceb233bSchristos #endif 1779eceb233bSchristos 1780d16b7486Schristos /* _GL_ATTRIBUTE_LEAF declares that if the function is called from some other 1781d16b7486Schristos compilation unit, it executes code from that unit only by return or by 1782d16b7486Schristos exception handling. This declaration lets the compiler optimize that unit 1783d16b7486Schristos more aggressively. */ 1784d16b7486Schristos /* Applies to: functions. */ 1785eceb233bSchristos #if _GL_HAS_ATTRIBUTE (leaf) 1786eceb233bSchristos # define _GL_ATTRIBUTE_LEAF __attribute__ ((__leaf__)) 1787eceb233bSchristos #else 1788eceb233bSchristos # define _GL_ATTRIBUTE_LEAF 1789eceb233bSchristos #endif 1790eceb233bSchristos 1791d16b7486Schristos /* _GL_ATTRIBUTE_MALLOC declares that the function returns a pointer to freshly 1792d16b7486Schristos allocated memory. */ 1793d16b7486Schristos /* Applies to: functions. */ 1794eceb233bSchristos #if _GL_HAS_ATTRIBUTE (malloc) 1795eceb233bSchristos # define _GL_ATTRIBUTE_MALLOC __attribute__ ((__malloc__)) 1796eceb233bSchristos #else 1797eceb233bSchristos # define _GL_ATTRIBUTE_MALLOC 1798eceb233bSchristos #endif 1799eceb233bSchristos 1800d16b7486Schristos /* _GL_ATTRIBUTE_MAY_ALIAS declares that pointers to the type may point to the 1801d16b7486Schristos same storage as pointers to other types. Thus this declaration disables 1802d16b7486Schristos strict aliasing optimization. */ 1803d16b7486Schristos /* Applies to: types. */ 1804d16b7486Schristos /* Oracle Studio 12.6 mishandles may_alias despite __has_attribute OK. */ 1805d16b7486Schristos #if _GL_HAS_ATTRIBUTE (may_alias) && !defined __SUNPRO_C 1806d16b7486Schristos # define _GL_ATTRIBUTE_MAY_ALIAS __attribute__ ((__may_alias__)) 1807d16b7486Schristos #else 1808d16b7486Schristos # define _GL_ATTRIBUTE_MAY_ALIAS 1809d16b7486Schristos #endif 1810d16b7486Schristos 1811d16b7486Schristos /* _GL_ATTRIBUTE_MAYBE_UNUSED declares that it is not a programming mistake if 1812d16b7486Schristos the entity is not used. The compiler should not warn if the entity is not 1813d16b7486Schristos used. */ 1814d16b7486Schristos /* Applies to: 1815d16b7486Schristos - function, variable, 1816d16b7486Schristos - struct, union, struct/union member, 1817d16b7486Schristos - enumeration, enumeration item, 1818d16b7486Schristos - typedef, 1819d16b7486Schristos in C++ also: class. */ 1820d16b7486Schristos /* In C++ and C2x, this is spelled [[__maybe_unused__]]. 1821d16b7486Schristos GCC's syntax is __attribute__ ((__unused__)). 1822d16b7486Schristos clang supports both syntaxes. */ 1823d16b7486Schristos #if _GL_HAS_C_ATTRIBUTE (maybe_unused) 1824d16b7486Schristos # define _GL_ATTRIBUTE_MAYBE_UNUSED [[__maybe_unused__]] 1825d16b7486Schristos #else 1826d16b7486Schristos # define _GL_ATTRIBUTE_MAYBE_UNUSED _GL_ATTRIBUTE_UNUSED 1827d16b7486Schristos #endif 1828d16b7486Schristos /* Alternative spelling of this macro, for convenience. */ 1829d16b7486Schristos #define _GL_UNUSED _GL_ATTRIBUTE_MAYBE_UNUSED 1830d16b7486Schristos /* Earlier spellings of this macro. */ 1831d16b7486Schristos #define _UNUSED_PARAMETER_ _GL_ATTRIBUTE_MAYBE_UNUSED 1832d16b7486Schristos 1833d16b7486Schristos /* _GL_ATTRIBUTE_NODISCARD declares that the caller of the function should not 1834d16b7486Schristos discard the return value. The compiler may warn if the caller does not use 1835d16b7486Schristos the return value, unless the caller uses something like ignore_value. */ 1836d16b7486Schristos /* Applies to: function, enumeration, class. */ 1837d16b7486Schristos #if _GL_HAS_C_ATTRIBUTE (nodiscard) 1838eceb233bSchristos # define _GL_ATTRIBUTE_NODISCARD [[__nodiscard__]] 1839eceb233bSchristos #elif _GL_HAS_ATTRIBUTE (warn_unused_result) 1840eceb233bSchristos # define _GL_ATTRIBUTE_NODISCARD __attribute__ ((__warn_unused_result__)) 1841eceb233bSchristos #else 1842eceb233bSchristos # define _GL_ATTRIBUTE_NODISCARD 1843eceb233bSchristos #endif 1844eceb233bSchristos 1845d16b7486Schristos /* _GL_ATTRIBUTE_NOINLINE tells that the compiler should not inline the 1846d16b7486Schristos function. */ 1847d16b7486Schristos /* Applies to: functions. */ 1848eceb233bSchristos #if _GL_HAS_ATTRIBUTE (noinline) 1849eceb233bSchristos # define _GL_ATTRIBUTE_NOINLINE __attribute__ ((__noinline__)) 1850eceb233bSchristos #else 1851eceb233bSchristos # define _GL_ATTRIBUTE_NOINLINE 1852eceb233bSchristos #endif 1853eceb233bSchristos 1854d16b7486Schristos /* _GL_ATTRIBUTE_NONNULL ((N1, N2,...)) declares that the arguments N1, N2,... 1855d16b7486Schristos must not be NULL. 1856d16b7486Schristos _GL_ATTRIBUTE_NONNULL () declares that all pointer arguments must not be 1857d16b7486Schristos null. */ 1858d16b7486Schristos /* Applies to: functions. */ 1859eceb233bSchristos #if _GL_HAS_ATTRIBUTE (nonnull) 1860eceb233bSchristos # define _GL_ATTRIBUTE_NONNULL(args) __attribute__ ((__nonnull__ args)) 1861eceb233bSchristos #else 1862eceb233bSchristos # define _GL_ATTRIBUTE_NONNULL(args) 1863eceb233bSchristos #endif 1864eceb233bSchristos 1865d16b7486Schristos /* _GL_ATTRIBUTE_NONSTRING declares that the contents of a character array is 1866d16b7486Schristos not meant to be NUL-terminated. */ 1867d16b7486Schristos /* Applies to: struct/union members and variables that are arrays of element 1868d16b7486Schristos type '[[un]signed] char'. */ 1869eceb233bSchristos #if _GL_HAS_ATTRIBUTE (nonstring) 1870eceb233bSchristos # define _GL_ATTRIBUTE_NONSTRING __attribute__ ((__nonstring__)) 1871eceb233bSchristos #else 1872eceb233bSchristos # define _GL_ATTRIBUTE_NONSTRING 1873eceb233bSchristos #endif 1874eceb233bSchristos 1875eceb233bSchristos /* There is no _GL_ATTRIBUTE_NORETURN; use _Noreturn instead. */ 1876eceb233bSchristos 1877d16b7486Schristos /* _GL_ATTRIBUTE_NOTHROW declares that the function does not throw exceptions. 1878d16b7486Schristos */ 1879d16b7486Schristos /* Applies to: functions. */ 1880eceb233bSchristos #if _GL_HAS_ATTRIBUTE (nothrow) && !defined __cplusplus 1881eceb233bSchristos # define _GL_ATTRIBUTE_NOTHROW __attribute__ ((__nothrow__)) 1882eceb233bSchristos #else 1883eceb233bSchristos # define _GL_ATTRIBUTE_NOTHROW 1884eceb233bSchristos #endif 1885eceb233bSchristos 1886d16b7486Schristos /* _GL_ATTRIBUTE_PACKED declares: 1887d16b7486Schristos For struct members: The member has the smallest possible alignment. 1888d16b7486Schristos For struct, union, class: All members have the smallest possible alignment, 1889d16b7486Schristos minimizing the memory required. */ 1890d16b7486Schristos /* Applies to: struct members, struct, union, 1891d16b7486Schristos in C++ also: class. */ 1892eceb233bSchristos #if _GL_HAS_ATTRIBUTE (packed) 1893eceb233bSchristos # define _GL_ATTRIBUTE_PACKED __attribute__ ((__packed__)) 1894eceb233bSchristos #else 1895eceb233bSchristos # define _GL_ATTRIBUTE_PACKED 1896eceb233bSchristos #endif 1897eceb233bSchristos 1898d16b7486Schristos /* _GL_ATTRIBUTE_PURE declares that It is OK for a compiler to omit duplicate 1899d16b7486Schristos calls to the function with the same arguments if observable state is not 1900d16b7486Schristos changed between calls. 1901d16b7486Schristos This attribute is safe for a function that does not affect 1902d16b7486Schristos observable state, and always returns exactly once. 1903d16b7486Schristos (This attribute is looser than _GL_ATTRIBUTE_CONST.) */ 1904d16b7486Schristos /* Applies to: functions. */ 1905eceb233bSchristos #if _GL_HAS_ATTRIBUTE (pure) 1906eceb233bSchristos # define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__)) 1907eceb233bSchristos #else 1908eceb233bSchristos # define _GL_ATTRIBUTE_PURE 1909eceb233bSchristos #endif 1910eceb233bSchristos 1911d16b7486Schristos /* _GL_ATTRIBUTE_RETURNS_NONNULL declares that the function's return value is 1912d16b7486Schristos a non-NULL pointer. */ 1913d16b7486Schristos /* Applies to: functions. */ 1914eceb233bSchristos #if _GL_HAS_ATTRIBUTE (returns_nonnull) 1915eceb233bSchristos # define _GL_ATTRIBUTE_RETURNS_NONNULL __attribute__ ((__returns_nonnull__)) 1916eceb233bSchristos #else 1917eceb233bSchristos # define _GL_ATTRIBUTE_RETURNS_NONNULL 1918eceb233bSchristos #endif 1919eceb233bSchristos 1920d16b7486Schristos /* _GL_ATTRIBUTE_SENTINEL(pos) declares that the variadic function expects a 1921d16b7486Schristos trailing NULL argument. 1922d16b7486Schristos _GL_ATTRIBUTE_SENTINEL () - The last argument is NULL (requires C99). 1923d16b7486Schristos _GL_ATTRIBUTE_SENTINEL ((N)) - The (N+1)st argument from the end is NULL. */ 1924d16b7486Schristos /* Applies to: functions. */ 1925eceb233bSchristos #if _GL_HAS_ATTRIBUTE (sentinel) 1926eceb233bSchristos # define _GL_ATTRIBUTE_SENTINEL(pos) __attribute__ ((__sentinel__ pos)) 1927eceb233bSchristos #else 1928eceb233bSchristos # define _GL_ATTRIBUTE_SENTINEL(pos) 1929eceb233bSchristos #endif 1930eceb233bSchristos 1931d16b7486Schristos /* A helper macro. Don't use it directly. */ 1932d16b7486Schristos #if _GL_HAS_ATTRIBUTE (unused) 1933d16b7486Schristos # define _GL_ATTRIBUTE_UNUSED __attribute__ ((__unused__)) 1934d16b7486Schristos #else 1935d16b7486Schristos # define _GL_ATTRIBUTE_UNUSED 1936d16b7486Schristos #endif 1937eceb233bSchristos 1938d16b7486Schristos 1939d16b7486Schristos /* _GL_UNUSED_LABEL; declares that it is not a programming mistake if the 1940d16b7486Schristos immediately preceding label is not used. The compiler should not warn 1941d16b7486Schristos if the label is not used. */ 1942d16b7486Schristos /* Applies to: label (both in C and C++). */ 1943d16b7486Schristos /* Note that g++ < 4.5 does not support the '__attribute__ ((__unused__)) ;' 1944d16b7486Schristos syntax. But clang does. */ 1945d16b7486Schristos #if !(defined __cplusplus && !_GL_GNUC_PREREQ (4, 5)) || defined __clang__ 1946d16b7486Schristos # define _GL_UNUSED_LABEL _GL_ATTRIBUTE_UNUSED 1947eceb233bSchristos #else 1948eceb233bSchristos # define _GL_UNUSED_LABEL 1949eceb233bSchristos #endif 1950eceb233bSchristos 1951eceb233bSchristos 1952eceb233bSchristos /* Define to `int' if <sys/types.h> doesn't define. */ 1953eceb233bSchristos /* #undef gid_t */ 1954eceb233bSchristos 1955eceb233bSchristos /* Define to `__inline__' or `__inline' if that's what the C compiler 1956eceb233bSchristos calls it, or to nothing if 'inline' is not supported under any name. */ 1957eceb233bSchristos #ifndef __cplusplus 1958eceb233bSchristos /* #undef inline */ 1959eceb233bSchristos #endif 1960eceb233bSchristos 1961eceb233bSchristos /* Work around a bug in Apple GCC 4.0.1 build 5465: In C99 mode, it supports 1962eceb233bSchristos the ISO C 99 semantics of 'extern inline' (unlike the GNU C semantics of 1963eceb233bSchristos earlier versions), but does not display it by setting __GNUC_STDC_INLINE__. 1964eceb233bSchristos __APPLE__ && __MACH__ test for Mac OS X. 1965eceb233bSchristos __APPLE_CC__ tests for the Apple compiler and its version. 1966eceb233bSchristos __STDC_VERSION__ tests for the C99 mode. */ 1967eceb233bSchristos #if defined __APPLE__ && defined __MACH__ && __APPLE_CC__ >= 5465 && !defined __cplusplus && __STDC_VERSION__ >= 199901L && !defined __GNUC_STDC_INLINE__ 1968eceb233bSchristos # define __GNUC_STDC_INLINE__ 1 1969eceb233bSchristos #endif 1970eceb233bSchristos 1971eceb233bSchristos /* Define to a type if <wchar.h> does not define. */ 1972eceb233bSchristos /* #undef mbstate_t */ 1973eceb233bSchristos 1974d16b7486Schristos /* _GL_CMP (n1, n2) performs a three-valued comparison on n1 vs. n2, where 1975d16b7486Schristos n1 and n2 are expressions without side effects, that evaluate to real 1976d16b7486Schristos numbers (excluding NaN). 1977d16b7486Schristos It returns 1978d16b7486Schristos 1 if n1 > n2 1979d16b7486Schristos 0 if n1 == n2 1980d16b7486Schristos -1 if n1 < n2 1981d16b7486Schristos The naïve code (n1 > n2 ? 1 : n1 < n2 ? -1 : 0) produces a conditional 1982d16b7486Schristos jump with nearly all GCC versions up to GCC 10. 1983d16b7486Schristos This variant (n1 < n2 ? -1 : n1 > n2) produces a conditional with many 1984d16b7486Schristos GCC versions up to GCC 9. 1985d16b7486Schristos The better code (n1 > n2) - (n1 < n2) from Hacker's Delight § 2-9 1986d16b7486Schristos avoids conditional jumps in all GCC versions >= 3.4. */ 1987d16b7486Schristos #define _GL_CMP(n1, n2) (((n1) > (n2)) - ((n1) < (n2))) 1988d16b7486Schristos 1989d16b7486Schristos 1990eceb233bSchristos /* Define to `int' if <sys/types.h> does not define. */ 1991eceb233bSchristos /* #undef mode_t */ 1992eceb233bSchristos 1993eceb233bSchristos /* Define to the type of st_nlink in struct stat, or a supertype. */ 1994eceb233bSchristos /* #undef nlink_t */ 1995eceb233bSchristos 1996d16b7486Schristos /* Define as a signed integer type capable of holding a process identifier. */ 1997eceb233bSchristos /* #undef pid_t */ 1998eceb233bSchristos 1999eceb233bSchristos /* Define to the equivalent of the C99 'restrict' keyword, or to 2000eceb233bSchristos nothing if this is not supported. Do not define if restrict is 2001d16b7486Schristos supported only directly. */ 2002d16b7486Schristos #define restrict __restrict__ 2003eceb233bSchristos /* Work around a bug in older versions of Sun C++, which did not 2004eceb233bSchristos #define __restrict__ or support _Restrict or __restrict__ 2005eceb233bSchristos even though the corresponding Sun C compiler ended up with 2006eceb233bSchristos "#define restrict _Restrict" or "#define restrict __restrict__" 2007eceb233bSchristos in the previous line. This workaround can be removed once 2008eceb233bSchristos we assume Oracle Developer Studio 12.5 (2016) or later. */ 2009eceb233bSchristos #if defined __SUNPRO_CC && !defined __RESTRICT && !defined __restrict__ 2010eceb233bSchristos # define _Restrict 2011eceb233bSchristos # define __restrict__ 2012eceb233bSchristos #endif 2013eceb233bSchristos 2014eceb233bSchristos /* Define to `unsigned int' if <sys/types.h> does not define. */ 2015eceb233bSchristos /* #undef size_t */ 2016eceb233bSchristos 2017eceb233bSchristos /* type to use in place of socklen_t if not defined */ 2018eceb233bSchristos /* #undef socklen_t */ 2019eceb233bSchristos 2020eceb233bSchristos /* Define as a signed type of the same size as size_t. */ 2021eceb233bSchristos /* #undef ssize_t */ 2022eceb233bSchristos 2023eceb233bSchristos /* Define to `int' if <sys/types.h> doesn't define. */ 2024eceb233bSchristos /* #undef uid_t */ 2025