summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b8d1a34)
SCCS-vsn: usr.sbin/sendmail/src/alias.c 1.3
SCCS-vsn: usr.sbin/sendmail/src/arpadate.c 1.3
SCCS-vsn: usr.sbin/sendmail/src/conf.c 1.4
SCCS-vsn: usr.sbin/sendmail/src/deliver.c 1.4
SCCS-vsn: usr.sbin/sendmail/src/err.c 1.3
SCCS-vsn: usr.sbin/sendmail/src/main.c 1.5
SCCS-vsn: usr.sbin/sendmail/src/parseaddr.c 1.3
SCCS-vsn: usr.sbin/sendmail/src/savemail.c 1.4
SCCS-vsn: usr.sbin/sendmail/src/sysexits.c 1.3
SCCS-vsn: usr.sbin/sendmail/src/util.c 1.3
# include <pwd.h>
# include "dlvrmail.h"
# include <pwd.h>
# include "dlvrmail.h"
-static char SccsId[] = "@(#)alias.c 1.2 %G%";
+static char SccsId[] = "@(#)alias.c 1.3 %G%";
/*
** ALIAS -- Compute aliases.
/*
** ALIAS -- Compute aliases.
** MAXRCRSN -- the maximum recursion depth.
** ALIASFILE -- the pathname of the alias file.
**
** MAXRCRSN -- the maximum recursion depth.
** ALIASFILE -- the pathname of the alias file.
**
-** Requires:
-** fopen (stdio)
-** fgets (stdio)
-** rewind (stdio)
-** isspace (sys)
-** printf (sys)
-** sendto
-** syserr
-** parse
-** nxtinq
-** sameaddr
-** tkoffq
-** putonq
-** fclose (sys)
-**
** Called By:
** main
**
** Files:
** Called By:
** main
**
** Files:
-** /usr/lib/mailaliases -- the mail aliases.
+** ALIASFILE -- the mail aliases. The format is
+** a series of lines of the form:
+** alias:name1,name2,name3,...
+** where 'alias' expands to all of
+** 'name[i]'. Continuations begin with
+** space or tab.
**
** Notes:
** If NoAlias (the "-n" flag) is set, no aliasing is
**
** Notes:
** If NoAlias (the "-n" flag) is set, no aliasing is
** It should complain about names that are aliased to
** nothing.
** It is unsophisticated about line overflows.
** It should complain about names that are aliased to
** nothing.
** It is unsophisticated about line overflows.
-**
-** History:
-** 3/5/80 -- extensive mods to change internal address
-** format.
-** 12/27/79 -- written.
** Side Effects:
** New names are added to SendQ.
**
** Side Effects:
** New names are added to SendQ.
**
-** Requires:
-** none
-**
** Called By:
** recipient
** Called By:
** recipient
-**
-** History:
-** 3/5/80 -- return value changed.
-** 1/23/80 -- null version written.
-static char SccsId[] = "@(#)arpadate.c 1.2 %G%";
+static char SccsId[] = "@(#)arpadate.c 1.3 %G%";
/*
** ARPADATE -- Create date in ARPANET format
/*
** ARPADATE -- Create date in ARPANET format
** WARNING:
** date is stored in a local buffer -- subsequent
** calls will overwrite.
** WARNING:
** date is stored in a local buffer -- subsequent
** calls will overwrite.
-**
-** Requires:
-** time (sys)
-** ctime (sys)
-** strcpy (sys)
-** strcat (sys)
-** localtime (sys)
-**
-** History:
-** 1/15/80 -- written.
# include <pwd.h>
# include "dlvrmail.h"
# include <pwd.h>
# include "dlvrmail.h"
-static char SccsId[] = "@(#)conf.c 1.3 %G%";
+static char SccsId[] = "@(#)conf.c 1.4 %G%";
** Side Effects:
** none
**
** Side Effects:
** none
**
-** Requires:
-** getlogin (sys)
-** getpwuid (sys)
-** getuid (sys)
-**
-**
-** History:
-** 12/26/79 -- written.
** WARNING:
** Return value is in a local buffer.
**
** WARNING:
** Return value is in a local buffer.
**
-** Requires:
-** stat (sys)
-** ttyn (sys)
-** open (sys)
-** read (sys)
-** close (sys)
-** seek (sys)
-**
** Called By:
** savemail
** Called By:
** savemail
-**
-** History:
-** 1/12/80 -- written.
*/
# include <sys/types.h>
*/
# include <sys/types.h>
** Side Effects:
** none
**
** Side Effects:
** none
**
-** Requires:
-** fopen (sys)
-**
** Called By:
** deliver
**
** Called By:
** deliver
**
**
** Side Effects:
** none.
**
** Side Effects:
** none.
-**
-** Requires:
-** none.
-**
-** History:
-** 3/14/80 -- written. Why isn't this in -lS?
** WARNING:
** Return value is in a local buffer.
**
** WARNING:
** Return value is in a local buffer.
**
-** Requires:
-** stat (sys)
-** ttyn (sys)
-** open (sys)
-** read (sys)
-** close (sys)
-** seek (sys)
-**
** Called By:
** savemail
** Called By:
** savemail
-**
-** History:
-** 1/12/80 -- written.
*/
# include <sys/types.h>
*/
# include <sys/types.h>
# include <log.h>
# endif LOG
# include <log.h>
# endif LOG
-static char SccsId[] = "@(#)deliver.c 1.3 %G%";
+static char SccsId[] = "@(#)deliver.c 1.4 %G%";
/*
** DELIVER -- Deliver a message to a particular address.
/*
** DELIVER -- Deliver a message to a particular address.
** parent waits for the child to finish before forking
** another child.
**
** parent waits for the child to finish before forking
** another child.
**
-** Requires:
-** buildargv
-** giveresponse
-** fork (sys)
-** rewind (sys)
-** execv (sys)
-** exit (sys)
-** wait (sys)
-** syserr
-** getpwnam (sys)
-** endpwent (sys)
-** initlog
-** flagset
-** usrerr
-** pipe (sys)
-** close (sys)
-** dup (sys)
-** setuid (sys)
-** getuid (sys)
-** signal (sys)
-** fdopen (sys[v7] or conf.c[v6])
-** fclose (sys)
-** printf (sys)
-** stripquotes
-** mailfile
-** index (sys)
-**
** Called By:
** main
** savemail
**
** Files:
** Called By:
** main
** savemail
**
** Files:
-** standard input -- must be openned to the message to
+** standard input -- must be opened to the message to
-**
-** History:
-** 3/5/80 -- modified rather extensively to change the
-** internal form of addresses.
-** 12/26/79 -- written.
** Error may be set.
** ExitStat may be set.
**
** Error may be set.
** ExitStat may be set.
**
-** Requires:
-** usrerr
-** syserr
-** flagset
-** logmsg (sys)
-**
-**
-** History:
-** 2/18/80 -- broken from deliver.
*/
giveresponse(stat, force, m)
*/
giveresponse(stat, force, m)
** Puts a "From" line in UNIX format, and then
** outputs the rest of the message.
**
** Puts a "From" line in UNIX format, and then
** outputs the rest of the message.
**
-** Requires:
-** fprintf (sys)
-** fgets (sys)
-** fputs (sys)
-** time (sys)
-** ctime (sys)
-** ferror (sys)
-** syserr
-** setstat
-**
-**
-** History:
-** 1/8/80 -- written.
**
** Side Effects:
** logs an error message.
**
** Side Effects:
** logs an error message.
-**
-** Requires:
-** syserr
-**
-** History:
-** 1/17/80 -- written.
** Side Effects:
** none.
**
** Side Effects:
** none.
**
-** Requires:
-** parse
-** recipient
-**
** Called By:
** main
** alias
** Called By:
** main
** alias
-**
-** History:
-** 1/11/80 -- written.
** Side Effects:
** none.
**
** Side Effects:
** none.
**
-** Requires:
-** sameaddr
-** parse
-** forward
-** printf (sys)
-** strcmp (sys)
-** nxtinq
-** putonq
-**
** Called By:
** sendto
** main
** Called By:
** sendto
** main
-**
-** History:
-** 3/5/80 -- modified to know about new internal form
-** for addresses.
-** 12/31/79 -- written.
** Since the argv is staticly allocated, any subsequent
** calls will clobber the old argv.
**
** Since the argv is staticly allocated, any subsequent
** calls will clobber the old argv.
**
-** Requires:
-** printf (sys)
-** sprintf (sys)
-** flagset
-** syserr
-**
-**
-** History:
-** 12/26/79 -- written.
** Side Effects:
** none.
**
** Side Effects:
** none.
**
-** Requires:
-** fgets (sys)
-** fputs (sys)
-** fprintf (sys)
-** fopen (sys)
-** fclose (sys)
-** ferror (sys)
-** time (sys)
-** ctime (sys)
-** rewind (sys)
-**
-**
-** History:
-** 3/5/80 -- written.
# include <log.h>
# endif LOG
# include <log.h>
# endif LOG
-static char SccsId[] = "@(#)err.c 1.2 %G%";
+static char SccsId[] = "@(#)err.c 1.3 %G%";
/*
** ERR -- Print error message.
/*
** ERR -- Print error message.
** Side Effects:
** Sets Error.
** Sets ExitStat.
** Side Effects:
** Sets Error.
** Sets ExitStat.
-**
-** Requires:
-** sprintf (sys)
-** printf (sys)
-** logmsg
-**
-** History:
-** 12/29/79 -- written.
**
** Side Effects:
** sets Error.
**
** Side Effects:
** sets Error.
-**
-** Requires:
-** printf (sys)
-**
-** History:
-** 1/1/80 -- written.
# include <log.h>
# endif LOG
# include <log.h>
# endif LOG
-static char SccsId[] = "@(#)main.c 1.4 %G%";
+static char SccsId[] = "@(#)main.c 1.5 %G%";
/*
** DELIVERMAIL -- Deliver mail to a set of destinations
/*
** DELIVERMAIL -- Deliver mail to a set of destinations
** mailers; it is their responsibility to make them
** correct.
**
** mailers; it is their responsibility to make them
** correct.
**
-** Defined Constants:
-** none
-**
** Compilation Flags:
** BADMAIL -- the mailer used for local mail doesn't
** return the standard set of exit codes. This
** Compilation Flags:
** BADMAIL -- the mailer used for local mail doesn't
** return the standard set of exit codes. This
** chmod 755 a.out
** mv a.out delivermail
**
** chmod 755 a.out
** mv a.out delivermail
**
-** Requires:
-** signal (sys)
-** setbuf (sys)
-** initlog (libX)
-** open (sys)
-** lseek (sys)
-** close (sys)
-** dup (sys)
-** printf (sys)
-** syserr
-** atoi (sys)
-** freopen (sys)
-** openxscript
-** maketemp
-** getname
-** strcmp (sys)
-** getuid (sys)
-** parse
-** usrerr
-** finis
-** sendto
-** alias
-** recipient
-** nxtinq
-** deliver
-**
** Deficiencies:
** It ought to collect together messages that are
** destined for a single host and send these
** Deficiencies:
** It ought to collect together messages that are
** destined for a single host and send these
**
** Author:
** Eric Allman, UCB/INGRES
**
** Author:
** Eric Allman, UCB/INGRES
-**
-** History:
-** 12/26/79 -- first written.
\f/*
** FINIS -- Clean up and exit.
**
\f/*
** FINIS -- Clean up and exit.
**
-** Algorithm:
-** if we should remove the input
-** remove the input
-** exit
-**
** Parameters:
** none
**
** Parameters:
** none
**
** Side Effects:
** exits delivermail
**
** Side Effects:
** exits delivermail
**
-** Requires:
-** unlink (sys)
-** exit (sys)
-** savemail
-** InFileName -- the file to remove
-** ExitStat -- the status to exit with
-**
** Called By:
** main
** via signal on interrupt.
** Called By:
** main
** via signal on interrupt.
** Deficiencies:
** It may be that it should only remove the input
** file if there have been no errors.
** Deficiencies:
** It may be that it should only remove the input
** file if there have been no errors.
-**
-** History:
-** 12/26/79 -- written.
** Side Effects:
** Temp file is created and filled.
**
** Side Effects:
** Temp file is created and filled.
**
-** Requires:
-** creat (sys)
-** close (sys)
-** syserr
-** mktemp (sys)
-** fopen (sys)
-** fgets (sys)
-** makemsgid
-** fprintf (sys)
-** fputs (sys)
-** isspace (sys)
-** matchhdr
-** prescan
-** ferror (sys)
-** clearerr (sys)
-** freopen (sys)
-**
** protocol, but seems reasonable in practice. In
** any case, the only problem is that error responses
** may be sent to the wrong person.
** protocol, but seems reasonable in practice. In
** any case, the only problem is that error responses
** may be sent to the wrong person.
-**
-** History:
-** 12/26/79 -- written.
** Side Effects:
** Stores a message-id into MsgId.
**
** Side Effects:
** Stores a message-id into MsgId.
**
-** Requires:
-** sprintf (sys)
-** getpid (sys)
-** time (sys)
-**
** Called By:
** maketemp
** Called By:
** maketemp
-**
-** History:
-** 2/3/80 -- written.
** Turns the standard output into a special file
** somewhere.
**
** Turns the standard output into a special file
** somewhere.
**
-** Requires:
-** mktemp (sys)
-** chmod (sys)
-** freopen (sys)
-** syserr
-** setbuf (sys)
-**
-**
-** History:
-** 1/11/80 -- written.
# include <ctype.h>
# include "dlvrmail.h"
# include <ctype.h>
# include "dlvrmail.h"
-static char SccsId[] = "@(#)parseaddr.c 1.2 %G%";
+static char SccsId[] = "@(#)parseaddr.c 1.3 %G%";
/*
** PARSE -- Parse an address
/*
** PARSE -- Parse an address
** Side Effects:
** none
**
** Side Effects:
** none
**
-** Defined Constants:
-** none
-**
-** Requires:
-** usrerr
-** strcpy (sys)
-** isalpha (sys)
-** xalloc
-** prescan
-** flagset
-** makelower
-** printf (sys)
-** ParseTab -- the parse table.
-**
** Called By:
** main
** sendto
** alias
** savemail
** Called By:
** main
** sendto
** alias
** savemail
-**
-** History:
-** 12/26/79 -- written.
** Side Effects:
** String pointed to by p is translated to lower case.
**
** Side Effects:
** String pointed to by p is translated to lower case.
**
-** Requires:
-** isupper (sys)
-**
-**
-** History:
-** 12/26/79 -- written.
** Side Effects:
** buf gets clobbered.
**
** Side Effects:
** buf gets clobbered.
**
-** Requires:
-** isspace (sys)
-** any
-** usrerr
-**
** Called By:
** parse
** maketemp
** Called By:
** parse
** maketemp
-**
-** History:
-** 12/30/79 -- broken from parse; comment processing
-** added.
# include <pwd.h>
# include "dlvrmail.h"
# include <pwd.h>
# include "dlvrmail.h"
-static char SccsId[] = "@(#)savemail.c 1.3 %G%";
+static char SccsId[] = "@(#)savemail.c 1.4 %G%";
/*
** SAVEMAIL -- Save mail on error
/*
** SAVEMAIL -- Save mail on error
** directory.
**
** WARNING: the user id is reset to the original user.
** directory.
**
** WARNING: the user id is reset to the original user.
-**
-** Requires:
-** fopen (sys)
-** bmove
-** parse
-** deliver
-** strcpy (sys)
-** strcat (sys)
-** fclose (sys)
-** fgets (sys)
-** fputs (sys)
-** setpwent (sys)
-** getuid (sys)
-** setuid (sys)
-** getgid (sys)
-** setgid (sys)
-** getpwnam (sys)
-** fprintf (sys)
-** ttypath
-** freopen (sys)
-** printf (sys)
-** syserr
-** rewind (sys)
-** time (sys)
-** ferror (sys)
-**
-** Called By:
-** finis
-**
-** History:
-** 12/30/79 -- written.
*/
# define MY_NAME "~MAILER~DAEMON~"
*/
# define MY_NAME "~MAILER~DAEMON~"
** input from xfile
** output to fp
**
** input from xfile
** output to fp
**
-** Requires:
-** read (sys)
-** write (sys)
-** open (sys)
-** close (sys)
-** syserr
-** rewind (sys)
-** fflush (sys)
-** fprintf (sys)
-** fileno (sys)
-**
-**
-** History:
-** 12/28/79 -- written.
-static char SccsId[] = "@(#)sysexits.c 1.2 %G%";
+static char SccsId[] = "@(#)sysexits.c 1.3 %G%";
+/*
+** SYSEXITS.C -- error messages corresponding to sysexits.h
+*/
# include <sysexits.h>
# include "useful.h"
# include <sysexits.h>
# include "useful.h"
-static char SccsId[] = "@(#)util.c 1.2 %G%";
+static char SccsId[] = "@(#)util.c 1.3 %G%";
-** UTIL.C -- General Purpose Routines
-**
-** Defines:
-** stripquotes
-** xalloc
-** any
-*/
-\f/*
** STRIPQUOTES -- Strip quotes & quote bits from a string.
**
** Runs through a string and strips off unquoted quote
** STRIPQUOTES -- Strip quotes & quote bits from a string.
**
** Runs through a string and strips off unquoted quote
** Side Effects:
** none.
**
** Side Effects:
** none.
**
-** Requires:
-** none.
-**
-**
-** History:
-** 3/5/80 -- written.
** Side Effects:
** Memory is allocated.
**
** Side Effects:
** Memory is allocated.
**
-** Requires:
-** malloc
-** syserr
-** exit
-**
** Called By:
** lots of people.
** Called By:
** lots of people.
-**
-** History:
-** 12/31/79 -- written.
** Side Effects:
** none.
**
** Side Effects:
** none.
**
-** Requires:
-** none.
-**
-**
-** History:
-** 3/5/80 -- written.