Sensix
Wireless Sensor Network Middleware



   Home


   Project Page


   Download


   CVS




 Hosted by
Get SENSIX at SourceForge.net. Fast, secure 
and Free Open Source software downloads

/home/brennan/Software/sensix/source/stacktrace.h File Reference

Provides a backtrace for exceptions. More...

#include <stdio.h>
#include <syslog.h>

Go to the source code of this file.

Defines

#define start_log(x)   openlog(x, LOG_PID | LOG_CONS, LOG_DAEMON)
#define log_info(...)   syslog(LOG_INFO, __VA_ARGS__)
#define log_error(...)   syslog(LOG_ALERT, __VA_ARGS__)
#define stop_log()   closelog()

Functions

int enable_backtrace ()


Detailed Description

Provides a backtrace for exceptions.

Revision
1.2
Author
sean_m_brennan
Date
2009/07/20 00:31:24

Definition in file stacktrace.h.


Define Documentation

#define log_error ( ...   )     syslog(LOG_ALERT, __VA_ARGS__)

Definition at line 60 of file stacktrace.h.

#define log_info ( ...   )     syslog(LOG_INFO, __VA_ARGS__)

Definition at line 59 of file stacktrace.h.

#define start_log (  )     openlog(x, LOG_PID | LOG_CONS, LOG_DAEMON)

Definition at line 58 of file stacktrace.h.

 
#define stop_log (  )     closelog()

Definition at line 61 of file stacktrace.h.


Function Documentation

int enable_backtrace (  ) 

Definition at line 126 of file stacktrace.c.


© 2008, Los Alamos National Security, LLC.