date and time created 83/08/05 13:35:19 by sam
[unix-history] / usr / src / old / implogd / implogd.c
index 08c8f6a..87caaaf 100644 (file)
@@ -1,10 +1,10 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)implogd.c  4.6 (Berkeley) %G%";
+static char sccsid[] = "@(#)implogd.c  4.8 (Berkeley) %G%";
 #endif
 
 #endif
 
-#include <time.h>
 #include <sgtty.h>
 
 #include <sgtty.h>
 
+#include <sys/time.h>
 #include <sys/param.h>
 #include <sys/socket.h>
 #include <sys/file.h>
 #include <sys/param.h>
 #include <sys/socket.h>
 #include <sys/file.h>
@@ -58,7 +58,7 @@ main(argc, argv)
          }
        }
 #endif
          }
        }
 #endif
-       log = open(LOGFILE, FCREATE|FWRONLY|FAPPEND, 0644);
+       log = open(LOGFILE, O_CREAT|O_WRONLY|O_APPEND, 0644);
        if (log < 0) {
                perror("implogd: open");
                exit(1);
        if (log < 0) {
                perror("implogd: open");
                exit(1);