d5af26a8fa0f95d6a420e377156671b374565acb
* Copyright (c) 1987 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
static char sccsid
[] = "@(#)update.c 4.3 (Berkeley) %G%";
* Update the file system every 30 seconds.
* For cache benefit, open certain system directories.
for (f
= fillst
; *f
; f
++)
(void)open(*f
, O_RDONLY
, 0);
(void)signal(SIGALRM
, sync
);
value
.it_interval
.tv_sec
= 30;
value
.it_interval
.tv_usec
= 0;
value
.it_value
= value
.it_interval
;
if (setitimer(ITIMER_REAL
, &value
, (struct itimerval
*)NULL
)) {
perror("update: setitimer");