aboutsummaryrefslogtreecommitdiff
path: root/sys/fmio/fmiotick.x
blob: c29e035b983939c78be4d93ed08ae8285f90bdec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.

include	"fmio.h"

# FMIO_TICK -- Check the clock and do things that need to get done
# periodically, like sync the datafile.

procedure fmio_tick (fm)

pointer	fm			#I FMIO descriptor

long	clktime()

begin
	if (clktime(FM_LSYNCTIME(fm)) > SYNC_INTERVAL)
	    call fm_sync (fm)
end