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

📄 myvsyslog.c

📁 基于TCP-WRAP原理的系统监控的c语言实现代码
💻 C
字号:
 /*  * vsyslog() for sites without. In order to enable this code, build with  * -Dvsyslog=myvsyslog. We use a different name so that no accidents will  * happen when vsyslog() exists. On systems with vsyslog(), syslog() is  * typically implemented in terms of vsyslog().  *   * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands.  */#ifndef lintstatic char sccsid[] = "@(#) myvsyslog.c 1.1 94/12/28 17:42:33";#endif#ifdef vsyslog#include <stdio.h>#include "tcpd.h"#include "mystdarg.h"myvsyslog(severity, format, ap)int     severity;char   *format;va_list ap;{    char    fbuf[BUFSIZ];    char    obuf[3 * STRING_LENGTH];    vsprintf(obuf, percent_m(fbuf, format), ap);    syslog(severity, "%s", obuf);}#endif

⌨️ 快捷键说明

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