Guardian Procedure Calls Reference Manual
primary-process-id and primary-filenum are supplied only if the open is by the
backup process of a process pair, the file is currently open by the primary process, and the
checkpointing facility is not used. Both parameters must be supplied.
seq-block-buffer-id
input
INT:ref:1
is a 16-bit value, the address of which identifies the sequential block buffer to be shared, if
sequential block buffering is used and if sharing is desired. If sharing is not desired, this
parameter can be omitted since all sequential buffers will reside in the process' PFS with the
size given by buffer-length. All opens giving this ID share the same sequential block
buffer. Any integer value can be supplied for this parameter.
If sequential block buffering is used, the file is usually opened with protected or exclusive
access. Shared access can be used, although there are potential concurrency problems, and
it is somewhat slower than other access methods in the case of key-sequenced files. See the
discussion of Sequential Block Buffering in the Enscribe Programmer's Guide.
buffer-length
input
INT:value
is the length in bytes of the sequential block buffer. This is the only parameter that is required
for the sequential block buffering option to be in effect when buffer sharing is not used.
If the buffer-length is less than the data-blocklen specified in the creation of this file
or any associated alternate-key files, then the larger size is used, unless a buffer that was
established by an earlier call to OPEN is being shared and is too small. In that case OPEN
succeeds but returns a CCG indication (a subsequent call to FILEINFO or FILE_GETINFO_ shows
that an error 5 occurred). Normal system buffering is then used instead of the application
process' sequential buffer.
If this parameter is omitted, sequential block buffering is not attempted.
primary-define
input
INT:ref:12
specifies the name of the DEFINE which was used as the file-name in the open of the primary
process. (In the backup, file-name must be the actual name of the file.) The DEFINE must
exist and must have the same value as it did when the primary open was made. This parameter
is relevant only for a process pair which does not use the CHECKOPEN or CHECKMONITOR
procedures.
The primary-define parameter must be supplied only if this open is a backup open and
the primary open was made using a DEFINE.
Condition Code Settings
indicates that the open failed (call FILEINFO or FILE_GETINFO_). If OPEN fails, a -1 is returned in
filenum.
< (CCL)
indicates that the file was opened successfully.= (CCE)
indicates the file was opened successfully but an exceptional condition was detected (call FILEINFO
or FILE_GETINFO_).
> (CCG)
900 Guardian Procedure Calls (O)