⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 syslog.h

📁 Unix和NT上NetWork Time网络协议(4.0版本)
💻 H
字号:
/* * Copyright (C) 2001  Internet Software Consortium. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. *//* From BIND 9 lib/isc/include/isc/: syslog.h,v 1.4 2002/08/01 03:43:31 mayer */#ifndef _SYSLOG_H#define _SYSLOG_H#include <stdio.h>/* Constant definitions for openlog() */#define LOG_PID		1#define LOG_CONS	2/* NT event log does not support facility level */#define LOG_KERN	0#define LOG_USER	0#define LOG_MAIL	0#define LOG_DAEMON	0#define LOG_AUTH	0#define LOG_SYSLOG	0#define LOG_LPR		0#define LOG_LOCAL0	0#define LOG_LOCAL1	0#define LOG_LOCAL2	0#define LOG_LOCAL3	0#define LOG_LOCAL4	0#define LOG_LOCAL5	0#define LOG_LOCAL6	0#define LOG_LOCAL7	0#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 *//* * These are ignored on NT */#define LOG_NDELAY	0	/* Open the connection to syslogd immediately */#define LOG_UPTO(pri)   ((1 << ((pri)+1)) - 1)  /* all priorities through pri */voidsyslog(int level, const char *fmt, ...);voidopenlog(const char *, int, ...);voidcloselog(void);voidModifyLogLevel(int level);intsetlogmask(int maskpri);voidInitNTLogging(FILE *, int);voidNTReportError(const char *, const char *);#endif

⌨️ 快捷键说明

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