portability fixes for BSD/386 and Solaris 2.3
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Fri, 4 Feb 1994 00:07:13 +0000 (16:07 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Fri, 4 Feb 1994 00:07:13 +0000 (16:07 -0800)
SCCS-vsn: usr.sbin/sendmail/src/conf.h 8.83
SCCS-vsn: usr.sbin/sendmail/src/conf.c 8.71

usr/src/usr.sbin/sendmail/src/conf.c
usr/src/usr.sbin/sendmail/src/conf.h

index 01e2de5..a7a289d 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)conf.c     8.70 (Berkeley) %G%";
+static char sccsid[] = "@(#)conf.c     8.71 (Berkeley) %G%";
 #endif /* not lint */
 
 # include "sendmail.h"
 #endif /* not lint */
 
 # include "sendmail.h"
@@ -908,6 +908,8 @@ refuseconnections()
 # define PROCTITLEPAD  ' '
 #endif
 
 # define PROCTITLEPAD  ' '
 #endif
 
+#ifndef HASSETPROCTITLE
+
 char   ProcTitleBuf[MAXLINE];
 
 /*VARARGS1*/
 char   ProcTitleBuf[MAXLINE];
 
 /*VARARGS1*/
@@ -962,6 +964,8 @@ setproctitle(fmt, va_alist)
 #  endif
 # endif /* SETPROCTITLE */
 }
 #  endif
 # endif /* SETPROCTITLE */
 }
+
+#endif
 \f/*
 **  REAPCHILD -- pick up the body of my child, lest it become a zombie
 **
 \f/*
 **  REAPCHILD -- pick up the body of my child, lest it become a zombie
 **
index 08a8900..a0b11b7 100644 (file)
@@ -5,7 +5,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)conf.h      8.82 (Berkeley) %G%
+ *     @(#)conf.h      8.83 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
 # define SYSTEM5       1       /* include all the System V defines */
 # define HASINITGROUPS 1       /* has initgroups(3) call */
 # define HASSETREUID   1       /* has setreuid(2) call */
 # define SYSTEM5       1       /* include all the System V defines */
 # define HASINITGROUPS 1       /* has initgroups(3) call */
 # define HASSETREUID   1       /* has setreuid(2) call */
-# define setreuid(r, e)                setresuid(r, e, -1)     
+# define setreuid(r, e)                setresuid(r, e, -1)
 # define LA_TYPE       LA_FLOAT
 # define SFS_TYPE      SFS_VFS /* use <sys/vfs.h> statfs() implementation */
 # define GIDSET_T      gid_t
 # define LA_TYPE       LA_FLOAT
 # define SFS_TYPE      SFS_VFS /* use <sys/vfs.h> statfs() implementation */
 # define GIDSET_T      gid_t
@@ -176,6 +176,9 @@ extern int  syslog(int, char *, ...);
 
 # ifdef SOLARIS_2_3
 #  define SOLARIS
 
 # ifdef SOLARIS_2_3
 #  define SOLARIS
+#  ifndef SYSLOG_BUFSIZE
+#   define SYSLOG_BUFSIZE      1024    /* allow full size syslog buffer */
+#  endif
 # endif
 
 # ifdef SOLARIS
 # endif
 
 # ifdef SOLARIS
@@ -346,6 +349,29 @@ typedef int                pid_t;
 #endif
 
 
 #endif
 
 
+/*
+**  BSD/386 (all versions)
+**     From Tony Sanders, BSDI
+*/
+
+#ifdef __bsdi__
+# define HASUNSETENV   1       /* has the unsetenv(3) call */
+# define HASSETSID     1       /* has the setsid(2) POSIX syscall */
+# define HASSTATFS     1       /* has the statfs(2) syscall */
+# if defined(_BSDI_VERSION) && _BSDI_VERSION >= 199312
+#  define HASSETPROCTITLE 1    /* setproctitle is in libc */
+# else
+#  define SETPROCTITLE 1
+# endif
+# include <sys/cdefs.h>
+# define ERRLIST_PREDEFINED    /* don't declare sys_errlist */
+# ifndef LA_TYPE
+#  define LA_TYPE      LA_SUBR
+# endif
+#endif
+
+
+
 /*
 **  386BSD / FreeBSD 1.0E / NetBSD (all architectures, all versions)
 **
 /*
 **  386BSD / FreeBSD 1.0E / NetBSD (all architectures, all versions)
 **
@@ -681,7 +707,7 @@ typedef int         pid_t;
 **  Apollo DomainOS
 **
 **  From Todd Martin <tmartint@tus.ssi1.com> & Don Lewis <gdonl@gv.ssi1.com>
 **  Apollo DomainOS
 **
 **  From Todd Martin <tmartint@tus.ssi1.com> & Don Lewis <gdonl@gv.ssi1.com>
-** 
+**
 **  15 Jan 1994
 **
 */
 **  15 Jan 1994
 **
 */
@@ -705,7 +731,7 @@ typedef int         pid_t;
 # ifndef IDENTPROTO
 #  define IDENTPROTO   0       /* TCP/IP implementation is broken */
 # endif
 # ifndef IDENTPROTO
 #  define IDENTPROTO   0       /* TCP/IP implementation is broken */
 # endif
-#endif 
+#endif