76 static std::list<std::ostream*> *streams = 0;
92 *pstreams =
new std::list<std::ostream*> ();
115 (*pl)->remove (stream);
163 struct sigaction hdl;
165 sigaction (SIGSEGV, &hdl, 0);
167 std::list<std::ostream*> *l = *pl;
172 std::ostream* s (l->front ());
178 hdl.sa_handler=SIG_DFL;
179 sigaction (SIGSEGV, &hdl, 0);
ns3::FatalImpl::RegisterStream(), ns3::FatalImpl::UnregisterStream(), and ns3::FatalImpl::FlushStream...
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
void sigHandler(int sig)
Overrides normal SIGSEGV handler once the HandleTerminate function is run.
void FlushStreams(void)
Flush all currently registered streams.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_FUNCTION_NOARGS()
Output the name of the function.
std::list< std::ostream * > * GetStreamList(void)
Get the stream list, initializing it if necessary.
void RegisterStream(std::ostream *stream)
Register a stream to be flushed on abnormal exit.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::list< std::ostream * > ** PeekStreamList(void)
Static variable pointing to the list of output streams to be flushed on fatal errors.
void UnregisterStream(std::ostream *stream)
Unregister a stream for flushing on abnormal exit.