Annotation of src/usr.bin/at/at.h, Revision 1.7
1.7 ! millert 1: /* $OpenBSD: at.h,v 1.6 2002/05/13 16:12:07 millert Exp $ */
1.1 deraadt 2: /* $NetBSD: at.h,v 1.2 1995/03/25 18:13:32 glass Exp $ */
3:
4: /*
1.3 millert 5: * at.h - header for at(1)
6: * Copyright (C) 1993 Thomas Koenig
1.1 deraadt 7: *
8: * Redistribution and use in source and binary forms, with or without
9: * modification, are permitted provided that the following conditions
10: * are met:
11: * 1. Redistributions of source code must retain the above copyright
12: * notice, this list of conditions and the following disclaimer.
13: * 2. The name of the author(s) may not be used to endorse or promote
14: * products derived from this software without specific prior written
15: * permission.
16: *
17: * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
18: * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19: * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
1.3 millert 20: * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
1.1 deraadt 21: * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22: * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23: * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24: * THEORY OF LIABILITY, WETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25: * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26: * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27: */
28:
29: extern int fcreated;
1.4 millert 30: extern char *__progname;
1.6 millert 31: extern int program;
1.1 deraadt 32: extern char atfile[];
1.7 ! millert 33: extern char vflag;
! 34: extern char force;
! 35: extern char interactive;
1.6 millert 36:
37: enum { ATQ, ATRM, AT, BATCH, CAT }; /* what are we running as? */
1.7 ! millert 38:
! 39: struct atjob {
! 40: time_t runtimer;
! 41: time_t ctime;
! 42: char queue;
! 43: };
1.1 deraadt 44:
45: #define AT_MAXJOBS 255 /* max jobs outstanding per user */
1.3 millert 46:
47: #define DEFAULT_BATCH_QUEUE 'E'
48: #define DEFAULT_AT_QUEUE 'c'