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 /pkg/system/mtclean.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'pkg/system/mtclean.x')
-rw-r--r-- | pkg/system/mtclean.x | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkg/system/mtclean.x b/pkg/system/mtclean.x new file mode 100644 index 00000000..d79359c5 --- /dev/null +++ b/pkg/system/mtclean.x @@ -0,0 +1,25 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +# MTCLEAN -- Clean the magtape .lok file area, i.e., delete any old .lok files. +# These files no longer serve any device locking purpose, rather, they are +# used by the magtape system to store knowledge of the tape position when +# the drive is not being accessed. The mtclean task is called during CL +# startup to delete any old .lok files to keep these from being erroneously +# used to indicate the tape position. In normal use the .lok files are +# created when a tape is allocated and deleted when the tape is deallocated, +# but the files can be left behind if the CL is killed without doing a +# deallocate. + +procedure t_mtclean() + +int out +bool clgetb() +int clgeti(), btoi() + +begin + out = NULL + if (clgetb ("verbose")) + out = STDOUT + + call mtclean (btoi(clgetb("all")), clgeti("stale"), out) +end |