Ultrix patches for bind 8.2.2-P3

Simon Burge simonb at telstra.com.au
Wed Nov 10 13:57:50 UTC 1999


Here's some patches against bind 8.2.2-P3 for Ultrix.  I've tested on
Ultrix 4.4 and 4.5, used the Ultrix (MIPS) C compiler and gcc 2.7.2.2,
and linked against both the original libc and the "y2k ready" libc
which replaced the resolver with the bind 4.9.3 Beta 17 resolver.

I've done some basic testing and haven't seen a problem yet.  As soon as
I'm happy with hesiod interaction (which we still use for passwords),
I'll try it on our main nameserver (which gets a whopping 6 queries a
second over it's current 133 day uptime ;).

There's three things I'm not entirely happy with in this patch:

 1)  Ultrix' sprintf() is prototyped to return "int", yet it really
     truly is a "char *".  Changing the SPRINTF() macro in the
     SPRINTF_CHAR case to always cast the return of sprintf() to
     "char *" doesn't seem quite right.  Two ideas - have a third
     case in the ifdef checks, or have a define called
     SPRINTF_CHAR_CAST.  Both seem almost as ugly as the current
     solution.

 2)  For some reason I can't track down, when using the Ultrix
     make(1), the

	if test ! -d ${THREADED} ; then mkdir ${THREADED} ; fi

     construct in the library Makefile's fails.  I've just put
     a "-" at the start of these lines.  The other option was
     to use "mkdir -p ${THREADED}" - is that univeral enough
     these days?  (My reasoning is usually "if Ultrix has it, then
     everything else should by now" :)  My main Ultrix box uses
     a BSD4.4-derived make(1) and I don't see the problem there...

 3)  The ICKY_YUCKY_ULTRIX_STUFF ifdef in ns_glue.c.   The 4.9.3
     beta 17 resolver in the Ultrix y2k kit needs to be able to
     see the symbols "res_send" and "_res_close".  Perhaps this
     glue should go in libbind, but I'm still not sure why this
     only effects named and not the other programs that come with
     bind8.

For the prand commands, I change ps' arguments from "-aux" to "-alwx".
I'm not sure if it'll matter here, but if you are using hesiod for
usernames, "aux" will timeout when doing to uid-to-name conversion while
"alx" doesn't do that lookup.  I threw the "w" in as well for just a
little more output.

The other majorish change is using "cc -std1" instead of "cc -YPOSIX".

Simon.
--


diff -ur ../src-DIST/INSTALL ./INSTALL
--- ../src-DIST/INSTALL	Tue Nov  9 09:59:15 1999
+++ ./INSTALL	Wed Nov 10 00:03:16 1999
@@ -186,6 +186,12 @@
 		the problem.  Either run make with "SH=bash" on the command
 		line, or edit src/Makefile and change "SH=sh" to "SH=bash".
 
+	Ultrix
+
+		The ultrix /bin/sh is brain-dead.  Either run make with
+		"SH=sh5" on the command linke, or edit src/Makefile and
+		change "SH=sh" to "SH=sh5".
+
 FD_SETSIZE
 
 	The highest numbered file descriptor that the server and the resolver
diff -ur ../src-DIST/bin/mkservdb/mkservdb.c ./bin/mkservdb/mkservdb.c
--- ../src-DIST/bin/mkservdb/mkservdb.c	Thu Oct 14 02:39:00 1999
+++ ./bin/mkservdb/mkservdb.c	Wed Nov 10 12:32:11 1999
@@ -44,7 +44,7 @@
 #include "port_after.h"
 
 #ifdef SPRINTF_CHAR
-# define SPRINTF(x) strlen(sprintf/**/x)
+# define SPRINTF(x) strlen((char *)sprintf/**/x)
 #else
 # define SPRINTF(x) ((size_t)sprintf x)
 #endif
diff -ur ../src-DIST/bin/named/ns_glue.c ./bin/named/ns_glue.c
--- ../src-DIST/bin/named/ns_glue.c	Tue Oct 19 12:06:26 1999
+++ ./bin/named/ns_glue.c	Wed Nov 10 15:54:36 1999
@@ -448,3 +448,14 @@
 	return (rename(oldname, newname));
 }
 #endif
+
+#ifdef ICKY_YUCKY_ULTRIX_STUFF
+#undef res_send
+int res_send(const u_char *buf, int buflen, u_char *ans, int anssiz) {
+	return __res_send(buf, buflen, ans, anssiz);
+}
+#undef _res_close
+void _res_close(void) {
+	__res_close();
+}
+#endif
diff -ur ../src-DIST/bin/named-xfer/named-xfer.c ./bin/named-xfer/named-xfer.c
--- ../src-DIST/bin/named-xfer/named-xfer.c	Tue Nov  9 10:01:39 1999
+++ ./bin/named-xfer/named-xfer.c	Tue Nov  9 23:45:49 1999
@@ -1151,7 +1151,7 @@
 		 */
 		if (hp->rcode != NOERROR || !hp->aa || qdcount != 1 ||
 		    (ancount < 1 && aucount < 1)) {
-#ifndef ultrix  /*XXX*/
+#ifndef SYSLOG_42BSD
 			syslog(LOG_NOTICE,
        "[%s] %s for %s, SOA query got rcode %d, aa %d, ancount %d, aucount %d",
 			       inet_ntoa(sin.sin_addr),
diff -ur ../src-DIST/lib/bsd/Makefile ./lib/bsd/Makefile
--- ../src-DIST/lib/bsd/Makefile	Mon Feb 22 13:47:57 1999
+++ ./lib/bsd/Makefile	Wed Nov 10 23:50:43 1999
@@ -61,7 +61,7 @@
 	${RANLIB} ${LIBBIND}
 
 .c.${O}:
-	if test ! -d ${THREADED} ; then mkdir ${THREADED} ; fi
+	-if test ! -d ${THREADED} ; then mkdir ${THREADED} ; fi
 	${CC} ${CPPFLAGS} ${CFLAGS} ${BOUNDS} ${REENTRANT} -c $*.c \
 	 -o ${THREADED}/$*.${O}
 	-${LDS} ${LD} ${LD_LIBFLAGS} ${THREADED}/$*.${O} -o a.out && \
diff -ur ../src-DIST/lib/cylink/Makefile ./lib/cylink/Makefile
--- ../src-DIST/lib/cylink/Makefile	Mon Feb 22 13:47:57 1999
+++ ./lib/cylink/Makefile	Wed Nov 10 23:50:48 1999
@@ -60,7 +60,7 @@
 	${RANLIB} ${LIBBIND}
 
 .c.${O}:
-	if test ! -d ${THREADED} ; then mkdir ${THREADED} ; fi
+	-if test ! -d ${THREADED} ; then mkdir ${THREADED} ; fi
 	${CC} ${CPPFLAGS} ${CFLAGS} ${BOUNDS} ${REENTRANT} -c $*.c \
 	 -o ${THREADED}/$*.${O}
 	-${LDS} ${LD} ${LD_LIBFLAGS} ${THREADED}/$*.${O} -o a.out && \
diff -ur ../src-DIST/lib/dnssafe/Makefile ./lib/dnssafe/Makefile
--- ../src-DIST/lib/dnssafe/Makefile	Tue Feb 23 16:26:59 1999
+++ ./lib/dnssafe/Makefile	Wed Nov 10 23:50:51 1999
@@ -81,7 +81,7 @@
 
 
 .c.${O}:
-	if test ! -d ${THREADED} ; then mkdir ${THREADED} ; fi
+	-if test ! -d ${THREADED} ; then mkdir ${THREADED} ; fi
 	${CC} ${CPPFLAGS} ${CFLAGS} ${BOUNDS} ${REENTRANT} -c $*.c \
 	 -o ${THREADED}/$*.${O}
 	-${LDS} ${LD} ${LD_LIBFLAGS} ${THREADED}/$*.${O} && \
diff -ur ../src-DIST/lib/dst/Makefile ./lib/dst/Makefile
--- ../src-DIST/lib/dst/Makefile	Sun Mar  7 20:33:47 1999
+++ ./lib/dst/Makefile	Wed Nov 10 23:50:54 1999
@@ -63,7 +63,7 @@
 	${RANLIB} ${LIBBIND}
 
 .c.${O}:
-	if test ! -d ${THREADED} ; then mkdir ${THREADED} ; fi
+	-if test ! -d ${THREADED} ; then mkdir ${THREADED} ; fi
 	${CC} ${CPPFLAGS} ${CFLAGS} ${BOUNDS} ${REENTRANT} ${CRYPTINCL} ${CRYPTFLAGS} -c $*.c -o ${THREADED}/$*.${O}
 	-${LDS} ${LD} ${LD_LIBFLAGS} ${THREADED}/$*.${O} -o a.out && \
 	 ${LDS} mv a.out ${THREADED}/$*.${O}
diff -ur ../src-DIST/lib/inet/Makefile ./lib/inet/Makefile
--- ../src-DIST/lib/inet/Makefile	Wed Mar  3 19:07:16 1999
+++ ./lib/inet/Makefile	Wed Nov 10 23:50:56 1999
@@ -61,7 +61,7 @@
 	${RANLIB} ${LIBBIND}
 
 .c.${O}:
-	if test ! -d ${THREADED} ; then mkdir ${THREADED} ; fi
+	-if test ! -d ${THREADED} ; then mkdir ${THREADED} ; fi
 	${CC} ${CPPFLAGS} ${CFLAGS} ${BOUNDS} ${REENTRANT} -c $*.c \
 	 -o ${THREADED}/$*.${O}
 	-${LDS} ${LD} ${LD_LIBFLAGS} ${THREADED}/$*.${O} -o a.out && \
diff -ur ../src-DIST/lib/inet/inet_cidr_ntop.c ./lib/inet/inet_cidr_ntop.c
--- ../src-DIST/lib/inet/inet_cidr_ntop.c	Fri Oct  8 06:44:02 1999
+++ ./lib/inet/inet_cidr_ntop.c	Wed Nov 10 12:32:15 1999
@@ -34,7 +34,7 @@
 #include "port_after.h"
 
 #ifdef SPRINTF_CHAR
-# define SPRINTF(x) strlen(sprintf/**/x)
+# define SPRINTF(x) strlen((char *)sprintf/**/x)
 #else
 # define SPRINTF(x) ((size_t)sprintf x)
 #endif
diff -ur ../src-DIST/lib/inet/inet_cidr_pton.c ./lib/inet/inet_cidr_pton.c
--- ../src-DIST/lib/inet/inet_cidr_pton.c	Sat Jan  9 06:23:41 1999
+++ ./lib/inet/inet_cidr_pton.c	Wed Nov 10 12:32:20 1999
@@ -36,7 +36,7 @@
 #include "port_after.h"
 
 #ifdef SPRINTF_CHAR
-# define SPRINTF(x) strlen(sprintf/**/x)
+# define SPRINTF(x) strlen((char *)sprintf/**/x)
 #else
 # define SPRINTF(x) ((size_t)sprintf x)
 #endif
diff -ur ../src-DIST/lib/inet/inet_net_ntop.c ./lib/inet/inet_net_ntop.c
--- ../src-DIST/lib/inet/inet_net_ntop.c	Sat Jan  9 06:23:42 1999
+++ ./lib/inet/inet_net_ntop.c	Wed Nov 10 12:32:24 1999
@@ -34,7 +34,7 @@
 #include "port_after.h"
 
 #ifdef SPRINTF_CHAR
-# define SPRINTF(x) strlen(sprintf/**/x)
+# define SPRINTF(x) strlen((char *)sprintf/**/x)
 #else
 # define SPRINTF(x) ((size_t)sprintf x)
 #endif
diff -ur ../src-DIST/lib/inet/inet_net_pton.c ./lib/inet/inet_net_pton.c
--- ../src-DIST/lib/inet/inet_net_pton.c	Sat Jan  9 06:23:44 1999
+++ ./lib/inet/inet_net_pton.c	Wed Nov 10 12:32:27 1999
@@ -36,7 +36,7 @@
 #include "port_after.h"
 
 #ifdef SPRINTF_CHAR
-# define SPRINTF(x) strlen(sprintf/**/x)
+# define SPRINTF(x) strlen((char *)sprintf/**/x)
 #else
 # define SPRINTF(x) ((size_t)sprintf x)
 #endif
diff -ur ../src-DIST/lib/inet/inet_neta.c ./lib/inet/inet_neta.c
--- ../src-DIST/lib/inet/inet_neta.c	Sat Jan  9 06:23:45 1999
+++ ./lib/inet/inet_neta.c	Wed Nov 10 12:32:30 1999
@@ -33,7 +33,7 @@
 #include "port_after.h"
 
 #ifdef SPRINTF_CHAR
-# define SPRINTF(x) strlen(sprintf/**/x)
+# define SPRINTF(x) strlen((char *)sprintf/**/x)
 #else
 # define SPRINTF(x) ((size_t)sprintf x)
 #endif
diff -ur ../src-DIST/lib/inet/inet_ntop.c ./lib/inet/inet_ntop.c
--- ../src-DIST/lib/inet/inet_ntop.c	Thu Oct 14 02:39:28 1999
+++ ./lib/inet/inet_ntop.c	Wed Nov 10 12:32:34 1999
@@ -36,7 +36,7 @@
 #include "port_after.h"
 
 #ifdef SPRINTF_CHAR
-# define SPRINTF(x) strlen(sprintf/**/x)
+# define SPRINTF(x) strlen((char *)sprintf/**/x)
 #else
 # define SPRINTF(x) ((size_t)sprintf x)
 #endif
diff -ur ../src-DIST/lib/irs/Makefile ./lib/irs/Makefile
--- ../src-DIST/lib/irs/Makefile	Mon Feb 22 13:47:58 1999
+++ ./lib/irs/Makefile	Wed Nov 10 23:50:59 1999
@@ -82,7 +82,7 @@
 	${RANLIB} ${LIBBIND}
 
 .c.${O}:
-	if test ! -d ${THREADED} ; then mkdir ${THREADED} ; fi
+	-if test ! -d ${THREADED} ; then mkdir ${THREADED} ; fi
 	-(${CC} ${CPPFLAGS} ${CFLAGS} ${BOUNDS} ${REENTRANT} -c $*.c \
 	 -o ${THREADED}/$*.${O} ; \
 	 ${LDS} ${LD} ${LD_LIBFLAGS} ${THREADED}/$*.${O} && \
diff -ur ../src-DIST/lib/irs/dns_ho.c ./lib/irs/dns_ho.c
--- ../src-DIST/lib/irs/dns_ho.c	Sat Oct 16 05:49:09 1999
+++ ./lib/irs/dns_ho.c	Wed Nov 10 12:32:39 1999
@@ -84,7 +84,7 @@
 #include "dns_p.h"
 
 #ifdef SPRINTF_CHAR
-# define SPRINTF(x) strlen(sprintf/**/x)
+# define SPRINTF(x) strlen((char *)sprintf/**/x)
 #else
 # define SPRINTF(x) sprintf x
 #endif
diff -ur ../src-DIST/lib/irs/dns_nw.c ./lib/irs/dns_nw.c
--- ../src-DIST/lib/irs/dns_nw.c	Sat Oct 16 05:49:10 1999
+++ ./lib/irs/dns_nw.c	Wed Nov 10 12:32:43 1999
@@ -47,7 +47,7 @@
 #include "dns_p.h"
 
 #ifdef SPRINTF_CHAR
-# define SPRINTF(x) strlen(sprintf/**/x)
+# define SPRINTF(x) strlen((char *)sprintf/**/x)
 #else
 # define SPRINTF(x) sprintf x
 #endif
diff -ur ../src-DIST/lib/irs/lcl_ho.c ./lib/irs/lcl_ho.c
--- ../src-DIST/lib/irs/lcl_ho.c	Thu Oct 14 03:11:19 1999
+++ ./lib/irs/lcl_ho.c	Wed Nov 10 12:32:56 1999
@@ -85,7 +85,7 @@
 #include "dns_p.h"
 
 #ifdef SPRINTF_CHAR
-# define SPRINTF(x) strlen(sprintf/**/x)
+# define SPRINTF(x) strlen((char *)sprintf/**/x)
 #else
 # define SPRINTF(x) sprintf x
 #endif
diff -ur ../src-DIST/lib/irs/lcl_sv.c ./lib/irs/lcl_sv.c
--- ../src-DIST/lib/irs/lcl_sv.c	Fri Oct  8 06:44:03 1999
+++ ./lib/irs/lcl_sv.c	Wed Nov 10 12:33:01 1999
@@ -81,7 +81,7 @@
 #include "lcl_p.h"
 
 #ifdef SPRINTF_CHAR
-# define SPRINTF(x) strlen(sprintf/**/x)
+# define SPRINTF(x) strlen((char *)sprintf/**/x)
 #else
 # define SPRINTF(x) ((size_t)sprintf x)
 #endif
diff -ur ../src-DIST/lib/irs/util.c ./lib/irs/util.c
--- ../src-DIST/lib/irs/util.c	Sat Jan  9 06:25:11 1999
+++ ./lib/irs/util.c	Wed Nov 10 12:33:04 1999
@@ -40,7 +40,7 @@
 #include "irs_p.h"
 
 #ifdef SPRINTF_CHAR
-# define SPRINTF(x) strlen(sprintf/**/x)
+# define SPRINTF(x) strlen((char *)sprintf/**/x)
 #else
 # define SPRINTF(x) sprintf x
 #endif
diff -ur ../src-DIST/lib/isc/Makefile ./lib/isc/Makefile
--- ../src-DIST/lib/isc/Makefile	Mon Feb 22 13:47:58 1999
+++ ./lib/isc/Makefile	Wed Nov 10 23:51:03 1999
@@ -64,7 +64,7 @@
 	${RANLIB} ${LIBBIND}
 
 .c.${O}:
-	if test ! -d ${THREADED} ; then mkdir ${THREADED} ; fi
+	-if test ! -d ${THREADED} ; then mkdir ${THREADED} ; fi
 	${CC} ${CPPFLAGS} ${CFLAGS} ${BOUNDS} ${REENTRANT} -c $*.c \
 	 -o ${THREADED}/$*.${O}
 	-${LDS} ${LD} ${LD_LIBFLAGS} ${THREADED}/$*.${O} -o a.out && \
diff -ur ../src-DIST/lib/isc/ctl_srvr.c ./lib/isc/ctl_srvr.c
--- ../src-DIST/lib/isc/ctl_srvr.c	Sun Oct 17 18:41:57 1999
+++ ./lib/isc/ctl_srvr.c	Wed Nov 10 12:33:08 1999
@@ -53,7 +53,7 @@
 #include "port_after.h"
 
 #ifdef SPRINTF_CHAR
-# define SPRINTF(x) strlen(sprintf/**/x)
+# define SPRINTF(x) strlen((char *)sprintf/**/x)
 #else
 # define SPRINTF(x) ((size_t)sprintf x)
 #endif
diff -ur ../src-DIST/lib/nameser/Makefile ./lib/nameser/Makefile
--- ../src-DIST/lib/nameser/Makefile	Tue Sep  7 18:47:28 1999
+++ ./lib/nameser/Makefile	Wed Nov 10 23:51:09 1999
@@ -59,7 +59,7 @@
 	${RANLIB} ${LIBBIND}
 
 .c.${O}:
-	if test ! -d ${THREADED} ;  then mkdir ${THREADED} ; fi
+	-if test ! -d ${THREADED} ;  then mkdir ${THREADED} ; fi
 	${CC} ${CPPFLAGS} ${CFLAGS} ${BOUNDS} ${REENTRANT} -c $*.c \
 	 -o ${THREADED}/$*.${O}
 	-${LDS} ${LD} ${LD_LIBFLAGS} ${THREADED}/$*.${O} -o a.out && \
diff -ur ../src-DIST/lib/nameser/ns_date.c ./lib/nameser/ns_date.c
--- ../src-DIST/lib/nameser/ns_date.c	Thu Oct 14 02:39:35 1999
+++ ./lib/nameser/ns_date.c	Wed Nov 10 12:33:36 1999
@@ -34,7 +34,7 @@
 #include "port_after.h"
 
 #ifdef SPRINTF_CHAR
-# define SPRINTF(x) strlen(sprintf/**/x)
+# define SPRINTF(x) strlen((char *)sprintf/**/x)
 #else
 # define SPRINTF(x) ((size_t)sprintf x)
 #endif
diff -ur ../src-DIST/lib/nameser/ns_print.c ./lib/nameser/ns_print.c
--- ../src-DIST/lib/nameser/ns_print.c	Tue Oct 19 12:06:54 1999
+++ ./lib/nameser/ns_print.c	Wed Nov 10 12:33:39 1999
@@ -39,7 +39,7 @@
 #include "port_after.h"
 
 #ifdef SPRINTF_CHAR
-# define SPRINTF(x) strlen(sprintf/**/x)
+# define SPRINTF(x) strlen((char *)sprintf/**/x)
 #else
 # define SPRINTF(x) ((size_t)sprintf x)
 #endif
diff -ur ../src-DIST/lib/nameser/ns_ttl.c ./lib/nameser/ns_ttl.c
--- ../src-DIST/lib/nameser/ns_ttl.c	Thu Oct 14 02:39:36 1999
+++ ./lib/nameser/ns_ttl.c	Wed Nov 10 12:33:43 1999
@@ -33,7 +33,7 @@
 #include "port_after.h"
 
 #ifdef SPRINTF_CHAR
-# define SPRINTF(x) strlen(sprintf/**/x)
+# define SPRINTF(x) strlen((char *)sprintf/**/x)
 #else
 # define SPRINTF(x) ((size_t)sprintf x)
 #endif
diff -ur ../src-DIST/lib/resolv/Makefile ./lib/resolv/Makefile
--- ../src-DIST/lib/resolv/Makefile	Thu Oct  7 18:24:15 1999
+++ ./lib/resolv/Makefile	Wed Nov 10 23:51:13 1999
@@ -62,7 +62,7 @@
 	${RANLIB} ${LIBBIND}
 
 .c.${O}:
-	if test ! -d ${THREADED} ; then mkdir ${THREADED} ; fi
+	-if test ! -d ${THREADED} ; then mkdir ${THREADED} ; fi
 	${CC} ${CPPFLAGS} ${CFLAGS} ${BOUNDS} ${REENTRANT} -c $*.c \
 	 -o ${THREADED}/$*.${O}
 	-${LDS} ${LD} ${LD_LIBFLAGS} ${THREADED}/$*.${O} -o a.out && \
diff -ur ../src-DIST/lib/resolv/res_debug.c ./lib/resolv/res_debug.c
--- ../src-DIST/lib/resolv/res_debug.c	Thu Oct 14 02:39:39 1999
+++ ./lib/resolv/res_debug.c	Wed Nov 10 12:33:47 1999
@@ -121,7 +121,7 @@
 #include "port_after.h"
 
 #ifdef SPRINTF_CHAR
-# define SPRINTF(x) strlen(sprintf/**/x)
+# define SPRINTF(x) strlen((char *)sprintf/**/x)
 #else
 # define SPRINTF(x) sprintf x
 #endif
diff -ur ../src-DIST/port/ultrix/Makefile.set ./port/ultrix/Makefile.set
--- ../src-DIST/port/ultrix/Makefile.set	Fri Mar 20 06:50:35 1998
+++ ./port/ultrix/Makefile.set	Wed Nov 10 11:22:56 1999
@@ -1,4 +1,4 @@
-'CC=cc -YPOSIX -Dconst='
+'CC=cc -std1'
 'CDEBUG=-g2 -O1 -Olimit 2000'
 'DESTBIN=/usr/bin'
 'DESTSBIN=/usr/etc'
diff -ur ../src-DIST/port/ultrix/include/port_after.h ./port/ultrix/include/port_after.h
--- ../src-DIST/port/ultrix/include/port_after.h	Sun Sep  5 16:23:21 1999
+++ ./port/ultrix/include/port_after.h	Wed Nov 10 13:07:23 1999
@@ -26,9 +26,11 @@
 #define HAVE_FCHMOD
 #define NEED_DAEMON
 #define NEED_MKSTEMP
+#define SPRINTF_CHAR		/* XXX prototype is int for stdc, but result is char * !! */
 #define SIOCGIFCONF_ADDR
 #define HAVE_CHROOT
 #define CAN_CHANGE_ID
+#define ICKY_YUCKY_ULTRIX_STUFF	/* XXX Ugly glue for named and Ultrix' libc resolver */
 
 #define _TIMEZONE	timezone
 #define SIG_FN		void
diff -ur ../src-DIST/port/ultrix/include/port_before.h ./port/ultrix/include/port_before.h
--- ../src-DIST/port/ultrix/include/port_before.h	Sun Sep  5 16:23:22 1999
+++ ./port/ultrix/include/port_before.h	Wed Nov 10 22:47:15 1999
@@ -14,6 +14,7 @@
 #define WANT_IRS_NIS
 #undef WANT_IRS_PW
 #undef WANT_IRS_GR
+#define SIG_FN void
 
 #include <time.h>
 struct timespec {
@@ -24,5 +25,8 @@
 #if defined(HAS_PTHREADS) && defined(_REENTRANT)
 #define DO_PTHREADS
 #endif
+
+#define LITTLE_ENDIAN	1234
+#define BYTE_ORDER	LITTLE_ENDIAN
 
 #endif /*PORT_BEFORE_H*/
diff -ur ../src-DIST/port/ultrix/include/prand_conf.h ./port/ultrix/include/prand_conf.h
--- ../src-DIST/port/ultrix/include/prand_conf.h	Sun Sep  5 17:04:07 1999
+++ ./port/ultrix/include/prand_conf.h	Tue Nov  9 23:49:07 1999
@@ -2,13 +2,15 @@
 #define _PRAND_CMD_H_
 
 const char *cmds[] = {
-	"/bin/ps -aux 2>&1",
+	"/bin/ps -alwx 2>&1",
 	"/usr/etc/arp -an 2>&1",
 	"/usr/ucb/netstat -an 2>&1",
 	"/usr/bin/df  2>&1",
 	"/usr/ucb/uptime  2>&1",
-	"/usr/ucb/netstat -an 2>&1",
+	"/usr/ucb/netstat -s 2>&1",
 	"/usr/bin/iostat  2>&1",
+	"/usr/ucb/vmstat  2>&1",
+	"/usr/ucb/w  2>&1",
 	NULL
 };
 


More information about the bind-workers mailing list