Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (O)
Guardian Procedure Calls Reference Manual—522629-013
11-38
OPENEDIT Procedure (Superseded by OPENEDIT_
Procedure )
OPENEDIT Procedure
(Superseded by OPENEDIT_ Procedure
)
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Considerations
Example
Related Programming Manual
Summary
The OPENEDIT procedure allocates and initializes data blocks in the EDIT file
segment (EFS) so that the specified file can be accessed later by the IOEdit
procedures. It optionally creates and opens the specified file through the file system.
Syntax for C Programmers
This procedure does not have a C syntax, because it is superseded and should not be
used for new development. This procedure is supported only for compatibility with
previous software.
Syntax for TAL Programmers
Parameters
error returned value
INT
returns a file-system error number indicating the outcome of the operation. The
possible values include the following:
-1 Page-count value is inconsistent.
-2 Page-table tags are out of order.
-3 Page-table tag is outside legal range.
-4 Page-table block number is outside of file.
-5 Page table has duplicate block numbers.
Note. The OPENEDIT procedure is supported for compatibility with previous software. For
new development, the OPENEDIT_ procedure should be used instead.
error := OPENEDIT ( file-name ! i
,filenum ! i,o
,[ flags ] ! i
,[ sync-depth ] ! i
,[ write-thru ] ); ! i