From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- sys/fmio/fmlfcls.x | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 sys/fmio/fmlfcls.x (limited to 'sys/fmio/fmlfcls.x') diff --git a/sys/fmio/fmlfcls.x b/sys/fmio/fmlfcls.x new file mode 100644 index 00000000..3084373d --- /dev/null +++ b/sys/fmio/fmlfcls.x @@ -0,0 +1,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 -- cgit