Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (C)
Guardian Procedure Calls Reference Manual—522629-013
3-126
CONTROL Procedure
CONTROL Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Condition Code Settings
Control Operations
Considerations
Related Programming Manuals
Summary
CONTROL is used to perform device-dependent I/O operations. 
Syntax for C Programmers   
•
CEXTDECS (through the included file TNSINTH) defines 32-bit values as the 
typedef __int32_t which for TNS and TNS/R compiles is defined as long and for 
TNS/E compiles is defined as 
int. 
•
The function value returned by CONTROL, which indicates the condition code, can 
be interpreted by 
_status_lt(), _status_eq(), or _status_gt() (defined 
in the file 
tal.h). 
Syntax for TAL Programmers             
Parameters 
filenum input
INT:value
is a number of an open file, identifying the file to which the CONTROL procedure 
performs an I/O operation.
#include <cextdecs(CONTROL)>
_cc_status CONTROL ( short filenum
  ,short operation 
  ,[ short param ]
 ,[ __int32_t tag ] );
CALL CONTROL ( filenum ! i
 ,operation ! i
 ,[ param ] ! i
 ,[ tag ] ); ! i










