summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
42efaf5)
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
-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 <pwd.h>
# include "sendmail.h"
# include "pathnames.h"
# include <pwd.h>
# include "sendmail.h"
# include "pathnames.h"
# if defined(sun) || defined(hpux)
# include <sys/vfs.h>
# else
# if defined(sun) || defined(hpux)
# include <sys/vfs.h>
# else
+# if defined(HASUSTAT)
+# include <sys/types.h>
+# include <sys/stat.h>
+# include ustat.h>
+# else
+# include <sys/mount.h>
+# endif
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
# endif
extern int errno;
extern char *errstring();
# endif
extern int errno;
extern char *errstring();
# 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)
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)conf.h 6.8 (Berkeley) %G%
+ * @(#)conf.h 6.9 (Berkeley) %G%
#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
#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)";
-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.
-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/stat.h>
#include <netdb.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <netdb.h>
#include <fcntl.h>