BSD 4_2 release
[unix-history] / usr / src / usr.bin / uucp / systat.c
index 2ba14d8..3691af7 100644 (file)
@@ -1,9 +1,11 @@
-static char sccsid[] = "@(#)systat.c   4.1     (Berkeley)      9/11/82";
+#ifndef lint
+static char sccsid[] = "@(#)systat.c   5.1 (Berkeley) 7/2/83";
+#endif
 
 
-       /*  systat 3.3  10/26/79  11:39:50  */
 #include "uucp.h"
 #include <sys/types.h>
 
 #include "uucp.h"
 #include <sys/types.h>
 
+extern time_t  time();
 
 #define STATNAME(f, n) sprintf(f, "%s/%s.%.7s", Spool, "STST", n)
 #define S_SIZE 100
 
 #define STATNAME(f, n) sprintf(f, "%s/%s.%.7s", Spool, "STST", n)
 #define S_SIZE 100
@@ -22,7 +24,7 @@ int type;
 {
        char filename[MAXFULLNAME], line[S_SIZE];
        int count;
 {
        char filename[MAXFULLNAME], line[S_SIZE];
        int count;
-       FILE *fp;
+       register FILE *fp;
        time_t prestime;
 
        if (type == 0)
        time_t prestime;
 
        if (type == 0)
@@ -45,9 +47,9 @@ int type;
                count++;
 
        fp = fopen(filename, "w");
                count++;
 
        fp = fopen(filename, "w");
-       ASSERT(fp != NULL, "SYSTAT OPEN FAIL %s", "");
-       chmod(filename, 0666);
-       fprintf(fp, "%d %d %ld %s %s\n", type, count, prestime, text, name);
+       ASSERT(fp != NULL, "SYSTAT OPEN FAIL", "", 0);
+/*     chmod(filename, 0666); rm-ed by rti!trt */
+       fprintf(fp, "%d %d %ld %ld %s %s\n", type, count, prestime, Retrytime, text, name);
        fclose(fp);
        return;
 }
        fclose(fp);
        return;
 }
@@ -79,7 +81,7 @@ callok(name)
 char *name;
 {
        char filename[MAXFULLNAME], line[S_SIZE];
 char *name;
 {
        char filename[MAXFULLNAME], line[S_SIZE];
-       FILE *fp;
+       register FILE *fp;
        time_t lasttime, prestime;
        long retrytime;
        int count, type;
        time_t lasttime, prestime;
        long retrytime;
        int count, type;