home *** CD-ROM | disk | FTP | other *** search
- /* $Header: deliver.h,v 1.3 88/09/14 19:41:50 network Exp $
- *
- * General pull-it-together include file.
- *
- * $Log: deliver.h,v $
- * Revision 1.3 88/09/14 19:41:50 network
- * Portability to System V and BSD.
- * General fixup.
- *
- * Revision 1.2 88/08/30 16:13:03 network
- * Add copystr().
- *
- * Revision 1.1 88/06/06 09:36:49 chip
- * Initial revision
- *
- */
-
- #include <stdio.h>
- #include <fcntl.h>
- #include <ctype.h>
-
- #include "config.h"
- #include "misc.h"
- #include "context.h"
- #include "dest.h"
-
- /*----------------------------------------------------------------------
- * Global data
- */
-
- extern int verbose; /* Print debugging messages? */
- extern int dryrun; /* Are we making a dry run? */
- extern int printaddrs; /* Address resolution only? */
- extern int leavetemps; /* Leave temp files for later perusal */
- extern int boxdelivery; /* Args are mailboxes, not addresses */
- extern char *sender; /* Who is sending this message? */
-
- extern char *progname; /* Name this program was invoked under */
- extern char *hostname; /* Name of this host */
-
- extern char *sys_deliver; /* Systemwide delivery file */
- extern char *user_deliver; /* User delivery file */
- extern char *shell; /* Shell used to run delivery files */
-
- extern int eff_uid; /* Returned by geteuid() */
- extern int eff_gid; /* Returned by getegid() */
- extern int real_uid; /* Returned by getuid() */
- extern int real_gid; /* Returned by getgid() */
-
- extern CONTEXT *eff_ct; /* Context of effective uid */
- extern CONTEXT *real_ct; /* Context of real uid */
-
- /* Temp file indices: */
- #define T_HEADER 0 /* Temp file for message header */
- #define T_BODY 1 /* Temp file for message body */
- #define T_MAX 2 /* Number of temp files */
-
- extern char *ttype[T_MAX]; /* Temp file types (for messages) */
- extern char *tfile[T_MAX]; /* Temp file names */
- extern int tfd[T_MAX]; /* Temp file fd's */
-
- /*----------------------------------------------------------------------
- * Global functions
- */
-
- char *basename();
- char *gethost();
- char *copystr();
- char *zalloc();
- char *srealloc();
-
- CONTEXT *name_context();
- CONTEXT *uid_context();
-
- FILE *ct_popenv();
- int ct_pclose();
-
- DEST *dest();
- DEST *first_dest();
- DEST *next_dest();
-