This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Adjust need size for locale radix.
[perl5.git] / uconfig.h
index 82b3c25..a1aa34f 100644 (file)
--- a/uconfig.h
+++ b/uconfig.h
 
 /* HAS_MBSTOWCS:
  *     This symbol, if defined, indicates that the mbstowcs routine is
- *     available to covert a multibyte string into a wide character string.
+ *     available to convert a multibyte string into a wide character string.
  */
 /*#define      HAS_MBSTOWCS            / **/
 
 /* HAS_MBTOWC:
  *     This symbol, if defined, indicates that the mbtowc routine is available
- *     to covert a multibyte to a wide character.
+ *     to convert a multibyte to a wide character.
  */
 /*#define HAS_MBTOWC           / **/
 
  *     This symbol, if defined, indicates that the strtol routine is available
  *     to provide better numeric string conversion than atoi() and friends.
  */
-/*#define HAS_STRTOL   / **/
+#define HAS_STRTOL     /**/
 
 /* HAS_STRXFRM:
  *     This symbol, if defined, indicates that the strxfrm() routine is
 
 /* HAS_WCTOMB:
  *     This symbol, if defined, indicates that the wctomb routine is available
- *     to covert a wide character to a multibyte.
+ *     to convert a wide character to a multibyte.
  */
 /*#define HAS_WCTOMB           / **/
 
  */
 /*#define I_NETINET_IN / **/
 
-/* I_SFIO:
- *     This symbol, if defined, indicates to the C program that it should
- *     include <sfio.h>.
- */
-/*#define      I_SFIO          / **/
-
 /* I_STDDEF:
  *     This symbol, if defined, indicates that <stddef.h> exists and should
  *     be included.
  */
 /*#define I_SYS_WAIT   / **/
 
-/* I_TERMIO:
- *     This symbol, if defined, indicates that the program should include
- *     <termio.h> rather than <sgtty.h>.  There are also differences in
- *     the ioctl() calls that depend on the value of this symbol.
- */
-/* I_TERMIOS:
- *     This symbol, if defined, indicates that the program should include
- *     the POSIX termios.h rather than sgtty.h or termio.h.
- *     There are also differences in the ioctl() calls that depend on the
- *     value of this symbol.
- */
-/* I_SGTTY:
- *     This symbol, if defined, indicates that the program should include
- *     <sgtty.h> rather than <termio.h>.  There are also differences in
- *     the ioctl() calls that depend on the value of this symbol.
- */
-/*#define I_TERMIO             / **/
-/*#define I_TERMIOS            / **/
-/*#define I_SGTTY              / **/
-
 /* I_UNISTD:
  *     This symbol, if defined, indicates to the C program that it should
  *     include <unistd.h>.
 #define OSNAME "unknown"               /**/
 #define OSVERS "unknown"               /**/
 
-/* USE_CROSS_COMPILE:
- *     This symbol, if defined, indicates that Perl is being cross-compiled.
- */
-/* PERL_TARGETARCH:
- *     This symbol, if defined, indicates the target architecture
- *     Perl has been cross-compiled to.  Undefined if not a cross-compile.
- */
-#ifndef USE_CROSS_COMPILE
-/*#define      USE_CROSS_COMPILE       / **/
-#define        PERL_TARGETARCH ""      /**/
-#endif
-
 /* MULTIARCH:
  *     This symbol, if defined, signifies that the build
  *     process will produce some binary files that are going to be
 /* MEM_ALIGNBYTES:
  *     This symbol contains the number of bytes required to align a
  *     double, or a long double when applicable. Usual values are 2,
- *     4 and 8. The default is eight, for safety.
+ *     4 and 8. The default is eight, for safety.  For cross-compiling
+ *     or multiarch support, Configure will set a minimum of 8.
  */
-#if defined(USE_CROSS_COMPILE) || defined(MULTIARCH)
-#  define MEM_ALIGNBYTES 8
-#else
 #define MEM_ALIGNBYTES 4
-#endif
 
 /* ARCHLIB:
  *     This variable, if defined, holds the name of the directory in
  *     This symbol contains the ~name expanded version of ARCHLIB, to be used
  *     in programs that are not prepared to deal with ~ expansion at run-time.
  */
-/*#define ARCHLIB "/usr/local/lib/perl5/5.17/unknown"          / **/
-/*#define ARCHLIB_EXP "/usr/local/lib/perl5/5.17/unknown"              / **/
+/*#define ARCHLIB "/usr/local/lib/perl5/5.21/unknown"          / **/
+/*#define ARCHLIB_EXP "/usr/local/lib/perl5/5.21/unknown"              / **/
 
 /* ARCHNAME:
  *     This symbol holds a string representing the architecture name.
  */
 #define BIN "/usr/local/bin"   /**/
 #define BIN_EXP "/usr/local/bin"       /**/
-/*#define PERL_RELOCATABLE_INC                 / **/
+#define PERL_RELOCATABLE_INC "undef"           /**/
 
 /* INTSIZE:
  *     This symbol contains the value of sizeof(int) so that the C
  *     This symbol holds the hexadecimal constant defined in byteorder,
  *     in a UV, i.e. 0x1234 or 0x4321 or 0x12345678, etc...
  *     If the compiler supports cross-compiling or multiple-architecture
- *     binaries (eg. on NeXT systems), use compiler-defined macros to
+ *     binaries, use compiler-defined macros to
  *     determine the byte order.
- *     On NeXT 3.2 (and greater), you can build "Fat" Multiple Architecture
- *     Binaries (MAB) on either big endian or little endian machines.
- *     The endian-ness is available at compile-time.  This only matters
- *     for perl, where the config.h can be generated and installed on
- *     one system, and used by a different architecture to build an
- *     extension.  Older versions of NeXT that might not have
- *     defined either *_ENDIAN__ were all on Motorola 680x0 series,
- *     so the default case (for NeXT) is big endian to catch them.
- *     This might matter for NeXT 3.0.
- */
-#if defined(USE_CROSS_COMPILE) || defined(MULTIARCH)
+ */
+#if defined(MULTIARCH)
 #  ifdef __LITTLE_ENDIAN__
 #    if LONGSIZE == 4
 #      define BYTEORDER 0x1234
 #      endif
 #    endif
 #  endif
-#  if !defined(BYTEORDER) && (defined(NeXT) || defined(__NeXT__))
-#    define BYTEORDER 0x4321
-#  endif
 #else
 #define BYTEORDER 0x1234       /* large digits for MSB */
-#endif /* NeXT */
+#endif
 
 /* CHARBITS:
  *     This symbol contains the size of a char, so that the C preprocessor
 /*#define HASATTRIBUTE_UNUSED  / **/
 /*#define HASATTRIBUTE_WARN_UNUSED_RESULT      / **/
 
+/* HAS_BACKTRACE:
+ *     This symbol, if defined, indicates that the backtrace() routine is
+ *     available to get a stack trace.  The <execinfo.h> header must be
+ *     included to use this routine.
+ */
+/*#define HAS_BACKTRACE        / **/
+
 /* CASTI32:
  *     This symbol is defined if the C compiler can cast negative
  *     or large floating point numbers to 32-bit ints.
 /*#define HAS_CTIME_R     / **/
 #define CTIME_R_PROTO 0           /**/
 
+/* HAS_DLADDR:
+ *     This symbol, if defined, indicates that the dladdr() routine is
+ *     available to query dynamic linker information for an address.
+ *     The <dlfcn.h> header must be included to use this routine.
+ */
+/*#define HAS_DLADDR   / **/
+
 /* SETUID_SCRIPTS_ARE_SECURE_NOW:
  *     This symbol, if defined, indicates that the bug that prevents
  *     setuid scripts from being secure is not present in this kernel.
  *     C preprocessor can make decisions based on it.  It is only
  *     defined if the system supports long doubles.
  */
+/* LONG_DOUBLEKIND:
+ *     LONG_DOUBLEKIND will be one of
+ *     LONG_DOUBLE_IS_DOUBLE
+ *     LONG_DOUBLE_IS_IEEE_754_128_BIT_LITTLE_ENDIAN
+ *     LONG_DOUBLE_IS_IEEE_754_128_BIT_BIG_ENDIAN
+ *     LONG_DOUBLE_IS_X86_80_BIT_LITTLE_ENDIAN
+ *     LONG_DOUBLE_IS_X86_80_BIT_BIG_ENDIAN
+ *     LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_LITTLE_ENDIAN
+ *     LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_BIG_ENDIAN
+ *     LONG_DOUBLE_IS_UNKNOWN_FORMAT
+ *     It is only defined if the system supports long doubles.
+ */
 /*#define HAS_LONG_DOUBLE              / **/
 #ifdef HAS_LONG_DOUBLE
 #define LONG_DOUBLESIZE 8              /**/
+#define LONG_DOUBLEKIND 0              /**/
+#define LONG_DOUBLE_IS_DOUBLE                          0
+#define LONG_DOUBLE_IS_IEEE_754_128_BIT_LITTLE_ENDIAN  1
+#define LONG_DOUBLE_IS_IEEE_754_128_BIT_BIG_ENDIAN     2
+#define LONG_DOUBLE_IS_X86_80_BIT_LITTLE_ENDIAN                3
+#define LONG_DOUBLE_IS_X86_80_BIT_BIG_ENDIAN           4
+#define LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_LITTLE_ENDIAN      5
+#define LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_BIG_ENDIAN 6
+#define LONG_DOUBLE_IS_UNKNOWN_FORMAT                  -1
 #endif
 
 /* HAS_LONG_LONG:
  *     This symbol, if defined, indicates that the struct sockaddr_in6
  *     structure has a member called sin6_scope_id.
  */
+/* HAS_IP_MREQ:
+ *     This symbol, if defined, indicates the availability of
+ *     struct ip_mreq;
+ */
+/* HAS_IP_MREQ_SOURCE:
+ *     This symbol, if defined, indicates the availability of
+ *     struct ip_mreq_source;
+ */
 /* HAS_IPV6_MREQ:
  *     This symbol, if defined, indicates the availability of
  *     struct ipv6_mreq;
  */
+/* HAS_IPV6_MREQ_SOURCE:
+ *     This symbol, if defined, indicates the availability of
+ *     struct ipv6_mreq_source;
+ */
 /*#define      HAS_SOCKET              / **/
 /*#define      HAS_SOCKETPAIR  / **/
 /*#define      HAS_SOCKADDR_SA_LEN     / **/
 /*#define      HAS_SCM_RIGHTS  / **/
 /*#define      HAS_SOCKADDR_IN6        / **/
 /*#define      HAS_SIN6_SCOPE_ID       / **/
+/*#define      HAS_IP_MREQ     / **/
+/*#define      HAS_IP_MREQ_SOURCE      / **/
 /*#define      HAS_IPV6_MREQ   / **/
+/*#define      HAS_IPV6_MREQ_SOURCE    / **/
 
 /* HAS_SRAND48_R:
  *     This symbol, if defined, indicates that the srand48_r routine
 #define DOUBLESIZE 8           /**/
 
 /* EBCDIC:
- *     This symbol, if defined, indicates that this system uses
+ *     This symbol, if defined, indicates that this system uses
  *     EBCDIC encoding.
  */
 /*#define      EBCDIC          / **/
 #define        Gid_t_f         "lu"            /**/
 
 /* Gid_t_sign:
- *     This symbol holds the signedess of a Gid_t.
+ *     This symbol holds the signedness of a Gid_t.
  *     1 for unsigned, -1 for signed.
  */
 #define Gid_t_sign     1               /* GID sign */
 /*#define DIRNAMLEN    / **/
 #define Direntry_t struct dirent
 
+/* I_EXECINFO:
+ *     This symbol, if defined, indicates to the C program that it should
+ *     include <execinfo.h> for backtrace() support.
+ */
+/*#define I_EXECINFO           / **/
+
 /* I_GRP:
  *     This symbol, if defined, indicates to the C program that it should
  *     include <grp.h>.
  */
 /*#define      I_SYSUIO                / **/
 
+/* I_TERMIO:
+ *     This symbol, if defined, indicates that the program should include
+ *     <termio.h> rather than <sgtty.h>.  There are also differences in
+ *     the ioctl() calls that depend on the value of this symbol.
+ */
+/* I_TERMIOS:
+ *     This symbol, if defined, indicates that the program should include
+ *     the POSIX termios.h rather than sgtty.h or termio.h.
+ *     There are also differences in the ioctl() calls that depend on the
+ *     value of this symbol.
+ */
+/* I_SGTTY:
+ *     This symbol, if defined, indicates that the program should include
+ *     <sgtty.h> rather than <termio.h>.  There are also differences in
+ *     the ioctl() calls that depend on the value of this symbol.
+ */
+/*#define I_TERMIO             / **/
+/*#define I_TERMIOS            / **/
+/*#define I_SGTTY              / **/
+
 /* I_TIME:
  *     This symbol, if defined, indicates to the C program that it should
  *     include <time.h>.
  *     This symbol contains the ~name expanded version of PRIVLIB, to be used
  *     in programs that are not prepared to deal with ~ expansion at run-time.
  */
-#define PRIVLIB "/usr/local/lib/perl5/5.17"            /**/
-#define PRIVLIB_EXP "/usr/local/lib/perl5/5.17"                /**/
+#define PRIVLIB "/usr/local/lib/perl5/5.21"            /**/
+#define PRIVLIB_EXP "/usr/local/lib/perl5/5.21"                /**/
 
 /* CAN_PROTOTYPE:
  *     If defined, this macro indicates that the C compiler can handle
  *     function used to generate normalized random numbers.
  *     Values include 15, 16, 31, and 48.
  */
-#define Drand01()              ((rand() & 0x7FFF) / (double) ((unsigned long)1 << 15))         /**/
-#define Rand_seed_t            int             /**/
-#define seedDrand01(x) srand((Rand_seed_t)x)   /**/
+#define Drand01()              Perl_drand48()          /**/
+#define Rand_seed_t            U32             /**/
+#define seedDrand01(x) Perl_drand48_init((Rand_seed_t)x)       /**/
 #define RANDBITS               48              /**/
 
 /* Select_fd_set_t:
  *     This symbol contains the ~name expanded version of SITEARCH, to be used
  *     in programs that are not prepared to deal with ~ expansion at run-time.
  */
-/*#define SITEARCH "/usr/local/lib/perl5/5.17/unknown"         / **/
-/*#define SITEARCH_EXP "/usr/local/lib/perl5/5.17/unknown"             / **/
+/*#define SITEARCH "/usr/local/lib/perl5/5.21/unknown"         / **/
+/*#define SITEARCH_EXP "/usr/local/lib/perl5/5.21/unknown"             / **/
 
 /* SITELIB:
  *     This symbol contains the name of the private library for this package.
  *     removed.  The elements in inc_version_list (inc_version_list.U) can
  *     be tacked onto this variable to generate a list of directories to search.
  */
-#define SITELIB "/usr/local/lib/perl5/5.17"            /**/
-#define SITELIB_EXP "/usr/local/lib/perl5/5.17"                /**/
+#define SITELIB "/usr/local/lib/perl5/5.21"            /**/
+#define SITELIB_EXP "/usr/local/lib/perl5/5.21"                /**/
 #define SITELIB_STEM "/usr/local/lib/perl5"            /**/
 
 /* Size_t_size:
 #define        Uid_t_f         "lu"            /**/
 
 /* Uid_t_sign:
- *     This symbol holds the signedess of a Uid_t.
+ *     This symbol holds the signedness of a Uid_t.
  *     1 for unsigned, -1 for signed.
  */
 #define Uid_t_sign     1               /* UID sign */
 /*#define PERL_VENDORLIB_EXP ""                / **/
 /*#define PERL_VENDORLIB_STEM ""               / **/
 
-/* VOIDFLAGS:
- *     This symbol indicates how much support of the void type is given by this
- *     compiler.  What various bits mean:
- *
- *         1 = supports declaration of void
- *         2 = supports arrays of pointers to functions returning void
- *         4 = supports comparisons between pointers to void functions and
- *                 addresses of void functions
- *         8 = supports declaration of generic void pointers
- *
- *     The package designer should define VOIDUSED to indicate the requirements
- *     of the package.  This can be done either by #defining VOIDUSED before
- *     including config.h, or by defining defvoidused in Myinit.U.  If the
- *     latter approach is taken, only those flags will be tested.  If the
- *     level of void support necessary is not present, defines void to int.
- */
-#ifndef VOIDUSED
-#define VOIDUSED 1
-#endif
-#define VOIDFLAGS 1
-#if (VOIDFLAGS & VOIDUSED) != VOIDUSED
-#define void int               /* is void to be avoided? */
-#define M_VOID                 /* Xenix strikes again */
+/* USE_CROSS_COMPILE:
+ *     This symbol, if defined, indicates that Perl is being cross-compiled.
+ */
+/* PERL_TARGETARCH:
+ *     This symbol, if defined, indicates the target architecture
+ *     Perl has been cross-compiled to.  Undefined if not a cross-compile.
+ */
+#ifndef USE_CROSS_COMPILE
+/*#define      USE_CROSS_COMPILE       / **/
+#define        PERL_TARGETARCH ""      /**/
 #endif
 
 /* PERL_USE_DEVEL:
  */
 /*#define HAS_FREXPL           / **/
 
+/* HAS_LDEXPL:
+ *     This symbol, if defined, indicates that the ldexpl routine is
+ *     available to shift a long double floating-point number
+ *     by an integral power of 2.
+ */
+/*#define HAS_LDEXPL           / **/
+
 /* HAS_STRUCT_FS_DATA:
  *     This symbol, if defined, indicates that the struct fs_data
  *     to do statfs() is supported.
 /*#define     HAS_INT64_T               / **/
 
 /* HAS_ISBLANK:
- *     This manifest constant lets the C program know that isblank 
+ *     This manifest constant lets the C program know that isblank
  *     is available.
  */
 /*#define HAS_ISBLANK          / **/
  */
 /*#define HAS_PTHREAD_ATTR_SETSCOPE            / **/
 
+/* HAS_PTRDIFF_T:
+ *     This symbol will be defined if the C compiler supports ptrdiff_t.
+ */
+#define        HAS_PTRDIFF_T                   /**/
+
 /* HAS_READV:
  *     This symbol, if defined, indicates that the readv routine is
  *     available to do gather reads.  You will also need <sys/uio.h>
  */
 /*#define HAS_SETPROCTITLE             / **/
 
-/* USE_SFIO:
- *     This symbol, if defined, indicates that sfio should
- *     be used.
- */
-/*#define      USE_SFIO                / **/
-
 /* HAS_SIGNBIT:
  *     This symbol, if defined, indicates that the signbit routine is
  *     available to check if the given number has the sign bit set.
  */
 /*#define HAS_USTAT            / **/
 
+/* HAS_WCSCMP:
+ *     This symbol, if defined, indicates that the wcscmp routine is
+ *     available to compare two wide character strings.
+ */
+/*#define HAS_WCSCMP   / **/
+
+/* HAS_WCSXFRM:
+ *     This symbol, if defined, indicates that the wcsxfrm routine is
+ *     available to tranform a wide character string for wcscmp().
+ */
+/*#define HAS_WCSXFRM  / **/
+
 /* HAS_WRITEV:
  *     This symbol, if defined, indicates that the writev routine is
  *     available to do scatter writes.
 /*#define USE_DYNAMIC_LOADING          / **/
 
 /* FFLUSH_NULL:
- *     This symbol, if defined, tells that fflush(NULL) does flush
- *     all pending stdio output.
+ *     This symbol, if defined, tells that fflush(NULL) correctly
+ *     flushes all pending stdio output without side effects. In
+ *     particular, on some platforms calling fflush(NULL) *still*
+ *     corrupts STDIN if it is a pipe.
  */
 /* FFLUSH_ALL:
  *     This symbol, if defined, tells that to flush
  */
 #define        I_ASSERT                /**/
 
+/* I_BFD:
+ *     This symbol, if defined, indicates that <bfd.h> exists and
+ *     can be included.
+ */
+/*#define      I_BFD           / **/
+
 /* I_CRYPT:
  *     This symbol, if defined, indicates that <crypt.h> exists and
  *     should be included.
 /*#define PERL_PRIeldbl        "lle"   / **/
 /*#define PERL_SCNfldbl        "llf"   / **/
 
-/* PERL_MAD:
- *     This symbol, if defined, indicates that the Misc Attribution
- *     Declaration code should be conditionally compiled.
- */
-/*#define      PERL_MAD                / **/
-
 /* NEED_VA_COPY:
  *     This symbol, if defined, indicates that the system stores
  *     the variable argument list datatype, va_list, in a format
  *     This variable contains the size of struct stat's st_ino in bytes.
  */
 /* ST_INO_SIGN:
- *     This symbol holds the signedess of struct stat's st_ino.
+ *     This symbol holds the signedness of struct stat's st_ino.
  *     1 for unsigned, -1 for signed.
  */
 #define ST_INO_SIGN 1  /* st_ino sign */
 /*#define      USE_64_BIT_ALL          / **/
 #endif
 
+/* USE_CBACKTRACE:
+ *     This symbol, if defined, indicates that Perl should
+ *     be built with support for backtrace.
+ */
+/*#define USE_CBACKTRACE               / **/
+
 /* USE_DTRACE:
  *     This symbol, if defined, indicates that Perl should
  *     be built with support for DTrace.
 #endif
 
 /* Generated from:
- * d9b6a68b192c72c0695b560fae6e4916b381f55df5fdf7911b0ef434840f092e config_h.SH
- * 573628443b0f7d922ef2706de7e05f3d5ff794bcb6708b68ddcecd0e2d30e7bd uconfig.sh
+ * 5f68e17a9d9e989b824daf55d2adcad3b7af2becfa8f627c6cb1d0e376f7e1a5 config_h.SH
+ * 98397a7d818a024628d6b34e5903a8f408da96601a2a19471c480511f3c8d914 uconfig.sh
  * ex: set ro: */