Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (W-Z)
Guardian Procedure Calls Reference Manual—522629-013
16-35
WRITEUPDATEUNLOCK[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 WRITEUPDATEUNLOCK[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 WRITEUPDATEUNLOCK and
WRITEUPDATEUNLOCKX)
is a number of an open file that identifies the file to be written.
buffer input
INT:ref:* (Use with WRITEUPDATEUNLOCK)
STRING .EXT:ref:* (Use with WRITEUPDATEUNLOCKX)
is an array containing the data to be written to the file.
#include <cextdecs(WRITEUPDATEUNLOCK)>
_cc_status WRITEUPDATEUNLOCK ( short filenum
,short _near *buffer
,short write-count
,[ short _near *count-written
]
,[ __int32_t tag ] );
#include <cextdecs(WRITEUPDATEUNLOCKX)>
_cc_status WRITEUPDATEUNLOCKX ( short filenum
,const char *buffer
,short write-count
,[ short *count-written ]
,[ __int32_t tag ] );
CALL WRITEUPDATEUNLOCK[X] ( filenum ! i
,buffer ! i
,write-count ! i
,[ count-written ] ! o
,[ tag ] ); ! i