From 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 Mon Sep 17 00:00:00 2001 From: Joe Hunkeler Date: Tue, 11 Aug 2015 16:51:37 -0400 Subject: Repatch (from linux) of OSX IRAF --- sys/ki/kzwtmt.x | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 sys/ki/kzwtmt.x (limited to 'sys/ki/kzwtmt.x') 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 +include +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 -- cgit