diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /sys/fmio/fmlfcls.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/fmio/fmlfcls.x')
-rw-r--r-- | sys/fmio/fmlfcls.x | 27 |
1 files changed, 27 insertions, 0 deletions
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 |