summaryrefslogtreecommitdiff
path: root/plan9
diff options
context:
space:
mode:
Diffstat (limited to 'plan9')
-rw-r--r--plan9/config.plan964
-rw-r--r--plan9/mkfile8
2 files changed, 57 insertions, 15 deletions
diff --git a/plan9/config.plan9 b/plan9/config.plan9
index b10c75852f..a900df34a9 100644
--- a/plan9/config.plan9
+++ b/plan9/config.plan9
@@ -51,6 +51,12 @@
*/
#define BIN "/_P9P_OBJTYPE/bin" /* */
+/* BINCOMPAT3:
+ * This symbol, if defined, indicates that Perl 5.004 should be
+ * binary-compatible with Perl 5.003.
+ */
+#undef BINCOMPAT3 /**/
+
/* CPPSTDIN:
* This symbol contains the first part of the string which will invoke
* the C preprocessor on the standard input and produce to standard
@@ -298,6 +304,15 @@
*/
#undef HAS_GETPRIORITY /**/
+/* HAS_GETTIMEOFDAY:
+ * This symbol, if defined, indicates that the gettimeofday() system
+ * call is available for a sub-second accuracy clock. Usually, the file
+ * <sys/resource.h> needs to be included (see I_SYS_RESOURCE).
+ * The type "Timeval" should be used to refer to "struct timeval".
+ */
+#define HAS_GETTIMEOFDAY /**/
+#define Timeval struct timeval /* Structure used by gettimeofday() */ /* config-skip */
+
/* HAS_HTONL:
* This symbol, if defined, indicates that the htonl() routine (and
* friends htons() ntohl() ntohs()) are available to do network
@@ -326,6 +341,13 @@
#define HAS_NTOHS /**/
+/* HAS_INET_ATON:
+ * This symbol, if defined, indicates to the C program that the
+ * inet_aton() function is available to parse IP address "dotted-quad"
+ * strings.
+ */
+#undef HAS_INET_ATON /**/
+
/* HAS_ISASCII:
* This manifest constant lets the C program know that isascii
* is available.
@@ -484,6 +506,13 @@
*/
#define HAS_READDIR /**/
+/* HAS_SANE_MEMCMP:
+ * This symbol, if defined, indicates that the memcmp routine is available
+ * and can be used to compare relative magnitudes of chars with their high
+ * bits set. If it is not defined, roll your own version.
+ */
+#define HAS_SANE_MEMCMP /**/
+
/* HAS_SEEKDIR:
* This symbol, if defined, indicates that the seekdir routine is
* available. You may have to include <dirent.h>. See I_DIRENT.
@@ -693,6 +722,24 @@
#define HAS_SOCKET /**/
#define HAS_SOCKETPAIR /**/
+/* HAS_STRTOD:
+ * This symbol, if defined, indicates that the strtod routine is
+ * available to provide better numeric string conversion than atof().
+ */
+#define HAS_STRTOD /**/
+
+/* HAS_STRTOL:
+ * This symbol, if defined, indicates that the strtol routine is available
+ * to provide better numeric string conversion than atoi() and friends.
+ */
+#define HAS_STRTOL /**/
+
+/* HAS_STRTOUL:
+ * This symbol, if defined, indicates that the strtoul routine is
+ * available to provide conversion of strings to unsigned long.
+ */
+#define HAS_STRTOUL /**/
+
/* USE_STAT_BLOCKS:
* This symbol is defined if this system has a stat structure declaring
* st_blksize and st_blocks.
@@ -759,15 +806,6 @@
#define FILE_bufsiz(fp) ((fp)->_cnt + (fp)->_ptr - (fp)->_base)
#endif
-/* FILE_filbuf:
- * This macro is used to access the internal stdio _filbuf function
- * (or equivalent), if STDIO_CNT_LVALUE and STDIO_PTR_LVALUE
- * are defined. It is typically either _filbuf or __filbuf.
- * This macro will only be defined if both STDIO_CNT_LVALUE and
- * STDIO_PTR_LVALUE are defined.
- */
-#undef FILE_filbuf
-
/* HAS_STRCHR:
* This symbol is defined to indicate that the strchr()/strrchr()
* functions are available for string searching. If not, try the
@@ -1347,6 +1385,14 @@
#define ARCHLIB_EXP "/_P9P_OBJTYPE/lib/perl/_P9P_VERSION"
#define ARCHLIB "/_P9P_OBJTYPE/lib/perl/_P9P_VERSION"
+/* ARCHNAME:
+ * This symbol holds a string representing the architecture name.
+ * It may be used to construct an architecture-dependant pathname
+ * where library files may be held under a private library, for
+ * instance.
+ */
+#define ARCHNAME "plan9__P9P_OBJTYPE" /**/
+
/* BYTEORDER:
* This symbol hold the hexadecimal constant defined in byteorder,
* i.e. 0x1234 or 0x4321, etc...
diff --git a/plan9/mkfile b/plan9/mkfile
index e3102f5ef0..e56aa3c472 100644
--- a/plan9/mkfile
+++ b/plan9/mkfile
@@ -26,8 +26,8 @@ libpods = ${podnames:%=pod/%.pod}
perlpods = $libpods
-extensions = IO Socket Opcode DynaLoader Fcntl FileHandle POSIX
-ext_xs = IO.xs Socket.xs Opcode.xs dl_none.xs Fcntl.xs FileHandle.xs POSIX.xs
+extensions = IO Socket Opcode DynaLoader Fcntl POSIX
+ext_xs = IO.xs Socket.xs Opcode.xs dl_none.xs Fcntl.xs POSIX.xs
ext_c = ${ext_xs:%.xs=%.c}
ext_obj = ${ext_xs:%.xs=%.$O}
@@ -98,10 +98,6 @@ Fcntl.c: miniperl ext/Fcntl/Fcntl.xs
./miniperl $privlib/ExtUtils/xsubpp -noprototypes -typemap $privlib/ExtUtils/typemap ext/Fcntl/Fcntl.xs > $target
cp ext/Fcntl/Fcntl.pm $privlib
-FileHandle.c: miniperl ext/FileHandle/FileHandle.xs
- ./miniperl $privlib/ExtUtils/xsubpp -noprototypes -typemap $privlib/ExtUtils/typemap ext/FileHandle/FileHandle.xs > $target
- cp ext/FileHandle/FileHandle.pm $privlib
-
POSIX.c: miniperl ext/POSIX/POSIX.xs
./miniperl $privlib/ExtUtils/xsubpp -noprototypes -typemap $privlib/ExtUtils/typemap ext/POSIX/POSIX.xs > $target
cp ext/POSIX/POSIX.pm $privlib