aboutsummaryrefslogtreecommitdiff
path: root/sys/ki/kzwtmt.x
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /sys/ki/kzwtmt.x
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/ki/kzwtmt.x')
-rw-r--r--sys/ki/kzwtmt.x26
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