Guardian Procedure Calls Reference Manual

SET^FILE Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Returned Value
Operations
Examples
Related Programming Manual
Summary
The SET^FILE procedure alters file characteristics and checks the old values of those characteristics
being altered.
SET^FILE is a sequential I/O (SIO) procedure and should be used only with files that have been
opened by OPEN^FILE.
Syntax for C Programmers
For Native C programs:
#include <cextdecs(SET_FILE)>
short SET_FILE ( short { *common-fcb }
{ *file-fcb }
,short operation
,[ short new-value ]
,[ short *old-value ]
,[ short setaddr-value ] );
For C programs:
#include <cextdecs(SET_FILE)>
short SET_FILE ( short { *common-fcb }
{ *file-fcb }
,short operation
,[ short new-value ]
,[ short *old-value ] );
Syntax for TAL Programmers
For pTAL callers, the procedure definition is:
error := SET^FILE ( { common-fcb } ! i
{ file-fcb } ! i
,operation ! i
,[ new-value ] ! i
,[ old-value ] ! o
,[ setaddr-value ] ); ! i
1304 Guardian Procedure Calls (S)