projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
BSD 4_3_Reno release
[unix-history]
/
usr
/
src
/
usr.bin
/
at
/
atq
/
atq.c
diff --git
a/usr/src/usr.bin/at/atq/atq.c
b/usr/src/usr.bin/at/atq/atq.c
index
3f6a98d
..
b46434b
100644
(file)
--- a/
usr/src/usr.bin/at/atq/atq.c
+++ b/
usr/src/usr.bin/at/atq/atq.c
@@
-11,7
+11,7
@@
char copyright[] =
#endif not lint
#ifndef lint
#endif not lint
#ifndef lint
-static char sccsid[] = "@(#)atq.c 5.
5 (Berkeley) %G%
";
+static char sccsid[] = "@(#)atq.c 5.
6 (Berkeley) 5/11/89
";
#endif not lint
/*
#endif not lint
/*
@@
-38,10
+38,7
@@
static char sccsid[] = "@(#)atq.c 5.5 (Berkeley) %G%";
# include <sys/time.h>
# include <pwd.h>
# include <ctype.h>
# include <sys/time.h>
# include <pwd.h>
# include <ctype.h>
-
-# define ATDIR "/usr/spool/at" /* spooling area */
-# define LASTFILE "/usr/spool/at/lasttimedone" /* update time record
- file */
+# include "pathnames.h"
/*
* Months of the year
/*
* Months of the year
@@
-111,13
+108,13
@@
char **argv;
* files in the queue structure. The queue comes back sorted by
* execution time or creation time.
*/
* files in the queue structure. The queue comes back sorted by
* execution time or creation time.
*/
- if (chdir(ATDIR) == -1) {
- perror(ATDIR);
+ if (chdir(
_PATH_
ATDIR) == -1) {
+ perror(
_PATH_
ATDIR);
exit(1);
}
if ((numentries = scandir(".",&queue,filewanted, (cflag) ? creation :
alphasort)) < 0) {
exit(1);
}
if ((numentries = scandir(".",&queue,filewanted, (cflag) ? creation :
alphasort)) < 0) {
- perror(ATDIR);
+ perror(
_PATH_
ATDIR);
exit(1);
}
exit(1);
}
@@
-327,8
+324,8
@@
plastrun()
* last update hour. The update time is measured in seconds since
* 1/1/70.
*/
* last update hour. The update time is measured in seconds since
* 1/1/70.
*/
- if ((last = fopen(LASTFILE,"r")) == NULL) {
- perror(LASTFILE);
+ if ((last = fopen(
_PATH_
LASTFILE,"r")) == NULL) {
+ perror(
_PATH_
LASTFILE);
exit(1);
}
fscanf(last,"%lu",&lasttime);
exit(1);
}
fscanf(last,"%lu",&lasttime);