diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /pkg/system/mtclean.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
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 |