Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (W-Z)
Guardian Procedure Calls Reference Manual—522629-013
16-22
WRITEREAD[X] Procedures
Syntax for C Programmers     
•
CEXTDECS (through the included file TNSINTH) defines 32-bit values as the 
typedef __int32_t which for TNS and TNS/R compiles is defined as long and for 
TNS/E compiles is defined as 
int. 
•
The function value returned by WRITEREAD[X], which indicates the condition 
code, can be interpreted by 
_status_lt(), _status_eq(), or _status_gt() 
(defined in the file 
tal.h). 
Syntax for TAL Programmers     
Parameters   
filenum input            
INT:value (Use with WRITEREAD and WRITEREADX)
is the number of an open file that identifies the file where the WRITE/READ is to 
occur.
buffer input, output           
INT:ref:* (Use with WRITEREAD)
STRING .EXT:ref:* (Use with WRITEREADX)
#include <cextdecs(WRITEREAD)>
_cc_status WRITEREAD ( short filenum 
 ,short _near *buffer 
 ,short write-count 
 ,short read-count 
 ,[ short _near *count-read ]
 ,[ __int32_t tag ] );
#include <cextdecs(WRITEREADX)>
_cc_status WRITEREADX ( short filenum 
 ,char *buffer 
 ,short write-count 
 ,short read-count 
 ,[ short *count-read ]
 ,[ __int32_t tag ] );
CALL WRITEREAD[X] ( filenum ! i
 ,buffer ! i,o
 ,write-count ! i
 ,read-count ! i
 ,[ count-read ] ! o
 ,[ tag ] ); ! i










