summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
fbc0c55)
SCCS-vsn: usr.sbin/sendmail/src/main.c 6.65
SCCS-vsn: usr.sbin/sendmail/src/conf.h 6.31
SCCS-vsn: usr.sbin/sendmail/src/parseaddr.c 6.56
SCCS-vsn: usr.sbin/sendmail/src/queue.c 6.57
SCCS-vsn: usr.sbin/sendmail/src/conf.c 6.60
-static char sccsid[] = "@(#)conf.c 6.59 (Berkeley) %G%";
+static char sccsid[] = "@(#)conf.c 6.60 (Berkeley) %G%";
#endif /* not lint */
# include <sys/ioctl.h>
#endif /* not lint */
# include <sys/ioctl.h>
-host_map_init(map, mapname, args)
+host_map_init(map, args)
char *args;
{
register char *p = args;
char *args;
{
register char *p = args;
# define LA_AVENRUN "avenrun"
# endif
# define LA_AVENRUN "avenrun"
# endif
+/* now do the guesses based on general OS type */
# ifndef LA_TYPE
# if defined(SYSTEM5)
# define LA_TYPE LA_INT
# ifndef LA_TYPE
# if defined(SYSTEM5)
# define LA_TYPE LA_INT
+# ifdef WIFEXITED
+ auto int status;
+
+ while (waitpid(-1, &status, WNOHANG) > 0)
+ continue;
+# else
# ifdef WNOHANG
union wait status;
# ifdef WNOHANG
union wait status;
# else /* WNOHANG */
auto int status;
# else /* WNOHANG */
auto int status;
- while (wait((int *)&status) > 0)
+ while (wait(&status) > 0)
continue;
# endif /* WNOHANG */
continue;
# endif /* WNOHANG */
# ifdef SYSTEM5
(void) signal(SIGCHLD, reapchild);
# endif
# ifdef SYSTEM5
(void) signal(SIGCHLD, reapchild);
# endif
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)conf.h 6.30 (Berkeley) %G%
+ * @(#)conf.h 6.31 (Berkeley) %G%
# define QUEUESIZE 1000 /* max # of jobs per queue run */
# endif
# define QUEUESIZE 1000 /* max # of jobs per queue run */
# endif
-# ifndef FORK
-# define FORK vfork /* function to call to fork mailer */
-# endif
-
/*
** Compilation options.
**
/*
** Compilation options.
**
# define SYSTEM5 1
# endif
# define SYSTEM5 1
# endif
+# ifdef IBM_AIX
+# define LOCKF 1 /* use System V lockf instead of flock */
+# define FORK fork /* no vfork primitive available */
+# endif
+
# ifdef SYSTEM5
# define LOCKF 1 /* use System V lockf instead of flock */
# ifdef SYSTEM5
# define LOCKF 1 /* use System V lockf instead of flock */
#ifndef TOBUFSIZE
# define TOBUFSIZE (1024 - 256)
#endif
#ifndef TOBUFSIZE
# define TOBUFSIZE (1024 - 256)
#endif
+
+/* fork routine -- set above using #ifdef _osname_ or in Makefile */
+# ifndef FORK
+# define FORK vfork /* function to call to fork mailer */
+# endif
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)main.c 6.64 (Berkeley) %G%";
+static char sccsid[] = "@(#)main.c 6.65 (Berkeley) %G%";
#endif /* not lint */
#define _DEFINE
#endif /* not lint */
#define _DEFINE
if (jbuf[0] != '\0')
{
struct utsname utsname;
if (jbuf[0] != '\0')
{
struct utsname utsname;
if (tTd(0, 4))
printf("canonical name: %s\n", jbuf);
if (tTd(0, 4))
printf("canonical name: %s\n", jbuf);
-static char sccsid[] = "@(#)parseaddr.c 6.55 (Berkeley) %G%";
+static char sccsid[] = "@(#)parseaddr.c 6.56 (Berkeley) %G%";
#endif /* not lint */
#include "sendmail.h"
#endif /* not lint */
#include "sendmail.h"
**
** Parameters:
** map -- the internal map structure.
**
** Parameters:
** map -- the internal map structure.
-** mapname -- the name of the mapl.
** args -- arguments.
**
** Returns:
** args -- arguments.
**
** Returns:
-dequote_init(map, mapname, args)
char *args;
{
register char *p = args;
char *args;
{
register char *p = args;
#ifndef lint
#ifdef QUEUE
#ifndef lint
#ifdef QUEUE
-static char sccsid[] = "@(#)queue.c 6.56 (Berkeley) %G% (with queueing)";
+static char sccsid[] = "@(#)queue.c 6.57 (Berkeley) %G% (with queueing)";
-static char sccsid[] = "@(#)queue.c 6.56 (Berkeley) %G% (without queueing)";
+static char sccsid[] = "@(#)queue.c 6.57 (Berkeley) %G% (without queueing)";
#endif
#endif /* not lint */
#endif
#endif /* not lint */
# include <signal.h>
# include <errno.h>
# include <pwd.h>
# include <signal.h>
# include <errno.h>
# include <pwd.h>
orderq(doall)
bool doall;
{
orderq(doall)
bool doall;
{
- register struct direct *d;
+ register struct dirent *d;
register WORK *w;
DIR *f;
register int i;
register WORK *w;
DIR *f;
register int i;