Guardian Programmer's Guide

Table Of Contents
Communicating With Processes
Guardian Programmer’s Guide 421922-014
6 - 3
Sending and Receiving Messages: An Introduction
FILE_GETINFO_ Provides error information and characteristics about
the open process file or $RECEIVE file.
FILE_GETRECEIVEINFO_ Returns information about the last message read from
the $RECEIVE file. The information includes a tag
that identifies the message.
FILE_OPEN_ Establishes communication with a process file for
sending messages or with the $RECEIVE file for
receiving messages.
MESSAGESTATUS Checks the $RECEIVE file to see whether a specific
message has been canceled.
READ[X] Reads information from the $RECEIVE file. The
READ procedure reads data into a buffer in the user
data segment of the reading process. The READX
procedure reads data into a buffer in either the user
data segment or an extended data segment of the
reading process.
READUPDATE[X] Reads a message from $RECEIVE, expecting to
reply to the message sender in a subsequent call to
the REPLY procedure. The READUPDATE
procedure reads data into a buffer in the user data
segment of the receiving procedure. The
READUPDATEX procedure reads data into a buffer in
either the user data segment or an extended data
segment of the receiving process.
REPLY[X] Replies through the $RECEIVE file to a message that
was previously read by READUPDATE. Optionally,
REPLY[X] uses the message tag returned from
FILE_GETRECEIVEINFO_ to designate which
message is replied to. The REPLY procedure returns
data from a buffer in the user data segment of the
replying process. The REPLYX procedure returns
data from a buffer either in the user data segment or
in an extended data segment of the replying process.
SETMODE Issues SETMODE functions to a process that
simulates an I/O device. SETMODE is also used to
turn on/off message queuing by priority of the sending
process and to check whether any message has been
canceled.
SETMODENOWAIT Performs the same functions as SETMODE but in a
nowait manner.
SETPARAM Issues SETPARAM operations to a process that
simulates an I/O device.