SYS_exit
Application Program Interface
2-457
C Interface
Syntax
SYS_exit(status);
Parameters
Int
status;
/* termination status code */
Return Value
Void
Description
SYS_exit first pops a stack of handlers registered through the function
SYS_atexit, and then terminates program execution by calling the
function bound to the configuration parameter Exit function, passing on
its original status parameter.
(*handlerN)(status)
...
(*handler2)(status)
(*handler1)(status)
(*(Exit_function))(status)
The default Exit function for the SYS manager is UTL_halt, which
performs an infinite loop with all processor interrupts disabled.
Constraints and
Calling Context
❏
If the function bound to Exit function or any of the handler functions
is not reentrant, SYS_exit must be called atomically.
See Also
SYS_exit
Terminate program execution