Namespaces
Variants
Views
Actions

Program support utilities

From cppreference.com
< cpp‎ | utility
Revision as of 15:00, 6 June 2011 by P12 (Talk | contribs)

Template:cpp/utility/program/sidebar

Contents

Program termination

The following functions manage program termination and resource cleanup.

Template:cpp/utility/program/dcl list EXIT SUCCESSTemplate:cpp/utility/program/dcl list EXIT FAILURE

Functions

Defined in header <cstdlib>
causes abnormal program termination (without cleaning up)
(function) [edit]
causes normal program termination with cleaning up
(function) [edit]
causes quick program termination without completely cleaning up
(function) [edit]
(C++11)
causes normal program termination without cleaning up
(function) [edit]
registers a function to be called on std::exit() invocation
(function) [edit]
registers a function to be called on std::quick_exit invocation
(function) [edit]

Macro constants

Communicating with the environment

calls the host environment's command processor
(function) [edit]
access to the list of environment variables
(function) [edit]

Signals

Several functions and macro constants for signal management are provided in <csignal> header.

Template:cpp/utility/program/dcl list SIG DFLTemplate:cpp/utility/program/dcl list SIG IGNTemplate:cpp/utility/program/dcl list SIGABRTTemplate:cpp/utility/program/dcl list SIGFPETemplate:cpp/utility/program/dcl list SIGILLTemplate:cpp/utility/program/dcl list SIGINTTemplate:cpp/utility/program/dcl list SIGSEGVTemplate:cpp/utility/program/dcl list SIGTERM

Functions

sets a signal handler for particular signal
(function) [edit]
runs the signal handler for particular signal
(function) [edit]

Macro constants

return value of signal specifying that an error was encountered
(macro constant) [edit]
Signal types

Non-local jumps

Types

execution context type
(typedef) [edit]

Functions

saves the context
(function macro) [edit]
jumps to specified location
(function) [edit]