Patch for -P2 for A/UX 3.1.1

Jim Jagielski jim at devsys.jaguNET.com
Sat Nov 6 13:54:46 UTC 1999


Here is a small patch to clean up some fluff for the port to A/UX
as well as increase BIND's reliability under that platform. Diff'ed
against P2:

--- ../Osrc/./bin/named/ns_main.c	Fri Oct 15 17:53:37 1999
+++ ./bin/named/ns_main.c	Sat Nov  6 08:43:59 1999
@@ -228,6 +228,9 @@
 	struct passwd *pw;
 	struct group *gr;
 
+#ifdef _AUX_SOURCE
+	set42sig();
+#endif
 	debugfile = savestr(_PATH_DEBUG, 1);
 
 	user_id = getuid();
--- ../Osrc/./bin/named-xfer/named-xfer.c	Thu Nov  4 23:48:28 1999
+++ ./bin/named-xfer/named-xfer.c	Sat Nov  6 08:44:10 1999
@@ -332,6 +332,9 @@
 	int n;
 	long num_files;
 
+#ifdef _AUX_SOURCE
+	set42sig();
+#endif
 	memset(&axfr_src, 0, sizeof axfr_src);
 	ProgName = strrchr(argv[0], '/');
 	if (ProgName != NULL)
--- ../Osrc/./port/aux3/Makefile.set	Mon Jun  8 14:04:30 1998
+++ ./port/aux3/Makefile.set	Sat Nov  6 08:45:17 1999
@@ -3,7 +3,7 @@
 'LDS=:'
 'LEX=lex -v'
 'YACC=yacc -d'
-'SYSLIBS=-ll -lposix -lbsd'
+'SYSLIBS=-lposix -lbsd -ll'
 'INSTALL=install'
 'STRIP=-s'
 'DESTSBIN=/usr/local/etc'
@@ -11,7 +11,7 @@
 'DESTMAN=/usr/local/man'
 'DESTHELP=/usr/local/lib'
 'DESTETC=/etc'
-'DESTRUN=/var/run'
+'DESTRUN=/etc/run'
 'MANDIR=man'
 'MANROFF=mandoc'
 'CATEXT=$$N'
--- ../Osrc/./port/aux3/include/port_after.h	Sun Aug  8 13:52:43 1999
+++ ./port/aux3/include/port_after.h	Sat Nov  6 08:47:53 1999
@@ -1,10 +1,10 @@
-#ifndef	PORT_AFTER_H
+#ifndef PORT_AFTER_H
 #define	PORT_AFTER_H
-#undef HAVE_SA_LEN
+#undef  HAVE_SA_LEN
 #define USE_POSIX
 #define POSIX_SIGNALS
 #define USE_WAITPID
-#undef HAVE_GETRUSAGE
+#undef  HAVE_GETRUSAGE
 #define HAVE_FCHMOD
 #define NEED_PSELECT
 #define SETGRENT_VOID
@@ -12,7 +12,14 @@
 #define HAVE_CHROOT
 #define CAN_CHANGE_ID
 #define WCOREDUMP(x)      (((union wait)(x)).w_coredump)
-
+#ifndef LOG_DAEMON
+#define LOG_DAEMON	LOG_LOCAL4
+#endif
+#define SIOCGIFCONF_ADDR
+#define NETREAD_BROKEN
+#define CAN_RECONNECT
+#define SIGPIPE_ONE_SHOT
+#define USE_UTIME
 
 #define PORT_NONBLOCK	O_NONBLOCK
 #define PORT_WOULDBLK	EWOULDBLOCK
@@ -77,6 +84,14 @@
 
 #define NEED_DAEMON
 int daemon(int nochdir, int noclose);
+
+#define NEED_MKSTEMP
+
+#define NEED_STRDUP
+extern char *strdup(const char *);
+
+#define NEED_UTIMES
+#define utimes __utimes
 
 #undef _ptr
 #endif /* ! PORT_AFTER_H */
--- ../Osrc/./port/aux3/include/port_before.h	Sun Aug  8 13:52:43 1999
+++ ./port/aux3/include/port_before.h	Sat Nov  6 08:44:23 1999
@@ -2,8 +2,9 @@
 #undef WANT_IRS_PW
 #undef WANT_IRS_GR
 #define SIG_FN void
-#define SYSV
-#define _POSIX_SOURCE
+#ifndef _POSIX_SOURCE
+#define _POSIX_SOURCE 
+#endif
 #define BIG_ENDIAN	4321
 #define BYTE_ORDER	BIG_ENDIAN
 
-- 
===========================================================================
   Jim Jagielski   [|]   jim at jaguNET.com   [|]   http://www.jaguNET.com/
                "Are you suggesting coconuts migrate??"


More information about the bind-workers mailing list