Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (D-E)
Guardian Procedure Calls Reference Manual522629-013
4-106
ERRNO_GET_ Procedure
ERRNO_GET_ Procedure
Summary
Considerations for C Programmers
Syntax for TAL Programmers
Parameters
Example
Considerations
Summary
The ERRNO_GET_ procedure obtains the value of the errno variable set by many
OSS, native C/C++, and some Guardian routines.
Considerations 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
Parameters
error returned value
INT(32)
returns the value of the
errno variable.
Example
err := ERRNO_GET_;
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.
?SOURCE $SYSTEM.SYSTEM.HERRNO
error := ERRNO_GET_;