diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-05-14 18:05:40 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-05-14 18:05:40 +0000 |
commit | 08bdd093b4355d9008dac6b5cec89d39b2d71b79 (patch) | |
tree | 4a82520cc19050b278817d22b754a496d7334c8f /usr.bin/at/at.h | |
parent | 146815f3a476f9cc068bef652174b4c1c22a2aa4 (diff) |
Major changes:
Job names are now "runtime.queue" where runtime is when the job will run
in Unix time format. This is what SysV at does and allows us to nuke
the .SEQ file.
Historic BSD options for atq and atrm are now implemented;
atq and atrm get their own man pages.
At no longer does anything with the -v flag. We print the execution
time when jobs are submitted so there is no need.
Most *scanf() usage is gone (one remains in atrun).
Better sanity checks in atrun.
Random style/cleanup.
With these changes we have the best of both worlds; POSIX compliance with
the traditional BSD features.
Diffstat (limited to 'usr.bin/at/at.h')
-rw-r--r-- | usr.bin/at/at.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/usr.bin/at/at.h b/usr.bin/at/at.h index 660a41af0ca..121157ac42b 100644 --- a/usr.bin/at/at.h +++ b/usr.bin/at/at.h @@ -1,4 +1,4 @@ -/* $OpenBSD: at.h,v 1.6 2002/05/13 16:12:07 millert Exp $ */ +/* $OpenBSD: at.h,v 1.7 2002/05/14 18:05:39 millert Exp $ */ /* $NetBSD: at.h,v 1.2 1995/03/25 18:13:32 glass Exp $ */ /* @@ -30,10 +30,18 @@ extern int fcreated; extern char *__progname; extern int program; extern char atfile[]; -extern char atverify; +extern char vflag; +extern char force; +extern char interactive; enum { ATQ, ATRM, AT, BATCH, CAT }; /* what are we running as? */ +struct atjob { + time_t runtimer; + time_t ctime; + char queue; +}; + #define AT_MAXJOBS 255 /* max jobs outstanding per user */ #define DEFAULT_BATCH_QUEUE 'E' |