This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perlapi: Refactor placements, headings of some functions
[perl5.git] / uconfig.h
index 20b1f23..35f1a0d 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.16/unknown"          / **/
-/*#define ARCHLIB_EXP "/usr/local/lib/perl5/5.16/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 (e.g. on NeXT systems), 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.
  *     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
  *     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 */
  *     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.16"            /**/
-#define PRIVLIB_EXP "/usr/local/lib/perl5/5.16"                /**/
+#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.16/unknown"         / **/
-/*#define SITEARCH_EXP "/usr/local/lib/perl5/5.16/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.16"            /**/
-#define SITELIB_EXP "/usr/local/lib/perl5/5.16"                /**/
+#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 */
+/* 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              / **/
+
+/* 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_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_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
  *     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 */
 #endif
 
 /* Generated from:
- * d9b6a68b192c72c0695b560fae6e4916b381f55df5fdf7911b0ef434840f092e config_h.SH
- * 2678333a6d6676f8aa39b7011bf5133dce5be453df10a8d04cb3187103a10caf uconfig.sh
+ * 06dae33599ea14bee0e39e3b22e1f685aaae36422af2c567dc1de19203950835 config_h.SH
+ * 6859e7550b3ae0da512f0a8b99762af72df599ab734520206d7b3574459e948f uconfig.sh
  * ex: set ro: */