Program support utilities
From Cppreference
| C++ Standard Library |
|---|
| Utilities library |
| Program support utilities |
Contents |
[edit] Program termination
The following functions manage program termination and resource cleanup.
| Defined in header <cstdlib>
| |
| causes abnormal program termination (without cleaning up) (function) |
|
| causes normal program termination with cleaning up (function) |
|
| (C++11)
|
causes normal program termination without completely cleaning up (function) |
| (C++11)
|
causes normal program termination without cleaning up (function) |
| registers a function to be called on exit() invocation (function) |
|
| (C++11)
|
registers a function to be called on quick_exit invocation (function) |
| indicates program execution execution status (macro constant) |
|
[edit] Communicating with the environment
| calls the host environment's command processor (function) |
|
| access to the list of environment variables (function) |
|
[edit] Signals
Several functions and macro constants for signal management are provided.
| Defined in header <csignal>
| |
| sets a signal handler for particular signal (function) |
|
| runs the signal handler for particular signal (function) |
|
| the integer type that can be accessed as an atomic entity from an asynchronous signal handler (typedef) |
|
| defines signal handling strategies (macro constant) |
|
| error was encountered (macro constant) |
|
Signal types | |
| abnormal termination (macro constant) |
|
| floating point exception (macro constant) |
|
| invalid instruction (macro constant) |
|
| interactive attention request sent to the program (macro constant) |
|
| invalid memory access (macro constant) |
|
| termination request sent to the program (macro constant) |
|
[edit] Non-local jumps
| Defined in header <csetjmp>
| |
| saves the context (function macro) |
|
| jumps to specified location (function) |
|
Types | |
| execution context type (function) |
|