1 /*-
2  * Copyright (c) 1998-2001 Sendmail, Inc. and its suppliers.
3  *	All rights reserved.
4  * Copyright (c) 1990, 1993
5  *	The Regents of the University of California.  All rights reserved.
6  *
7  * By using this file, you agree to the terms and conditions set
8  * forth in the LICENSE file which can be found at the top level of
9  * the sendmail distribution.
10  *
11  *
12  *	$Id: pathnames.h,v 8.35 2001/03/23 22:09:44 ca Exp $
13  */
14 
15 #pragma ident	"%Z%%M%	%I%	%E% SMI"
16 
17 #ifndef SM_PATHNAMES_H
18 # define SM_PATHNAMES_H
19 
20 
21 #  ifndef _PATH_SENDMAILCF
22 #   if defined(USE_VENDOR_CF_PATH) && defined(_PATH_VENDOR_CF)
23 #    define _PATH_SENDMAILCF	_PATH_VENDOR_CF
24 #   else /* defined(USE_VENDOR_CF_PATH) && defined(_PATH_VENDOR_CF) */
25 #    define _PATH_SENDMAILCF	"/etc/mail/sendmail.cf"
26 #   endif /* defined(USE_VENDOR_CF_PATH) && defined(_PATH_VENDOR_CF) */
27 #  endif /* ! _PATH_SENDMAILCF */
28 
29 #  ifndef _PATH_SENDMAILPID
30 #   ifdef BSD4_4
31 #    define _PATH_SENDMAILPID	"/var/run/sendmail.pid"
32 #   else /* BSD4_4 */
33 #    define _PATH_SENDMAILPID	"/etc/mail/sendmail.pid"
34 #   endif /* BSD4_4 */
35 #  endif /* ! _PATH_SENDMAILPID */
36 
37 #  ifndef _PATH_SENDMAIL
38 #   define _PATH_SENDMAIL 	"/usr/lib/sendmail"
39 #  endif /* ! _PATH_SENDMAIL */
40 
41 #  ifndef _PATH_MAILDIR
42 #   define _PATH_MAILDIR		"/var/spool/mail"
43 #  endif /* ! _PATH_MAILDIR */
44 
45 #  ifndef _PATH_LOCTMP
46 #   define _PATH_LOCTMP		"/tmp/local.XXXXXX"
47 #  endif /* ! _PATH_LOCTMP */
48 
49 #  ifndef _PATH_HOSTS
50 #   define _PATH_HOSTS		"/etc/hosts"
51 #  endif /* ! _PATH_HOSTS */
52 
53 
54 
55 #  ifndef _DIR_SENDMAILCF
56 #   define _DIR_SENDMAILCF	"/etc/mail/"
57 #  endif /* ! _DIR_SENDMAILCF */
58 
59 # define SM_GET_RIGHT_CF	0	/* get "right" .cf */
60 # define SM_GET_SENDMAIL_CF	1	/* always use sendmail.cf */
61 # define SM_GET_SUBMIT_CF	2	/* always use submit.cf */
62 
63 extern char	*getcfname __P((int, int, int, char *));
64 #endif /* ! SM_PATHNAMES_H */
65