GDSX Manual
Service Routines
Extended General Device Support (GDSX) Manual–134303
8-84
WAITED^IO[X]
WAITED^IO[X] performs a WRITE, READ, or WRITEREAD depending on the values
of writecount and readcount. If writecount is 0 and the file is not a process file, a READ
is done. If readcount is 0 a WRITE is done, otherwise a WRITEREAD is performed.
file input
INT:value
specifies the file number for the operation.
buffer input
is a pointer to the buffer to be transferred.
writecount input
INT:value
specifies the number of bytes to write.
readcount input
INT:value
specifies the number of bytes to read.
countxfered output
is a pointer to the number of bytes transferred. The number of bytes is passed by
AWAITIO[X], which is used to implement this procedure.
CALL WAITED^IO[X] ( file !
i
,buffer !
i
,writecount !
i
,readcount !
i
,countxfered !
i
,timeout ); !
i
INT:ref (use with WAITED^IO.)
INT .EXT:ref (use with WAITED^IOX.)
INT:ref (use with WAITED^IO.)
INT .EXT:ref (use with WAITED^IOX.)