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/fmlfundel.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/fmio/fmlfundel.x')
-rw-r--r-- | sys/fmio/fmlfundel.x | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sys/fmio/fmlfundel.x b/sys/fmio/fmlfundel.x new file mode 100644 index 00000000..98c822ee --- /dev/null +++ b/sys/fmio/fmlfundel.x @@ -0,0 +1,28 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <syserr.h> +include "fmio.h" + +# FM_LFUNDELETE -- Undelete an lfile. + +procedure fm_lfundelete (fm, lfile) + +pointer fm #I FMIO descriptor +int lfile #I lfile number + +pointer lf +errchk syserrs, fmio_bind, fmio_errchk + +begin + call fmio_bind (fm) + call fmio_errchk (fm) + + # Verify input. + if (lfile < 0 || lfile > FM_NLFILES(fm)) + call syserrs (SYS_FMLFNOOB, FM_DFNAME(fm)) + + lf = FM_FTABLE(fm) + lfile * LEN_FTE + LF_FLAGS(lf) = and (LF_FLAGS(lf), not(LFF_DELETED)) + FM_DHMODIFIED(fm) = YES + call fmio_tick (fm) +end |