Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (O)
Guardian Procedure Calls Reference Manual522629-013
11-42
OPENEDIT_ Procedure
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
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.
#include <cextdecs(OPENEDIT_)>
short OPENEDIT_ ( const char *file-name
,short length
,short *filenum
,[ short access ]
,[ short exclusion ]
,[ short nowait ]
,[ short sync-depth ]
,[ short write-thru ] );
error := OPENEDIT_ ( file-name:length ! i:i
,filenum ! i,o
,[ access ] ! i
,[ exclusion ] ! i
,[ nowait ] ! i
,[ sync-depth ] ! i
,[ write-thru ] ); ! i