Guardian Programming Reference Summary for pTAL and TAL

Procedure Calls Summary (D-F)
Guardian Programming Reference Summary for pTAL and TAL522631-001
5-41
FILE_GETRECEIVEINFO_
Returns information about the last message read on the $RECEIVE file.
FILE_GETSYNCINFO_
The FILE_GETSYNCINFO_ procedure is called by the primary process of a process
pair before starting a series of write operations to a file open with paired access. Unlike
the GETSYNCINFO
procedure, this procedure can be used with format 2 files.
error := FILE_GETRECEIVEINFO_ ( receive-info );
error, INT returned value
receive-info, INT .EXT:ref:17 output
[0] I/O type. Indicates the data operation last performed by the message sender.
0 = Not a data message (system message).
1 = Sender called WRITE.
2 = Sender called READ.
3 = Sender called WRITEREAD.
[1] Maximum reply count. The maximum number of bytes of data that can be
returned by REPLY (as determined by the read count of the sender).
[2] Message tag. The value that identifies the request message just read.
[3] File number. The value that identifies the file associated with this message in
the requesting process.
[4:5] Sync ID. The sync ID associated with this message.
[6:15] Sender process handle. The process handle of the process that sent the last
message. For system messages other than the open, close, control, setmode,
setparam, resetsync, or controlbuf messages, the null process handle (-1 in each
word) is returned.
[16] Open label. The value assigned by the application (when replying to the open
system message) to the open on which the received message was sent. If this
value is unavailable (as when the opener is running on a C-series system), -1 is
returned.
error := FILE_GETSYNCINFO_ ( filenum
,infobuf
,infomax
,infosize );