Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (R)
Guardian Procedure Calls Reference Manual—522629-013
13-35
READUPDATELOCK[X] Procedures
Syntax for C Programmers
•
CEXTDECS (via 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 READUPDATELOCK[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 READUPDATELOCK and READUPDATELOCKX)
is the number of an open file that identifies the file to be read.
buffer output
INT:ref:* (Use with READUPDATELOCK)
STRING .EXT:ref:* (Use with READUPDATELOCKX)
is an array where the information read from the file returns.
#include <cextdecs(READUPDATELOCK)>
_cc_status READUPDATELOCK ( short filenum
,short _near *buffer
,short read-count
,[ short _near *count-read ]
,[ __int32_t tag ] );
#include <cextdecs(READUPDATELOCKX)>
_cc_status READUPDATELOCKX ( short filenum
,char *buffer
,short read-count
,[ short *count-read ]
,[ __int32_t tag ] );
CALL READUPDATELOCK[X] ( filenum ! i
,buffer ! o
,read-count ! i
,[ count-read ] ! o
,[ tag ] ); ! i