CRE Programmer's Guide

CRE Service Functions
Common Run-Time Environment (CRE) Programmer’s Guide528146-004
6-41
CRE_Receive_Write_
Return Value
CRE_Receive_Read_ returns one of the following:
0 if the input operation is successful
A positive number, which is a file system error number
A negative number, which is the negation of a CRE error number from the following
table:
CRE_Receive_Write_
CRE_Receive_Write_ calls the REPLYX system procedure to reply to a message from
$RECEIVE.
buffer:write_count
is the data area (buffer) from which to write and the number of bytes to write
(
write_count).
reply_code
is the reply code that REPLYX returns to the requester process. The value you
specify for
reply_code determines the value of the condition code indicator
(CCL, CCE, or CCG), and is the value returned if the requester process calls
FILEINFO or one of the FILEGETINFO system procedures. See the
Guardian
Procedure Calls Reference Manual for more information on FILEINFO and the
FILEGETINFO procedures.
message_number
specifies the CRE message number to which the reply corresponds. If the value
you specify for Reply^depth in the CRE_Receive_Open_Close_
attributes
parameter is greater than one, you must specify message_number when you call
CRE_Receive_Write_. CRE_Receive_Read_ returns the message number to your
program in the
message_number field of its sender_info parameter.
Error Code Cause
55 Missing or invalid parameter
64 File not open
INT PROC CRE_Receive_Write_( buffer:write_count, reply_code,
message_number )
EXTENSIBLE;
STRING .EXT buffer; ! in, required
INT write_count; ! in, required
INT reply_code; ! in, required
INT message_number; ! in, required TNS, native