# /* globals.c * * Contains all the global data definitions for the mail daemon. */ #include "rqfile.h" #include "extern.h" char reqbuf[2 * BIGBUF]; /* big buffer for request file */ char *reqrec = 0; /* next request file record */ char *reqend = 0; /* end of request file buffer */ int rewnam = 1; /* unique name for rewrite file */ char rewbuf[BIGBUF]; /* big buffer for rewrite file */ char *rewrec = 0; /* next rewrite file record */ int rewnew = TRUE; /* new rewrite file flag */ int rwfd; /* rewrite file descriptor */ char dirbuf[2 * BIGBUF]; /* big buffer for directory */ char *dirrec = 0; /* next dir. entry in buffer */ char *dirend = 0; /* end of dir. entry in buffer */ char mlname[NAMSIZ]; /* name of file to mail */ char lockfile[] = "/maild/lock"; /* lock file name */ char *maildir = MAILDIR; /* mail daemon's directory */ char *rqext = RQEXT; /* extension type for request files */ char *frwrd_host = "mit-multics"; /* host containing mail forwarder */ char *tftp = "/bin/utftp"; /* tftp program */ char *smtp = "/bin/smtp"; /* smtp program */ char *tftplog = "/dev/null"; /* log for tftp status; usually null */ char *mboxname = "/.mail"; /* name of mailbox */ char me[NAMSIZ]; /* daemon's uname */ int log = FALSE; /* error logging flag */ char *myhost[] = { /* names for my local host */ "csr", "mit-csr", "mit-csr.mit", "mit-csr.arpa", "csr.mit", "csr.arpa", "ln", "mit-ln" }; int myhsiz = (sizeof (myhost)/ sizeof (myhost[0])); char *tftp_htab[] = { /* tftp hosts */ "mit-csg", "csg", }; int tfhsiz = (sizeof (tftp_htab) / sizeof (tftp_htab[0])); char *smtp_htab[] = { /* smtp hosts */ }; int smhsiz = (sizeof (smtp_htab) / sizeof (smtp_htab[0])); char *separators[] = { /* separator characters for names */ "@", " at ", " @ ", "%", " % ", 0 };