Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (O)
Guardian Procedure Calls Reference Manual522629-013
11-52
OPENINFO Procedure
(Superseded by FILE_GETOPENINFO_ Procedure )
Parameters
error returned value
INT
is the file-system error number indicating the outcome of the call. Error 1 (EOF)
indicates there are no further opens. Error 2 (invalid operation) is returned for
nondisk devices that cannot return any valid information.
searchname input
INT:ref:12
is the internal-format file name of the disk volume or disk file whose open
information is being requested.
prevtag input, output
INT:ref:1
is a number identifying which open was last returned. Before making the first call,
the user should set his
prevtag variable to 0. On subsequent calls, the value
should be that returned by the previous call.
pricrtpid output
INT:ref:4
is the process ID of the (primary) process that has the file open.
backcrtpid output
INT:ref:4
is the process ID of the backup process of a process-pair that has the file open, or
is all zeros if there is no open by a backup.
accessmode output
INT:ref:1
is the access mode with which the file is open. The codes are:
0 read-write
1 read only
2 write only