Guardian Procedure Calls Reference Manual
ERRNO_GET_ Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Returned Value
Considerations
Example
Summary
The ERRNO_GET_ procedure obtains the value of the errno variable set by many OSS, native
C/C++, and some Guardian routines.
Syntax for C Programmers
C programmers using the C run-time libraries, CRE support libraries, or shared run-time libraries
(SRLs) can access the errno variable directly and do not use this procedure.
Syntax for TAL Programmers
?SOURCE $SYSTEM.SYSTEM.HERRNO
error := ERRNO_GET_;
Returned Value
INT(32)
The value of the errno variable.
Considerations
This procedure must be used to examine the errno value set by the SIGACTION_INIT_,
SIGACTION_RESTORE_, SIGACTION_SUPPLANT_, and SIGJMP_SETMASK_ procedures when
an error is detected.
Example
err := ERRNO_GET_;
340 Guardian Procedure Calls (D-E)