Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (O)
Guardian Procedure Calls Reference Manual—522629-013
11-24
OPEN Procedure (Superseded by FILE_OPEN_
Procedure )
Table 11-5 lists the possible current modes and requested modes, indicating
whether an open succeeds or fails.
Note. Protected exclusion mode has meaning only for disk files. For other files, specifying
protected exclusion mode is equivalent to specifying shared exclusion mode.
Table 11-5. Exclusion and Access Mode Checking
008CDT .CDD
Open
attempted
with:
File currently open with:
Shared
Read/
Write
Read
Only
Write
Only
Exclusive
Read/
Write
Read
Only
Write
Only
Protected
Read/
Write
Read
Only
Write
Only
Read/
Write
Read
Only
Write
Only
Read/
Write
Read
Only
Write
Only
Read/
Write
Read
Only
Write
Only
Exclusive
Protected
File
Closed
Shared
Access
Mode
Exclusion
Mode
= Open Successful
Legend
= Open Fails
Always Fails
Note: When a program file is running, it is opened
with the equivalent of protected, read-only access.