Guardian Procedure Calls Reference Manual

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 WRITE[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
CALL WRITE[X] ( filenum ! i
,buffer ! i
,write-count ! i
,[ count-written ] ! o
,[ tag ] ); ! i
Parameters
filenum
input
INT:value
is the number of an open file that identifies the file to be written.
buffer
input
(for WRITE)INT:ref:*
(for WRITEX)STRING .EXT:ref:*
is an array containing the information to be written to the file.
write-count
input
INT:value
is the number of bytes to be written:
for disk files (see Disk File Considerations (page 1493) and Appendix J: System Limits){0:57344}
for terminal files{0:32755}
for other nondisk files (device-dependent){0:57344}
for interprocess files{0:57344}
for the operator console{0:80}
For key-sequenced and relative files, 0 is invalid. For entry-sequenced files, 0 indicates an
empty record.
count-written
output
(for WRITE)INT:ref:1
(for RWRITEX)INT .EXT:ref:1
is for wait I/O only. count-written returns a count of the number of bytes written to the
file.
WRITE[X] Procedures 1491