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

##### Variables

    acquire_daemonlockX
    allowed           X
    arpadate          X
    cron_pclose       X
    do_command        X
    env_copy          X
    env_free          X
    env_get           X
    env_init          X
    env_set           X
    find_user         X
    first_word        X
    free_entry        X
    free_user         X
    get_char          X
    get_string        X
    job_add           X
    job_runqueue      X
    link_user         X
    load_database     X
    load_entry        X
    load_env          X
    load_user         X
    log_close         X
    log_it            X
    mkprints          X
    open_logfile      X
    set_cron_cwd      X
    set_cron_uid      X
    set_debug_flags   X
    sigpipe_func      X
    skip_comments     X
    strcmp_until      X
    strdtb            X
    swap_uids         X
    unget_char        X
    unlink_user       X

##### Macros

    CRON_TAB          X
    DBIT              X
    DEBUGGING         X
    DEXT              X
    DLOAD             X
    DMISC             X
    DOM_COUNT         X
    DOM_STAR          X
    DOW_COUNT         X
    DOW_STAR          X
    DPARS             X
    DPROC             X
    DSCH              X
    DTEST             X
    Debug             X
    ERR               X
    ERROR_EXIT        X
    FALSE             X
    FIRST_DOM         X
    FIRST_DOW         X
    FIRST_HOUR        X
    FIRST_MINUTE      X
    FIRST_MONTH       X
    HOUR_COUNT        X
    LAST_DOM          X
    LAST_DOW          X
    LAST_HOUR         X
    LAST_MINUTE       X
    LAST_MONTH        X
    MAXHOSTNAMELEN    X
    MAX_COMMAND       X
    MAX_ENVSTR        X
    MAX_FNAME         X
    MAX_TEMPSTR       X
    MAX_UNAME         X
    MINUTE_COUNT      X
    MONTH_COUNT       X
    OK                X
    OK_EXIT           X
    PPC_NULL          X
    READ_PIPE         X
    REG               X
    ROOT_UID          X
    ROOT_USER         X
    STDERR            X
    STDIN             X
    STDOUT            X
    Set_LineNum       X
    Skip_Blanks       X
    Skip_Line         X
    Skip_Nonblanks    X
    TRUE              X
    WHEN_REBOOT       X
    WRITE_PIPE        X

##### struct's

    _cron_db          X
    _entry            X
    _user             X

##### typedef's

    cron_db           X
    entry             X
    user              X

       1: /* Copyright 1988,1990,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: /* cron.h - header for vixie's cron
      19:  *
      20:  * $Id: cron.h,v 2.10 1994/01/15 20:43:43 vixie Exp $
      21:  *
      22:  * vix 14nov88 [rest of log is in RCS]
      23:  * vix 14jan87 [0 or 7 can be sunday; thanks, mwm@berkeley]
      24:  * vix 30dec86 [written]
      25:  */
      26:
      27: /* reorder these #include's at your peril */
      28:
      29: #include <sys/types.h>
      30: #include <sys/param.h>
      31: #include "compat.h"
      32:
      33: #include <stdio.h>
      34: #include <ctype.h>
      35: #include <bitstring.h>
      36: #include <pwd.h>
      37: #include <sys/wait.h>
      38:
      39: #include "pathnames.h"
      40: #include "config.h"
      41: #include "externs.h"
      42:
      43:     /* these are really immutable, and are
      44: 	 *   defined for symbolic convenience only
      45: 	 * TRUE, FALSE, and ERR must be distinct
      46: 	 * ERR must be < OK.
      47: 	 */
      48: #define TRUE        1
      49: #define FALSE       0
      50:     /* system calls return this on success */
      51: #define OK      0
      52:     /*   or this on error */
      53: #define ERR     (-1)
      54:
      55:     /* turn this on to get '-x' code */
      56: #ifndef DEBUGGING
      57: #define DEBUGGING   FALSE
      58: #endif
      59:
      60: #define READ_PIPE   0   /* which end of a pipe pair do you read? */
      61: #define WRITE_PIPE  1   /*   or write to? */
      62: #define STDIN       0   /* what is stdin's file descriptor? */
      63: #define STDOUT      1   /*   stdout's? */
      64: #define STDERR      2   /*   stderr's? */
      65: #define ERROR_EXIT  1   /* exit() with this will scare the shell */
      66: #define OK_EXIT     0   /* exit() with this is considered 'normal' */
      67: #define MAX_FNAME   100 /* max length of internally generated fn */
      68: #define MAX_COMMAND 1000    /* max length of internally generated cmd */
      69: #define MAX_ENVSTR  1000    /* max length of envvar=value\0 strings */
      70: #define MAX_TEMPSTR 100 /* obvious */
      71: #define MAX_UNAME   20  /* max length of username, should be overkill */
      72: #define ROOT_UID    0   /* don't change this, it really must be root */
      73: #define ROOT_USER   "root"  /* ditto */
      74:
      75:                 /* NOTE: these correspond to DebugFlagNames,
      76: 				 *	defined below.
      77: 				 */
      78: #define DEXT        0x0001  /* extend flag for other debug masks */
      79: #define DSCH        0x0002  /* scheduling debug mask */
      80: #define DPROC       0x0004  /* process control debug mask */
      81: #define DPARS       0x0008  /* parsing debug mask */
      82: #define DLOAD       0x0010  /* database loading debug mask */
      83: #define DMISC       0x0020  /* misc debug mask */
      84: #define DTEST       0x0040  /* test mode: don't execute any commands */
      85: #define DBIT        0x0080  /* bit twiddling shown (long) */
      86:
      87: #define CRON_TAB(u) "%s/%s", SPOOL_DIR, u
      88: #define REG     register
      89: #define PPC_NULL    ((char **)NULL)
      90:
      91: #ifndef MAXHOSTNAMELEN
      92: #define MAXHOSTNAMELEN 64
      93: #endif
      94:
      95: #define Skip_Blanks(c, f) \
      96:             while (c == '\t' || c == ' ') \
      97:                 c = get_char(f);
      98:
      99: #define Skip_Nonblanks(c, f) \
     100:             while (c!='\t' && c!=' ' && c!='\n' && c != EOF) \
     101:                 c = get_char(f);
     102:
     103: #define Skip_Line(c, f) \
     104:             do {c = get_char(f);} while (c != '\n' && c != EOF);
     105:
     106: #if DEBUGGING
     107: # define Debug(mask, message) \
     108:             if ( (DebugFlags & (mask) ) == (mask) ) \
     109:                 printf message;
     110: #else /* !DEBUGGING */
     111: # define Debug(mask, message) \
     112:             ;
     113: #endif /* DEBUGGING */
     114:
     115: #define Set_LineNum(ln) {Debug(DPARS|DEXT,("linenum=%d\n",ln)); \
     116:              LineNumber = ln; \
     117:             }
     118:
     119: #define FIRST_MINUTE    0
     120: #define LAST_MINUTE 59
     121: #define MINUTE_COUNT    (LAST_MINUTE - FIRST_MINUTE + 1)
     122:
     123: #define FIRST_HOUR  0
     124: #define LAST_HOUR   23
     125: #define HOUR_COUNT  (LAST_HOUR - FIRST_HOUR + 1)
     126:
     127: #define FIRST_DOM   1
     128: #define LAST_DOM    31
     129: #define DOM_COUNT   (LAST_DOM - FIRST_DOM + 1)
     130:
     131: #define FIRST_MONTH 1
     132: #define LAST_MONTH  12
     133: #define MONTH_COUNT (LAST_MONTH - FIRST_MONTH + 1)
     134:
     135: /* note on DOW: 0 and 7 are both Sunday, for compatibility reasons. */
     136: #define FIRST_DOW   0
     137: #define LAST_DOW    7
     138: #define DOW_COUNT   (LAST_DOW - FIRST_DOW + 1)
     139:
     140:             /* each user's crontab will be held as a list of
     141: 			 * the following structure.
     142: 			 *
     143: 			 * These are the cron commands.
     144: 			 */
     145:
     146: typedef struct _entry {
     147:     struct _entry   *next;
     148:     uid_t       uid;
     149:     gid_t       gid;
     150:     char        **envp;
     151:     char        *cmd;
     152:     bitstr_t    bit_decl(minute, MINUTE_COUNT);
     153:     bitstr_t    bit_decl(hour,   HOUR_COUNT);
     154:     bitstr_t    bit_decl(dom,    DOM_COUNT);
     155:     bitstr_t    bit_decl(month,  MONTH_COUNT);
     156:     bitstr_t    bit_decl(dow,    DOW_COUNT);
     157:     int     flags;
     158: #define DOM_STAR    0x01
     159: #define DOW_STAR    0x02
     160: #define WHEN_REBOOT 0x04
     161: } entry;
     162:
     163:             /* the crontab database will be a list of the
     164: 			 * following structure, one element per user
     165: 			 * plus one for the system.
     166: 			 *
     167: 			 * These are the crontabs.
     168: 			 */
     169:
     170: typedef struct _user {
     171:     struct _user    *next, *prev;   /* links */
     172:     char        *name;
     173:     time_t      mtime;      /* last modtime of crontab */
     174:     entry       *crontab;   /* this person's crontab */
     175: } user;
     176:
     177: typedef struct _cron_db {
     178:     user        *head, *tail;   /* links */
     179:     time_t      mtime;      /* last modtime on spooldir */
     180: } cron_db;
     181:
     182:
     183: void        set_cron_uid __P((void)),
     184:         set_cron_cwd __P((void)),
     185:         load_database __P((cron_db *)),
     186:         open_logfile __P((void)),
     187:         sigpipe_func __P((void)),
     188:         job_add __P((entry *, user *)),
     189:         do_command __P((entry *, user *)),
     190:         link_user __P((cron_db *, user *)),
     191:         unlink_user __P((cron_db *, user *)),
     192:         free_user __P((user *)),
     193:         env_free __P((char **)),
     194:         unget_char __P((int, FILE *)),
     195:         free_entry __P((entry *)),
     196:         acquire_daemonlock __P((int)),
     197:         skip_comments __P((FILE *)),
     198:         log_it __P((char *, int, char *, char *)),
     199:         log_close __P((void));
     200:
     201: int     job_runqueue __P((void)),
     202:         set_debug_flags __P((char *)),
     203:         get_char __P((FILE *)),
     204:         get_string __P((char *, int, FILE *, char *)),
     205:         swap_uids __P((void)),
     206:         load_env __P((char *, FILE *)),
     207:         cron_pclose __P((FILE *)),
     208:         strcmp_until __P((char *, char *, int)),
     209:         allowed __P((char *)),
     210:         strdtb __P((char *));
     211:
     212: char        *env_get __P((char *, char **)),
     213:         *arpadate __P((time_t *)),
     214:         *mkprints __P((unsigned char *, unsigned int)),
     215:         *first_word __P((char *, char *)),
     216:         **env_init __P((void)),
     217:         **env_copy __P((char **)),
     218:         **env_set __P((char **, char *));
     219:
     220: user        *load_user __P((int, struct passwd *, char *)),
     221:         *find_user __P((cron_db *, char *));
     222:
     223: entry       *load_entry __P((FILE *, void (*)(),
     224:                  struct passwd *, char **));
     225:
     226: FILE        *cron_popen __P((char *, char *));
     227:
     228:
     229:                 /* in the C tradition, we only create
     230: 				 * variables for the main program, just
     231: 				 * extern them elsewhere.
     232: 				 */
     233:
     234: #ifdef MAIN_PROGRAM
     235: # if !defined(LINT) && !defined(lint)
     236: char    *copyright[] = {
     237:         "@(#) Copyright 1988,1989,1990,1993,1994 by Paul Vixie",
     238:         "@(#) All rights reserved"
     239:     };
     240: # endif
     241:
     242: char    *MonthNames[] = {
     243:         "Jan", "Feb", "Mar", "Apr", "May", "Jun",
     244:         "Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
     245:         NULL
     246:     };
     247:
     248: char    *DowNames[] = {
     249:         "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun",
     250:         NULL
     251:     };
     252:
     253: char    *ProgramName;
     254: int LineNumber;
     255: time_t  TargetTime;
     256:
     257: # if DEBUGGING
     258: int DebugFlags;
     259: char    *DebugFlagNames[] = {   /* sync with #defines */
     260:         "ext", "sch", "proc", "pars", "load", "misc", "test", "bit",
     261:         NULL        /* NULL must be last element */
     262:     };
     263: # endif /* DEBUGGING */
     264: #else /*MAIN_PROGRAM*/
     265: extern  char    *copyright[],
     266:         *MonthNames[],
     267:         *DowNames[],
     268:         *ProgramName;
     269: extern  int LineNumber;
     270: extern  time_t  TargetTime;
     271: # if DEBUGGING
     272: extern  int DebugFlags;
     273: extern  char    *DebugFlagNames[];
     274: # endif /* DEBUGGING */
     275: #endif /*MAIN_PROGRAM*/

#### Defined variables

DebugFlagNames declared in line 273; defined in line 259; used 3 times

- in /usr/src/usr.sbin/cron/misc.c line 127, 155-157(2)

DebugFlags declared in line 272; defined in line 258; used 9 times

- in line 108
- in /usr/src/usr.sbin/cron/cron.c line 71, 102
- in /usr/src/usr.sbin/cron/do_command.c line 192
- in /usr/src/usr.sbin/cron/misc.c line 119, 140, 150, 156, 517

DowNames declared in line 267; defined in line 248; used 2 times

- in /usr/src/usr.sbin/cron/entry.c line 206
- in /usr/src/usr.sbin/cron/misc.c line 627

LineNumber declared in line 269; defined in line 254; used 5 times

- in line 116
- in /usr/src/usr.sbin/cron/crontab.c line 270
- in /usr/src/usr.sbin/cron/env.c line 122
- in /usr/src/usr.sbin/cron/misc.c line 298, 312

MonthNames declared in line 266; defined in line 242; used 2 times

- in /usr/src/usr.sbin/cron/entry.c line 194
- in /usr/src/usr.sbin/cron/misc.c line 629

ProgramName declared in line 268; defined in line 253; used 25 times

- in /usr/src/usr.sbin/cron/cron.c line 40, 52
- in /usr/src/usr.sbin/cron/crontab.c line 63-65(3), 82, 92, 123, 147, 347, 387, 404-409(2), 415, 425-428(2), 451, 504, 562
- in /usr/src/usr.sbin/cron/do_command.c line 80
- in /usr/src/usr.sbin/cron/misc.c line 259, 270, 474, 495, 508

TargetTime declared in line 270; defined in line 255; used 8 times

- in /usr/src/usr.sbin/cron/cron.c line 114, 141, 196-198(3), 207-209(2)
- in /usr/src/usr.sbin/cron/do_command.c line 352

acquire_daemonlock defined in line 196; used 3 times

- in /usr/src/usr.sbin/cron/cron.c line 62, 93
- in /usr/src/usr.sbin/cron/do_command.c line 51

allowed defined in line 209; used 1 times

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

arpadate defined in line 213; used 1 times

- in /usr/src/usr.sbin/cron/do_command.c line 352

copyright declared in line 265; defined in line 236; never used
cron_pclose defined in line 207; used 1 times

- in /usr/src/usr.sbin/cron/do_command.c line 388

do_command defined in line 189; used 1 times

- in /usr/src/usr.sbin/cron/job.c line 67

env_copy defined in line 217; used 1 times

- in /usr/src/usr.sbin/cron/entry.c line 248

env_free defined in line 193; used 2 times

- in /usr/src/usr.sbin/cron/entry.c line 59
- in /usr/src/usr.sbin/cron/user.c line 98

env_get defined in line 212; used 10 times

- in /usr/src/usr.sbin/cron/cron.c line 166
- in /usr/src/usr.sbin/cron/database.c line 183
- in /usr/src/usr.sbin/cron/do_command.c line 85-86(2), 182-189(3)
- in /usr/src/usr.sbin/cron/entry.c line 249-257(3)

env_init defined in line 216; used 2 times

- in /usr/src/usr.sbin/cron/crontab.c line 476
- in /usr/src/usr.sbin/cron/user.c line 73

env_set defined in line 218; used 6 times

- in /usr/src/usr.sbin/cron/entry.c line 251-264(5)
- in /usr/src/usr.sbin/cron/user.c line 92

find_user defined in line 221; used 1 times

- in /usr/src/usr.sbin/cron/database.c line 226

first_word defined in line 215; used 1 times

- in /usr/src/usr.sbin/cron/do_command.c line 348

free_entry defined in line 195; used 1 times

- in /usr/src/usr.sbin/cron/user.c line 38

free_user defined in line 192; used 3 times

- in /usr/src/usr.sbin/cron/database.c line 136, 247
- in /usr/src/usr.sbin/cron/user.c line 81

get_char defined in line 203; used 19 times

- in line 97-104(3)
- in /usr/src/usr.sbin/cron/crontab.c line 242, 319, 326, 336, 497
- in /usr/src/usr.sbin/cron/entry.c line 97, 297, 334, 371, 387, 404, 460
- in /usr/src/usr.sbin/cron/misc.c line 331, 353-358(2), 374

get_string defined in line 204; used 4 times

- in /usr/src/usr.sbin/cron/entry.c line 121, 226, 273
- in /usr/src/usr.sbin/cron/env.c line 124

job_add defined in line 188; used 2 times

- in /usr/src/usr.sbin/cron/cron.c line 129, 176

job_runqueue defined in line 201; used 2 times

- in /usr/src/usr.sbin/cron/cron.c line 133, 220

link_user defined in line 190; used 2 times

- in /usr/src/usr.sbin/cron/database.c line 234, 253

load_database defined in line 185; used 2 times

- in /usr/src/usr.sbin/cron/cron.c line 97, 106

load_entry defined in line 223; used 2 times

- in /usr/src/usr.sbin/cron/crontab.c line 524
- in /usr/src/usr.sbin/cron/user.c line 85

load_env defined in line 206; used 2 times

- in /usr/src/usr.sbin/cron/crontab.c line 519
- in /usr/src/usr.sbin/cron/user.c line 78

load_user defined in line 220; used 1 times

- in /usr/src/usr.sbin/cron/database.c line 250

log_close defined in line 199; used 1 times

- in /usr/src/usr.sbin/cron/cron.c line 256

log_it defined in line 198; used 20 times

- in /usr/src/usr.sbin/cron/cron.c line 79-84(2)
- in /usr/src/usr.sbin/cron/crontab.c line 94, 229, 252, 285, 460, 567
- in /usr/src/usr.sbin/cron/database.c line 58, 99, 209, 216-221(2), 248
- in /usr/src/usr.sbin/cron/do_command.c line 47, 128, 143, 402
- in /usr/src/usr.sbin/cron/misc.c line 260, 271

mkprints defined in line 214; used 1 times

- in /usr/src/usr.sbin/cron/do_command.c line 141

open_logfile defined in line 186; never used
set_cron_cwd defined in line 184; used 2 times

- in /usr/src/usr.sbin/cron/cron.c line 64
- in /usr/src/usr.sbin/cron/crontab.c line 88

set_cron_uid defined in line 183; used 2 times

- in /usr/src/usr.sbin/cron/cron.c line 63
- in /usr/src/usr.sbin/cron/crontab.c line 87

set_debug_flags defined in line 202; used 2 times

- in /usr/src/usr.sbin/cron/cron.c line 272
- in /usr/src/usr.sbin/cron/crontab.c line 134

sigpipe_func defined in line 187; never used
skip_comments defined in line 197; used 2 times

- in /usr/src/usr.sbin/cron/entry.c line 95
- in /usr/src/usr.sbin/cron/env.c line 123

strcmp_until defined in line 208; used 2 times

- in /usr/src/usr.sbin/cron/env.c line 79
- in /usr/src/usr.sbin/cron/misc.c line 128

strdtb defined in line 210; used 1 times

- in /usr/src/usr.sbin/cron/env.c line 145

swap_uids defined in line 205; used 1 times

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

unget_char defined in line 194; used 2 times

- in /usr/src/usr.sbin/cron/entry.c line 220
- in /usr/src/usr.sbin/cron/misc.c line 381

unlink_user defined in line 191; used 3 times

- in /usr/src/usr.sbin/cron/database.c line 135, 233, 246

#### Defined struct's

_cron_db defined in line 177; never used
_entry defined in line 146; used 2 times

- in line 147(2)

_user defined in line 170; used 2 times

- in line 171(2)

#### Defined typedef's

cron_db defined in line 180; used 18 times

- in line 185-191(3), 221
- in /usr/src/usr.sbin/cron/cron.c line 29-30(2), 50, 121, 139
- in /usr/src/usr.sbin/cron/database.c line 37-42(3), 48, 148, 163, 180, 199-200(2)

entry defined in line 161; used 20 times

- in line 223-174(2), 188-189(2), 195
- in /usr/src/usr.sbin/cron/cron.c line 124, 144
- in /usr/src/usr.sbin/cron/crontab.c line 474
- in /usr/src/usr.sbin/cron/do_command.c line 28-32(2), 66
- in /usr/src/usr.sbin/cron/entry.c line 56, 67, 88, 106(2)
- in /usr/src/usr.sbin/cron/job.c line 28, 38
- in /usr/src/usr.sbin/cron/user.c line 33, 53

user defined in line 175; used 25 times

- in line 220-178(2), 188-192(5)
- in /usr/src/usr.sbin/cron/cron.c line 123, 143
- in /usr/src/usr.sbin/cron/database.c line 49, 149, 164, 178, 184, 204
- in /usr/src/usr.sbin/cron/do_command.c line 28-33(2), 67
- in /usr/src/usr.sbin/cron/job.c line 29, 39
- in /usr/src/usr.sbin/cron/user.c line 31, 44, 52, 66(2)

#### Defined macros

CRON_TAB defined in line 87; used 6 times

- in /usr/src/usr.sbin/cron/crontab.c line 230, 253, 286, 479, 559
- in /usr/src/usr.sbin/cron/database.c line 116

DBIT defined in line 85; never used
DEBUGGING defined in line 57; used 4 times

- in line 56, 106, 257, 271

DEXT defined in line 78; used 8 times

- in line 115
- in /usr/src/usr.sbin/cron/cron.c line 165
- in /usr/src/usr.sbin/cron/do_command.c line 307
- in /usr/src/usr.sbin/cron/entry.c line 318, 344, 364, 468, 497

DLOAD defined in line 82; used 9 times

- in /usr/src/usr.sbin/cron/database.c line 51, 75, 131-133(2), 142, 225, 232, 245, 258

DMISC defined in line 83; used 2 times

- in /usr/src/usr.sbin/cron/crontab.c line 218
- in /usr/src/usr.sbin/cron/misc.c line 424

DOM_COUNT defined in line 129; used 1 times

- in line 154

DOM_STAR defined in line 158; used 2 times

- in /usr/src/usr.sbin/cron/cron.c line 171
- in /usr/src/usr.sbin/cron/entry.c line 182

DOW_COUNT defined in line 138; used 1 times

- in line 156

DOW_STAR defined in line 159; used 2 times

- in /usr/src/usr.sbin/cron/cron.c line 171
- in /usr/src/usr.sbin/cron/entry.c line 204

DPARS defined in line 81; used 18 times

- in line 115
- in /usr/src/usr.sbin/cron/entry.c line 93, 159, 225-228(2), 239, 266, 286, 318, 344, 364, 468, 497
- in /usr/src/usr.sbin/cron/env.c line 127-132(2), 158
- in /usr/src/usr.sbin/cron/user.c line 62, 100

DPROC defined in line 80; used 20 times

- in /usr/src/usr.sbin/cron/cron.c line 239-247(3)
- in /usr/src/usr.sbin/cron/do_command.c line 35, 53, 60, 75, 132, 217, 242, 278, 296, 307, 380, 407, 419-431(5)

DSCH defined in line 79; used 4 times

- in /usr/src/usr.sbin/cron/cron.c line 154, 165, 208, 223

DTEST defined in line 84; used 2 times

- in /usr/src/usr.sbin/cron/cron.c line 102
- in /usr/src/usr.sbin/cron/do_command.c line 192

Debug defined in line 111; used 53 times

- in line 115
- in /usr/src/usr.sbin/cron/cron.c line 154, 165, 208, 223, 239-247(3)
- in /usr/src/usr.sbin/cron/crontab.c line 218
- in /usr/src/usr.sbin/cron/database.c line 51, 75, 131-133(2), 142, 225, 232, 245, 258
- in /usr/src/usr.sbin/cron/do_command.c line 35, 53, 60, 75, 132, 217, 242, 278, 296, 307, 380, 407, 419-431(5)
- in /usr/src/usr.sbin/cron/entry.c line 93, 159, 225-228(2), 239, 266, 286, 318, 344, 364, 468, 497
- in /usr/src/usr.sbin/cron/env.c line 127-132(2), 158
- in /usr/src/usr.sbin/cron/misc.c line 424
- in /usr/src/usr.sbin/cron/user.c line 62, 100

ERR defined in line 53; used 4 times

- in /usr/src/usr.sbin/cron/env.c line 125
- in /usr/src/usr.sbin/cron/misc.c line 43, 527-529(2)

ERROR_EXIT defined in line 65; used 33 times

- in /usr/src/usr.sbin/cron/cron.c line 41
- in /usr/src/usr.sbin/cron/crontab.c line 70, 95, 106, 125, 142, 148, 205-213(3), 236, 259, 290, 296, 341, 349, 379-393(4)
- in /usr/src/usr.sbin/cron/database.c line 59, 100
- in /usr/src/usr.sbin/cron/do_command.c line 129, 203, 343
- in /usr/src/usr.sbin/cron/misc.c line 172, 192, 198-203(2), 216, 222, 261, 272

FALSE defined in line 49; used 13 times

- in line 57
- in /usr/src/usr.sbin/cron/crontab.c line 517
- in /usr/src/usr.sbin/cron/do_command.c line 108-111(2), 238-239(2)
- in /usr/src/usr.sbin/cron/entry.c line 330, 458
- in /usr/src/usr.sbin/cron/env.c line 135
- in /usr/src/usr.sbin/cron/misc.c line 113, 137, 403, 416

FIRST_DOM defined in line 127; used 6 times

- in line 129
- in /usr/src/usr.sbin/cron/cron.c line 150
- in /usr/src/usr.sbin/cron/entry.c line 139, 145, 151, 183

FIRST_DOW defined in line 136; used 7 times

- in line 138
- in /usr/src/usr.sbin/cron/cron.c line 152
- in /usr/src/usr.sbin/cron/entry.c line 129, 135, 147, 153, 205

FIRST_HOUR defined in line 123; used 4 times

- in line 125
- in /usr/src/usr.sbin/cron/cron.c line 149
- in /usr/src/usr.sbin/cron/entry.c line 150, 171

FIRST_MINUTE defined in line 119; used 3 times

- in line 121
- in /usr/src/usr.sbin/cron/cron.c line 148
- in /usr/src/usr.sbin/cron/entry.c line 161

FIRST_MONTH defined in line 131; used 7 times

- in line 133
- in /usr/src/usr.sbin/cron/cron.c line 151
- in /usr/src/usr.sbin/cron/entry.c line 134, 140, 146, 152, 193

HOUR_COUNT defined in line 125; used 1 times

- in line 153

LAST_DOM defined in line 128; used 5 times

- in line 129
- in /usr/src/usr.sbin/cron/entry.c line 139, 145, 151, 183

LAST_DOW defined in line 137; used 6 times

- in line 138
- in /usr/src/usr.sbin/cron/entry.c line 129, 135, 147, 153, 205

LAST_HOUR defined in line 124; used 3 times

- in line 125
- in /usr/src/usr.sbin/cron/entry.c line 150, 171

LAST_MINUTE defined in line 120; used 2 times

- in line 121
- in /usr/src/usr.sbin/cron/entry.c line 161

LAST_MONTH defined in line 132; used 6 times

- in line 133
- in /usr/src/usr.sbin/cron/entry.c line 134, 140, 146, 152, 193

MAXHOSTNAMELEN defined in line 92; used 1 times

- in line 91

MAX_COMMAND defined in line 68; used 5 times

- in /usr/src/usr.sbin/cron/do_command.c line 335
- in /usr/src/usr.sbin/cron/entry.c line 90, 121, 226, 273

MAX_ENVSTR defined in line 69; used 5 times

- in /usr/src/usr.sbin/cron/crontab.c line 470
- in /usr/src/usr.sbin/cron/entry.c line 91
- in /usr/src/usr.sbin/cron/env.c line 118, 124
- in /usr/src/usr.sbin/cron/user.c line 50

MAX_FNAME defined in line 67; used 7 times

- in /usr/src/usr.sbin/cron/crontab.c line 45, 225, 250, 276, 470(2)
- in /usr/src/usr.sbin/cron/misc.c line 249

MAX_TEMPSTR defined in line 70; used 12 times

- in /usr/src/usr.sbin/cron/crontab.c line 276, 385
- in /usr/src/usr.sbin/cron/do_command.c line 396
- in /usr/src/usr.sbin/cron/entry.c line 443, 452
- in /usr/src/usr.sbin/cron/env.c line 118
- in /usr/src/usr.sbin/cron/misc.c line 250, 394-397(2), 468, 543, 558

MAX_UNAME defined in line 71; used 2 times

- in /usr/src/usr.sbin/cron/crontab.c line 44(2)

MINUTE_COUNT defined in line 121; used 1 times

- in line 152

MONTH_COUNT defined in line 133; used 1 times

- in line 155

OK defined in line 51; used 27 times

- in /usr/src/usr.sbin/cron/crontab.c line 203, 211, 339, 539, 546, 581
- in /usr/src/usr.sbin/cron/database.c line 57, 64, 203, 213, 220, 257
- in /usr/src/usr.sbin/cron/do_command.c line 422
- in /usr/src/usr.sbin/cron/entry.c line 503
- in /usr/src/usr.sbin/cron/misc.c line 170, 184-186(2), 200, 208-210(2), 264, 470-472(2), 492-493(3)
- in /usr/src/usr.sbin/cron/user.c line 78

OK_EXIT defined in line 66; used 3 times

- in /usr/src/usr.sbin/cron/crontab.c line 97
- in /usr/src/usr.sbin/cron/do_command.c line 54, 197

PPC_NULL defined in line 89; used 4 times

- in /usr/src/usr.sbin/cron/entry.c line 162, 172, 184, 413

READ_PIPE defined in line 60; used 6 times

- in /usr/src/usr.sbin/cron/do_command.c line 164-169(2), 175, 222, 247, 299

REG defined in line 88; never used
ROOT_UID defined in line 72; used 3 times

- in /usr/src/usr.sbin/cron/crontab.c line 138, 539
- in /usr/src/usr.sbin/cron/misc.c line 170

ROOT_USER defined in line 73; used 1 times

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

STDERR defined in line 64; used 3 times

- in /usr/src/usr.sbin/cron/do_command.c line 171(2)
- in /usr/src/usr.sbin/cron/misc.c line 496

STDIN defined in line 62; used 2 times

- in /usr/src/usr.sbin/cron/do_command.c line 169(2)

STDOUT defined in line 63; used 3 times

- in /usr/src/usr.sbin/cron/do_command.c line 170-171(3)

Set_LineNum defined in line 115; used 7 times

- in /usr/src/usr.sbin/cron/crontab.c line 241, 314, 496, 516
- in /usr/src/usr.sbin/cron/env.c line 134
- in /usr/src/usr.sbin/cron/misc.c line 298, 312

Skip_Blanks defined in line 95; used 1 times

- in /usr/src/usr.sbin/cron/entry.c line 342

Skip_Line defined in line 103; never used
Skip_Nonblanks defined in line 99; used 1 times

- in /usr/src/usr.sbin/cron/entry.c line 341

TRUE defined in line 48; used 11 times

- in /usr/src/usr.sbin/cron/cron.c line 100
- in /usr/src/usr.sbin/cron/crontab.c line 521
- in /usr/src/usr.sbin/cron/do_command.c line 115
- in /usr/src/usr.sbin/cron/entry.c line 336, 450
- in /usr/src/usr.sbin/cron/env.c line 159
- in /usr/src/usr.sbin/cron/misc.c line 161, 401, 420, 439, 509

WHEN_REBOOT defined in line 160; used 2 times

- in /usr/src/usr.sbin/cron/cron.c line 128
- in /usr/src/usr.sbin/cron/entry.c line 123

WRITE_PIPE defined in line 61; used 6 times

- in /usr/src/usr.sbin/cron/do_command.c line 163, 170, 176, 223, 237, 285

#### Usage of this include

cron.h used 11 times

- in /usr/src/usr.sbin/cron/compat.c line 27
- in /usr/src/usr.sbin/cron/cron.c line 24
- in /usr/src/usr.sbin/cron/crontab.c line 27
- in /usr/src/usr.sbin/cron/database.c line 26
- in /usr/src/usr.sbin/cron/do_command.c line 22
- in /usr/src/usr.sbin/cron/entry.c line 28
- in /usr/src/usr.sbin/cron/env.c line 23
- in /usr/src/usr.sbin/cron/job.c line 23
- in /usr/src/usr.sbin/cron/misc.c line 27
- in /usr/src/usr.sbin/cron/popen.c line 30
- in /usr/src/usr.sbin/cron/user.c line 26

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