date and time created 81/10/17 16:56:40 by eric
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Sun, 18 Oct 1981 08:56:40 +0000 (00:56 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Sun, 18 Oct 1981 08:56:40 +0000 (00:56 -0800)
SCCS-vsn: usr.sbin/sendmail/src/daemon.c 3.1

usr/src/usr.sbin/sendmail/src/daemon.c [new file with mode: 0644]

diff --git a/usr/src/usr.sbin/sendmail/src/daemon.c b/usr/src/usr.sbin/sendmail/src/daemon.c
new file mode 100644 (file)
index 0000000..fef2348
--- /dev/null
@@ -0,0 +1,48 @@
+# include "sendmail.h"
+
+static char    SccsId[] =      "@(#)daemon.c   3.1     %G%";
+
+/*
+**  DAEMON.C -- routines to use when running as a daemon.
+*/
+
+static int     DaemonPipe;
+\f/*
+**  GETREQUESTS -- open mail IPC port and get requests.
+**
+**     Parameters:
+**             none.
+**
+**     Returns:
+**             none.
+**
+**     Side Effects:
+**             Waits until some interesting activity occurs.  When
+**             it does, a child is created to process it, and the
+**             parent waits for completion.  Return from this
+**             routine is always in the child.
+*/
+
+getrequests()
+{
+       syserr("Daemon mode not yet implemented");
+       exit(EX_USAGE);
+}
+\f/*
+**  GETRECIPIENTS -- do a sendto to all recipients.
+**
+**     Parameters:
+**             none.
+**
+**     Returns:
+**             none.
+**
+**     Side Effects:
+**             The set of recipients for this request are
+**             collected and designated as recipients.
+*/
+
+getrecipients()
+{
+       return;
+}