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

📄 vsyslog.c

📁 穿越防火墙技术代码
💻 C
字号:
/*port/vsyslog.cCopyright (C) 1999 Lars Brinkhoff.  See COPYING for terms and conditions.*/#include <stdio_.h>#include <syslog_.h>#include <stdarg.h>#include "config.h"#ifndef HAVE_SYSLOGvoidsyslog (int level, const char *fmt0, ...){#ifdef HAVE_VSYSLOG  va_list ap;  va_start (ap, fmt0);  vsyslog (level, fmt0, ap);  va_end (ap);#else  /* This system has neither syslog() nor vsyslog(), so do nothing. */  /* FIXME: this function could open a file and log messages in it. */#endif}#endif#ifndef HAVE_VSYSLOGvoidvsyslog (int level, const char *fmt0, va_list ap){  char buffer[512];  if (vsnprintf (buffer, sizeof buffer, fmt0, ap) > 0)    syslog (level, buffer);}#endif /* HAVE_VSYSLOG */

⌨️ 快捷键说明

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