4.4BSD snapshot (revision 8.1); add 1993 to copyright
[unix-history] / usr / src / usr.sbin / update / update.c
index 0807713..dd9b05d 100644 (file)
@@ -1,27 +1,25 @@
 /*-
 /*-
- * Copyright (c) 1987, 1990 The Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1987, 1990, 1993
+ *     The Regents of the University of California.  All rights reserved.
  *
  * %sccs.include.redist.c%
  */
 
 #ifndef lint
  *
  * %sccs.include.redist.c%
  */
 
 #ifndef lint
-char copyright[] =
-"@(#) Copyright (c) 1987, 1990 The Regents of the University of California.\n\
- All rights reserved.\n";
+static char copyright[] =
+"@(#) Copyright (c) 1987, 1990, 1993\n\
      The Regents of the University of California.  All rights reserved.\n";
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)update.c   4.7 (Berkeley) %G%";
+static char sccsid[] = "@(#)update.c   8.1 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/time.h>
 #include <signal.h>
 #endif /* not lint */
 
 #include <sys/time.h>
 #include <signal.h>
-#include <fcntl.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <unistd.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <unistd.h>
-#include "pathnames.h"
 
 main()
 {
 
 main()
 {
@@ -30,11 +28,6 @@ main()
 
        daemon(0, 0);
 
 
        daemon(0, 0);
 
-       (void)open(_PATH_BIN, O_RDONLY, 0);
-       (void)open(_PATH_USR, O_RDONLY, 0);
-       (void)open(_PATH_USRBIN, O_RDONLY, 0);
-       (void)open(_PATH_USRLIB, O_RDONLY, 0);
-
        (void)signal(SIGALRM, mysync);
 
        value.it_interval.tv_sec = 30;
        (void)signal(SIGALRM, mysync);
 
        value.it_interval.tv_sec = 30;
@@ -45,14 +38,12 @@ main()
                exit(1);
        }
        for (;;)
                exit(1);
        }
        for (;;)
-               pause();
-       /*NOTREACHED*/
+               sigpause(sigblock(0L));
+       /* NOTREACHED */
 }
 
 }
 
-/* VARARGS */
 void
 void
-mysync(i)
-       int i;
+mysync()
 {
        (void)sync();
 }
 {
        (void)sync();
 }