Exchange/SNA Manual

AWAITIO Procedure
Exchange/SNA System Procedure Calls
5–2 104700 Tandem Computers Incorporated
AWAITIO Procedure The AWAITIO procedure completes (or checks for the completion of) a previously
initiated nowait I/O operation.
CALL AWAITIO (
filenum
,[
buffer-addr
]
,[
count-transferred
]
,[
tag
]
,[
time-limit
] );
filenum
INT:ref:1
is the file number of a previously opened subdevice supported by the
Exchange/SNA line server. The number you specify here is the number returned
by the call to OPEN that opened the subdevice.
You can also specify a file number of -1, which indicates that AWAITIO can
complete an outstanding nowait I/O operation on any file. In this case,
filenum
returns the file number of the file associated with the nowait I/O operation that
was completed by the call to AWAITIO. The tag parameter (see below) identifies
the particular nowait I/O operation that was completed.
buffer-addr
INT:ref:1
returns the address of the buffer specified when the operation was initiated. For a
receive operation (READ), the buffer contains the record received from the host.
For a send operation (WRITE), the buffer contains the record sent to the host.
count-transferred
INT:ref:1
returns the number of bytes sent or received. For a receive operation (READ), this
is the size, in bytes, of the record received from the host and now in the buffer
specified by
buffer-addr
. For a send operation (WRITE), this is the size, in
bytes, of the record sent to the host.