blob: 3084373dc2ebfc8f02187081c2aeded842a783b5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
include "fmio.h"
# FM_LFCLOSE -- Close an lfile descriptor. There isn't much for us to do,
# since the physical datafile remains open, and opening an lfile does not
# allocate a descriptor.
procedure fm_lfclose (lf, status)
pointer lf #I lfile descriptor
int status #O i/o status (nbytes transferred or ERR)
pointer fm
begin
fm = LF_FM(lf)
if (fm == NULL)
status = ERR
else if (FM_MAGIC(fm) != FMIO_MAGIC)
status = ERR
else
status = OK
call fmio_tick (fm)
end
|