xref: /netbsd/external/bsd/cron/dist/pathnames.h (revision 55716f1e)
1 /*	$NetBSD: pathnames.h,v 1.4 2011/10/12 16:39:48 christos Exp $	*/
2 
3 /* Copyright 1993,1994 by Paul Vixie
4  * All rights reserved
5  */
6 
7 /*
8  * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
9  * Copyright (c) 1997,2000 by Internet Software Consortium, Inc.
10  *
11  * Permission to use, copy, modify, and distribute this software for any
12  * purpose with or without fee is hereby granted, provided that the above
13  * copyright notice and this permission notice appear in all copies.
14  *
15  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
16  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
17  * MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR
18  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
19  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
20  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
21  * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
22  */
23 
24 /*
25  * Id: pathnames.h,v 1.9 2004/01/23 18:56:43 vixie Exp
26  */
27 
28 #ifndef _PATHNAMES_H_
29 #define _PATHNAMES_H_
30 
31 #if (defined(BSD)) && (BSD >= 199103) || defined(__linux) || defined(AIX)
32 # include <paths.h>
33 #endif /*BSD*/
34 
35 #ifndef CRONDIR
36 			/* CRONDIR is where cron(8) and crontab(1) both chdir
37 			 * to; SPOOL_DIR, CRON_ALLOW, CRON_DENY, and LOG_FILE
38 			 * are all relative to this directory.
39 			 */
40 #define CRONDIR		"/var/cron"
41 #endif
42 
43 			/* SPOOLDIR is where the crontabs live.
44 			 * This directory will have its modtime updated
45 			 * whenever crontab(1) changes a crontab; this is
46 			 * the signal for cron(8) to look at each individual
47 			 * crontab file and reload those whose modtimes are
48 			 * newer than they were last time around (or which
49 			 * didn't exist last time around...)
50 			 */
51 #define SPOOL_DIR	"tabs"
52 
53 			/* File containing maximum crontab size, in bytes. */
54 #define MAXTABSIZE_FILE	"maxtabsize"
55 
56 			/* cron allow/deny file.  At least cron.deny must
57 			 * exist for ordinary users to run crontab.
58 			 */
59 #define	CRON_ALLOW	"allow"
60 #define	CRON_DENY	"deny"
61 
62 			/* undefining this turns off logging to a file.  If
63 			 * neither LOG_FILE or SYSLOG is defined, we don't log.
64 			 * If both are defined, we log both ways.  Note that if
65 			 * LOG_CRON is defined by <syslog.h>, LOG_FILE will not
66 			 * be used.
67 			 */
68 #if 0
69 #define LOG_FILE	"log"
70 #endif
71 
72 			/* where should the daemon stick its PID?
73 			 * PIDDIR must end in '/'.
74 			 */
75 #ifdef _PATH_VARRUN
76 # define PIDDIR	_PATH_VARRUN
77 #else
78 # define PIDDIR "/etc/"
79 #endif
80 #define PIDFILE		"cron.pid"
81 #define _PATH_CRON_PID	PIDDIR PIDFILE
82 
83 			/* 4.3BSD-style crontab */
84 #define SYSCRONTAB	"/etc/crontab"
85 
86 			/* what editor to use if no EDITOR or VISUAL
87 			 * environment variable specified.
88 			 */
89 			/* system V cron dir */
90 #define	CROND_DIR	"/etc/cron.d"
91 #if defined(_PATH_VI)
92 # define EDITOR _PATH_VI
93 #else
94 # define EDITOR "/usr/ucb/vi"
95 #endif
96 
97 #ifndef _PATH_SENDMAIL
98 # define _PATH_SENDMAIL "/usr/lib/sendmail"
99 #endif
100 
101 #ifndef _PATH_BSHELL
102 # define _PATH_BSHELL "/bin/sh"
103 #endif
104 
105 #ifndef _PATH_DEFPATH
106 # define _PATH_DEFPATH "/usr/bin:/bin"
107 #endif
108 
109 #ifndef _PATH_TMP
110 # define _PATH_TMP "/tmp"
111 #endif
112 
113 #ifndef _PATH_DEVNULL
114 # define _PATH_DEVNULL "/dev/null"
115 #endif
116 
117 #endif /* _PATHNAMES_H_ */
118