Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (H-K)
Guardian Procedure Calls Reference Manual522629-013
7-2
HALTPOLL Procedure
HALTPOLL Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Condition Code Settings
Example
Related Programming Manuals
Summary
The HALTPOLL procedure is normally used to stop continuous polling.
Syntax for C Programmers
The function value returned by HALTPOLL, 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 the number of an open file that HALTPOLL stops polling.
Condition Code Settings
< (CCL) indicates that an error occurred (call FILE_GETINFO_ or FILEINFO).
= (CCE) indicates that the HALTPOLL procedure executed successfully.
> (CCG) indicates that an error occurred (call FILE_GETINFO_ or FILEINFO).
Example
CALL HALTPOLL ( FNUM );
#include <cextdecs(HALTPOLL)>
_cc_status HALTPOLL ( short filenum );
CALL HALTPOLL ( filenum ); ! i