syslog.h

来自「PPPoE协议在Psos中的实现源代码」· C头文件 代码 · 共 46 行

H
46
字号
/************************************************************************/
/*                                                                      */
/*   MODULE: syslog.h                                                   */
/*   PRODUCT: pNA+, OpEN TCP/IP PPP driver                              */
/*   PURPOSE: Logging routine                                           */
/*   DATE:    28th February 1996                                        */
/*                                                                      */
/*----------------------------------------------------------------------*/
/*                                                                      */
/*              Copyright 1996, Integrated Systems Inc.                 */
/*                      ALL RIGHTS RESERVED                             */
/*                                                                      */
/*   This computer program is the property of Integrated Systems Inc.   */
/*   Santa Clara, California, U.S.A. and may not be copied              */
/*   in any form or by any means, whether in part or in whole,          */
/*   except under license expressly granted by Integrated Systems Inc.  */
/*                                                                      */
/*   All copies of this program, whether in part or in whole, and       */
/*   whether modified or not, must display this and all other           */
/*   embedded copyright and ownership notices in full.                  */
/*                                                                      */
/*----------------------------------------------------------------------*/
#ifndef _sys_syslog_h
#define _sys_syslog_h

/*
 *  Priorities (these are ordered)
 */
#define LOG_EMERG       0       /* system is unusable */
#define LOG_ALERT       1       /* action must be taken immediately */
#define LOG_CRIT        2       /* critical conditions */
#define LOG_ERR         3       /* error conditions */
#define LOG_WARNING     4       /* warning conditions */
#define LOG_NOTICE      5       /* normal but signification condition */
#define LOG_INFO        6       /* informational */
#define LOG_DEBUG       7       /* debug-level messages */

/*----------------------------------------------------------------------*/
/* prototypes                                                           */
/*----------------------------------------------------------------------*/
extern void syslog(int pri, char *fmt, ...);
extern void logprint(void *, char *, ...);
extern void ISRLOG(int pri, char *fmt, ...);

#endif /*!_sys_syslog_h*/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?