# 2.11BSD#431 - /usr/src/usr.sbin/cron/pathnames.h

##### Macros

    ALLOW_FILE        X
    CRONDIR           X
    DENY_FILE         X
    EDITOR            X
    PIDDIR            X
    PIDFILE           X
    SPOOL_DIR         X
    SYSCRONTAB        X
    _PATH_BSHELL      X
    _PATH_DEFPATH     X

       1: /* Copyright 1993,1994 by Paul Vixie
       2:  * All rights reserved
       3:  *
       4:  * Distribute freely, except: don't remove my name from the source or
       5:  * documentation (don't take credit for my work), mark your changes (don't
       6:  * get me blamed for your possible bugs), don't alter or remove this
       7:  * notice.  May be sold if buildable source is provided to buyer.  No
       8:  * warrantee of any kind, express or implied, is included with this
       9:  * software; use at your own risk, responsibility for damages (if any) to
      10:  * anyone resulting from the use of this software rests entirely with the
      11:  * user.
      12:  *
      13:  * Send bug reports, bug fixes, enhancements, requests, flames, etc., and
      14:  * I'll try to keep a version up to date.  I can be reached as follows:
      15:  * Paul Vixie          <paul@vix.com>          uunet!decwrl!vixie!paul
      16:  */
      17:
      18: /*
      19:  * $Id: pathnames.h,v 1.3 1994/01/15 20:43:43 vixie Exp $
      20:  */
      21:
      22: #include <paths.h>
      23:
      24: #ifndef CRONDIR
      25:             /* CRONDIR is where crond(8) and crontab(1) both chdir
      26: 			 * to; SPOOL_DIR, ALLOW_FILE, DENY_FILE, and LOG_FILE
      27: 			 * are all relative to this directory.
      28: 			 */
      29: #define CRONDIR     "/var/cron"
      30: #endif
      31:
      32:             /* SPOOLDIR is where the crontabs live.
      33: 			 * This directory will have its modtime updated
      34: 			 * whenever crontab(1) changes a crontab; this is
      35: 			 * the signal for crond(8) to look at each individual
      36: 			 * crontab file and reload those whose modtimes are
      37: 			 * newer than they were last time around (or which
      38: 			 * didn't exist last time around...)
      39: 			 */
      40: #define SPOOL_DIR   "tabs"
      41:
      42:             /* undefining these turns off their features.  note
      43: 			 * that ALLOW_FILE and DENY_FILE must both be defined
      44: 			 * in order to enable the allow/deny code.  If neither
      45: 			 * LOG_FILE or SYSLOG is defined, we don't log.  If
      46: 			 * both are defined, we log both ways.
      47: 			 */
      48: #define ALLOW_FILE  "allow"     /*-*/
      49: #define DENY_FILE   "deny"      /*-*/
      50: #undef  LOG_FILE            /* "log" */
      51:
      52:             /* where should the daemon stick its PID?
      53: 			 */
      54: #ifdef _PATH_VARRUN
      55: # define PIDDIR _PATH_VARRUN
      56: #else
      57: # define PIDDIR "/etc/"
      58: #endif
      59: #define PIDFILE     "%scron.pid"
      60:
      61:             /* 4.3BSD-style crontab */
      62: #define SYSCRONTAB  "/etc/crontab"
      63:
      64:             /* what editor to use if no EDITOR or VISUAL
      65: 			 * environment variable specified.
      66: 			 */
      67: #if defined(_PATH_VI)
      68: # define EDITOR _PATH_VI
      69: #else
      70: # define EDITOR "/usr/ucb/vi"
      71: #endif
      72:
      73: #ifndef _PATH_BSHELL
      74: # define _PATH_BSHELL "/bin/sh"
      75: #endif
      76:
      77: #ifndef _PATH_DEFPATH
      78: # define _PATH_DEFPATH "/usr/bin:/bin"
      79: #endif

#### Defined macros

ALLOW_FILE defined in line 48; used 2 times

- in /usr/src/usr.sbin/cron/misc.c line 421-422(2)

CRONDIR defined in line 29; used 11 times

- in line 24
- in /usr/src/usr.sbin/cron/misc.c line 184-190(6), 197-202(4)

DENY_FILE defined in line 49; used 2 times

- in /usr/src/usr.sbin/cron/misc.c line 421-423(2)

EDITOR defined in line 70; used 1 times

- in /usr/src/usr.sbin/cron/crontab.c line 360

PIDDIR defined in line 57; used 1 times

- in /usr/src/usr.sbin/cron/misc.c line 253

PIDFILE defined in line 59; used 1 times

- in /usr/src/usr.sbin/cron/misc.c line 253

SPOOL_DIR defined in line 40; used 14 times

- in /usr/src/usr.sbin/cron/cron.h line 87
- in /usr/src/usr.sbin/cron/crontab.c line 581-583(2)
- in /usr/src/usr.sbin/cron/database.c line 57-58(2), 98-99(2)
- in /usr/src/usr.sbin/cron/misc.c line 208-214(6), 221

SYSCRONTAB defined in line 62; used 2 times

- in /usr/src/usr.sbin/cron/database.c line 64, 90

_PATH_BSHELL defined in line 74; used 1 times

- in line 73

_PATH_DEFPATH defined in line 78; used 3 times

- in line 77
- in /usr/src/usr.sbin/cron/cron.c line 66
- in /usr/src/usr.sbin/cron/entry.c line 258

#### Usage of this include

pathnames.h used 1 times

- in /usr/src/usr.sbin/cron/cron.h line 39

Last modified: 1999-06-19 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1096 |