ARB
Macros | Typedefs | Functions
SigHandler.h File Reference
#include <cstdio>
#include <cerrno>
Include dependency graph for SigHandler.h:

Go to the source code of this file.

Macros

#define INSTALL_SIGHANDLER(sig, handler, context)   install_SigHandler(sig, handler)
 
#define UNINSTALL_SIGHANDLER(sig, handler, old_handler, context)   uninstall_SigHandler(sig, handler, old_handler)
 

Typedefs

typedef void(* SigHandler )(int)
 

Functions

bool is_default_or_ignore_sighandler (SigHandler sh)
 
SigHandler install_SigHandler (int sig, SigHandler handler)
 
void uninstall_SigHandler (int sig, SigHandler IF_ASSERTION_USED(handler), SigHandler old_handler)
 

Macro Definition Documentation

#define INSTALL_SIGHANDLER (   sig,
  handler,
  context 
)    install_SigHandler(sig, handler)
#define UNINSTALL_SIGHANDLER (   sig,
  handler,
  old_handler,
  context 
)    uninstall_SigHandler(sig, handler, old_handler)

Typedef Documentation

typedef void(* SigHandler)(int)

Definition at line 23 of file SigHandler.h.

Function Documentation

bool is_default_or_ignore_sighandler ( SigHandler  sh)
inline

Definition at line 37 of file SigHandler.h.

SigHandler install_SigHandler ( int  sig,
SigHandler  handler 
)
inline

Definition at line 78 of file SigHandler.h.

void uninstall_SigHandler ( int  sig,
SigHandler   IF_ASSERTION_USEDhandler,
SigHandler  old_handler 
)
inline

Definition at line 81 of file SigHandler.h.

References ASSERT_RESULT.