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 /sys/ki/kzwtmt.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'sys/ki/kzwtmt.x')
-rw-r--r-- | sys/ki/kzwtmt.x | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/sys/ki/kzwtmt.x b/sys/ki/kzwtmt.x new file mode 100644 index 00000000..3358d83e --- /dev/null +++ b/sys/ki/kzwtmt.x @@ -0,0 +1,26 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <config.h> +include <fio.h> +include "ki.h" + +# KZWTMT -- Wait for i/o to complete on a magtape channel. + +procedure kzwtmt (chan, devpos, status) + +int chan #I active magtape channel +int devpos[ARB] #O device position structure +int status #O receives nbytes transferred or ERR + +pointer bd +include "kichan.com" + +begin + if (k_node[chan] == NULL) + call zzwtmt (k_oschan[chan], devpos, status) + else { + bd = k_bufp[chan] + status = k_status[chan] + call amovi (Memi[bd], devpos, LEN_MTDEVPOS) + } +end |