original files of m241
This commit is contained in:
@@ -0,0 +1,132 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: syslog.h,v $ $Revision: 1.3 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/sys/syslog.h,v $
|
||||
* $Author: lob $ $Date: 2010-12-16 11:02:03 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_SYS_SYSLOG_H
|
||||
#define IP_SYS_SYSLOG_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "stdarg.h"
|
||||
|
||||
#include "ipcom_syslog.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define LOG_DAEMON IPCOM_LOG_DAEMON
|
||||
|
||||
#define LOG_CONS IP_LOG_CONS
|
||||
#define LOG_PID IP_LOG_PID
|
||||
#define LOG_NDELAY 0
|
||||
|
||||
#define LOG_EMERG IPCOM_LOG_EMERG
|
||||
#define LOG_ALERT IPCOM_LOG_CRIT
|
||||
#define LOG_CRIT IPCOM_LOG_CRIT
|
||||
#define LOG_ERR IPCOM_LOG_ERR
|
||||
#define LOG_WARNING IPCOM_LOG_WARNING
|
||||
#define LOG_NOTICE IPCOM_LOG_NOTICE
|
||||
#define LOG_INFO IPCOM_LOG_INFO
|
||||
#define LOG_DEBUG IPCOM_LOG_DEBUG
|
||||
|
||||
#define LOG_KERN IPCOM_LOG_INFO
|
||||
#define LOG_USER IPCOM_LOG_INFO
|
||||
#define LOG_MAIL IPCOM_LOG_INFO
|
||||
#define LOG_AUTH IPCOM_LOG_INFO
|
||||
#define LOG_SYSLOG IPCOM_LOG_INFO
|
||||
#define LOG_LPR IPCOM_LOG_INFO
|
||||
#define LOG_NEWS IPCOM_LOG_INFO
|
||||
#define LOG_UUCP IPCOM_LOG_INFO
|
||||
#define LOG_CRON IPCOM_LOG_INFO
|
||||
#define LOG_LOCAL0 IPCOM_LOG_INFO
|
||||
#define LOG_LOCAL1 IPCOM_LOG_INFO
|
||||
#define LOG_LOCAL2 IPCOM_LOG_INFO
|
||||
#define LOG_LOCAL3 IPCOM_LOG_INFO
|
||||
#define LOG_LOCAL4 IPCOM_LOG_INFO
|
||||
#define LOG_LOCAL5 IPCOM_LOG_INFO
|
||||
#define LOG_LOCAL6 IPCOM_LOG_INFO
|
||||
#define LOG_LOCAL7 IPCOM_LOG_INFO
|
||||
|
||||
|
||||
#define LOG_MASK IPCOM_LOG_UPTO /* A noop */
|
||||
#define LOG_UPTO IPCOM_LOG_UPTO /* Not provided */
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef IPCOM_USE_SYSLOG
|
||||
#define openlog ipcom_openlog
|
||||
#define closelog ipcom_closelog
|
||||
#define syslog ipcom_syslog
|
||||
#define setlogmask(pm) ipcom_setlogmask_on(pm, 0)
|
||||
|
||||
#elif defined(IPCOM_SYSLOG)
|
||||
#define openlog(a,b,c) IP_NOOP
|
||||
#define closelog() IP_NOOP
|
||||
#define syslog IPCOM_SYSLOG
|
||||
#define setlogmask(pm) IP_NOOP
|
||||
|
||||
#else
|
||||
#define openlog(a,b,c) IP_NOOP
|
||||
#define closelog() IP_NOOP
|
||||
#define syslog ipcom_syslog /* should be a no-op. how? */
|
||||
#define setlogmask(pm) IP_NOOP
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
Reference in New Issue
Block a user