more System V compatibility changes (ugh)
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Wed, 24 Feb 1993 01:00:04 +0000 (17:00 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Wed, 24 Feb 1993 01:00:04 +0000 (17:00 -0800)
SCCS-vsn: usr.sbin/sendmail/src/conf.h 6.9
SCCS-vsn: usr.sbin/sendmail/src/daemon.c 6.9
SCCS-vsn: usr.sbin/sendmail/src/deliver.c 6.24
SCCS-vsn: usr.sbin/sendmail/src/conf.c 6.26

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

index a61c6ce..f85647a 100644 (file)
@@ -7,11 +7,12 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)conf.c     6.25 (Berkeley) %G%";
+static char sccsid[] = "@(#)conf.c     6.26 (Berkeley) %G%";
 #endif /* not lint */
 
 # include <sys/ioctl.h>
 # include <sys/param.h>
 #endif /* not lint */
 
 # include <sys/ioctl.h>
 # include <sys/param.h>
+# include <signal.h>
 # include <pwd.h>
 # include "sendmail.h"
 # include "pathnames.h"
 # include <pwd.h>
 # include "sendmail.h"
 # include "pathnames.h"
@@ -1037,7 +1038,13 @@ initgroups(name, basegid)
 #  if defined(sun) || defined(hpux)
 #   include <sys/vfs.h>
 #  else
 #  if defined(sun) || defined(hpux)
 #   include <sys/vfs.h>
 #  else
-#   include <sys/mount.h>
+#   if defined(HASUSTAT)
+#    include <sys/types.h>
+#    include <sys/stat.h>
+#    include ustat.h>
+#   else
+#    include <sys/mount.h>
+#   endif
 #  endif
 # endif
 #endif
 #  endif
 # endif
 #endif
@@ -1050,7 +1057,13 @@ enoughspace()
        struct fs_data fs;
 #  define f_bavail     fd_bfreen
 # else
        struct fs_data fs;
 #  define f_bavail     fd_bfreen
 # else
+#  if defined(HASUSTAT)
+       struct ustat fs;
+       struct stat statbuf;
+#   define f_bavail    f_tfree
+#  else
        struct statfs fs;
        struct statfs fs;
+#  endif
 # endif
        extern int errno;
        extern char *errstring();
 # endif
        extern int errno;
        extern char *errstring();
@@ -1067,7 +1080,11 @@ enoughspace()
 #  if defined(ultrix)
        if (statfs(QueueDir, &fs) > 0)
 #  else
 #  if defined(ultrix)
        if (statfs(QueueDir, &fs) > 0)
 #  else
+#   if defined(HASUSTAT)
+       if (stat(QueueDir, &statbuf) == 0 && ustat(statbuf.st_dev, &fs) == 0)
+#   else
        if (statfs(QueueDir, &fs) == 0)
        if (statfs(QueueDir, &fs) == 0)
+#   endif
 #  endif
 # endif
        {
 #  endif
 # endif
        {
index 5cfdace..5bf7dd8 100644 (file)
@@ -5,7 +5,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)conf.h      6.8 (Berkeley) %G%
+ *     @(#)conf.h      6.9 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
@@ -135,3 +135,19 @@ struct utsname
 #ifndef MAXHOSTNAMELEN
 #define MAXHOSTNAMELEN 256
 #endif
 #ifndef MAXHOSTNAMELEN
 #define MAXHOSTNAMELEN 256
 #endif
+
+#if !defined(SIGCHLD) && defined(SIGCLD)
+# define SIGCHLD       SIGCLD
+#endif
+
+#ifndef STDIN_FILENO
+#define STDIN_FILENO   0
+#endif
+
+#ifndef STDOUT_FILENO
+#define STDOUT_FILENO  1
+#endif
+
+#ifndef STDERR_FILENO
+#define STDERR_FILENO  2
+#endif
index f6d5ea5..780cc51 100644 (file)
@@ -7,24 +7,23 @@
  */
 
 #include <errno.h>
  */
 
 #include <errno.h>
+#include <signal.h>
 #include "sendmail.h"
 # include <sys/mx.h>
 
 #ifndef lint
 #ifdef DAEMON
 #include "sendmail.h"
 # include <sys/mx.h>
 
 #ifndef lint
 #ifdef DAEMON
-static char sccsid[] = "@(#)daemon.c   6.8 (Berkeley) %G% (with daemon mode)";
+static char sccsid[] = "@(#)daemon.c   6.9 (Berkeley) %G% (with daemon mode)";
 #else
 #else
-static char sccsid[] = "@(#)daemon.c   6.8 (Berkeley) %G% (without daemon mode)";
+static char sccsid[] = "@(#)daemon.c   6.9 (Berkeley) %G% (without daemon mode)";
 #endif
 #endif /* not lint */
 
 #ifdef DAEMON
 
 # include <netdb.h>
 #endif
 #endif /* not lint */
 
 #ifdef DAEMON
 
 # include <netdb.h>
-# include <sys/signal.h>
 # include <sys/wait.h>
 # include <sys/time.h>
 # include <sys/wait.h>
 # include <sys/time.h>
-# include <sys/resource.h>
 
 /*
 **  DAEMON.C -- routines to use when running as a daemon.
 
 /*
 **  DAEMON.C -- routines to use when running as a daemon.
index 6c208d4..319430c 100644 (file)
@@ -7,11 +7,11 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)deliver.c  6.23 (Berkeley) %G%";
+static char sccsid[] = "@(#)deliver.c  6.24 (Berkeley) %G%";
 #endif /* not lint */
 
 #include "sendmail.h"
 #endif /* not lint */
 
 #include "sendmail.h"
-#include <sys/signal.h>
+#include <signal.h>
 #include <sys/stat.h>
 #include <netdb.h>
 #include <fcntl.h>
 #include <sys/stat.h>
 #include <netdb.h>
 #include <fcntl.h>