From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- sys/mtio/zardmt.x | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 sys/mtio/zardmt.x (limited to 'sys/mtio/zardmt.x') diff --git a/sys/mtio/zardmt.x b/sys/mtio/zardmt.x new file mode 100644 index 00000000..ac5833be --- /dev/null +++ b/sys/mtio/zardmt.x @@ -0,0 +1,22 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include +include +include "mtio.h" + +# ZARDMT -- MTIO asynchronous read primitive. Initiate a read of up to +# maxbytes bytes into the user buffer. + +procedure zardmt (mtchan, buf, maxbytes, offset) + +int mtchan #I i/o channel +char buf[ARB] #O output data buffer +int maxbytes #I max bytes to read +long offset #I file offset + +include "mtio.com" + +begin + if (MT_ATEOF(mtchan) == NO) + call zzrdmt (MT_OSCHAN(mtchan), buf, maxbytes, offset) +end -- cgit