aboutsummaryrefslogtreecommitdiff
path: root/sys/ki/kzwtmt.x
blob: 3358d83e25c307488b643ebf962489c89c9a3b16 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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