Guardian Programming Reference Summary for pTAL and TAL

Procedure Calls Summary (D-F)
Guardian Programming Reference Summary for pTAL and TAL522631-001
5-42
FILE_OPEN_
Establishes a communication path between an application process and a file, and returns
a file number to the caller.
error, INT:value returned value
filename, INT:value input
infobuf, INT:EXT.ref:* output
infomax, INT:value input
infosize, INT:EXT.ref:1 output
error := FILE_OPEN_ ( {filename:length|pathname}
,filenum
,[ access ]
,[ exclusion ]
,[ nowait-depth ]
,[ sync-or-receive-depth ]
,[ options ]
,[ seq-block-buffer-id ]
,[ seq-block-buffer-len ]
,[ primary-processhandle ] );
error, INT returned value
filename:length, STRING .EXT:ref:*,INT:value input:input
pathname, STRING .EXT:ref:* input
filenum, INT .EXT:ref:1 input, output
access, INT:value input
0 Read-write.
1 Read only.
2 Write only.
3 Extend (supported only for tape).
exclusion, INT:value input
0 Shared.
1 Exclusive.
2 Process exclusive (supported only for Optical Storage Facility).
3 Protected.