[8224] in Athena Bugs

home help back first fref pref prev next nref lref last post

named fixes for RIOS

daemon@ATHENA.MIT.EDU (Mark Rosenstein)
Tue Sep 17 17:06:37 1991

Date: Tue, 17 Sep 91 17:06:58 -0400
From: Mark Rosenstein <mar@MIT.EDU>
To: bugs@MIT.EDU
Cc: probe@MIT.EDU

This stuff compiles with:
	-DDEBUG -DSTATS -DALLOW_UPDATES -D_BSD -DPOSIX
and does NOT need to link with -lbsd.  You need to use the modified
nameser.h file, either by modifying the one in place, putting the
modified one in /usr/athena/include/arpa/nameser.h, or putting it in
an include subdir of the named sources.
					-Mark


*** ns_main.c   Tue Sep 17 15:50:37 1991
--- ns_main.c.orig      Thu Oct 25 11:36:49 1990
***************
*** 548,563 ****
                (void)setsockopt(dqp->dq_dfd, SOL_SOCKET, SO_RCVBUF,
                    (char *)&rbufsize, sizeof(rbufsize));
  #endif SO_RCVBUF
-               /* for some reason, in AIX 3.1, these sockets don't really
-                * get non-blocking I/O unless we do the ioctl instead of
-                * the fcntl.  Don't know why...
-                */
- #ifdef _AIX
-               (void) ioctl(dqp->dq_dfd, (int)FIONBIO, (char *)&on);
- #else
                (void) fcntl(dqp->dq_dfd, F_SETFL, FNDELAY);
- #endif
-
  /*
   *   NOTE: Some versions of SunOS have problems with the following
   *   call to bind.  Bind still seems to function on these systems
--- 548,554 ----
*** ns_init.c   Fri Sep 13 15:33:51 1991
--- ns_init.c.orig      Thu Nov 16 06:41:26 1989
***************
*** 598,604 ****
  free_forwarders()
  {
        register struct fwdinfo *ftp, *fnext;
-       extern struct fwdinfo *fwdtab;

        for (ftp = fwdtab; ftp != NULL; ftp = fnext) {
                fnext = ftp->next;
--- 598,603 ----
*** ns_maint.c  Tue Sep 17 16:05:12 1991
--- ns_maint.c.orig     Tue Sep 17 15:56:41 1991
***************
*** 200,206 ****
  #endif /* ECHOARGS */
  #endif /* DEBUG */

! #if defined(SYSV) || defined(_AIX)
  #define vfork fork
  #else
        omask = sigblock(sigmask(SIGCHLD));
--- 200,206 ----
  #endif /* ECHOARGS */
  #endif /* DEBUG */

! #ifdef SYSV
  #define vfork fork
  #else
        omask = sigblock(sigmask(SIGCHLD));
*** include/arpa/nameser.h      Fri Sep 13 15:29:45 1991
--- /usr/include/arpa/nameser.h Sat May 19 19:46:44 1990
***************
*** 85,91 ****
  #define T_MINFO               14              /* mailbox information */
  #define T_MX          15              /* mail routing information */
  #define T_TXT         16              /* text strings */
- #define T_UNSPECA     104             /* Unspecified Ascii */

        /* non standard */
  #define T_UINFO               100             /* user (finger) information */--- 85,90 ----
***************
*** 130,136 ****
        u_short id;             /* query identification number */
  #if defined (sun) || defined (sel) || defined (pyr) || defined (is68k) \
  || defined (tahoe) || defined (aiws) || defined (_IBMESA) \
! || defined (BIT_ZERO_ON_LEFT) || defined(_IBMR2)
        /* Bit zero on left:  Gould and similar architectures */
                        /* fields in third byte */
        u_int   qr:1;           /* response flag */
--- 129,135 ----
        u_short id;             /* query identification number */
  #if defined (sun) || defined (sel) || defined (pyr) || defined (is68k) \
  || defined (tahoe) || defined (aiws) || defined (_IBMESA) \
! || defined (BIT_ZERO_ON_LEFT)
        /* Bit zero on left:  Gould and similar architectures */
                        /* fields in third byte */
        u_int   qr:1;           /* response flag */

home help back first fref pref prev next nref lref last post