Blame src/api/syslog.c

nsz 6a2161
#include <syslog.h>
nsz 6a2161
#define T(t) (t*)0;
nsz 6a2161
#define F(t,n) {t *y = &x.;;}
nsz 6a2161
#define C(n) switch(n){case n:;}
nsz 6a2161
static void f()
nsz 6a2161
{
nsz 6a2161
C(LOG_PID)
nsz 6a2161
C(LOG_CONS)
nsz 6a2161
C(LOG_NDELAY)
nsz 6a2161
C(LOG_ODELAY)
nsz 6a2161
C(LOG_NOWAIT)
nsz 6a2161
C(LOG_KERN)
nsz 6a2161
C(LOG_USER)
nsz 6a2161
C(LOG_MAIL)
nsz 6a2161
C(LOG_NEWS)
nsz 6a2161
C(LOG_UUCP)
nsz 6a2161
C(LOG_DAEMON)
nsz 6a2161
C(LOG_AUTH)
nsz 6a2161
C(LOG_CRON)
nsz 6a2161
C(LOG_LPR)
nsz 6a2161
C(LOG_LOCAL0)
nsz 6a2161
C(LOG_LOCAL1)
nsz 6a2161
C(LOG_LOCAL2)
nsz 6a2161
C(LOG_LOCAL3)
nsz 6a2161
C(LOG_LOCAL4)
nsz 6a2161
C(LOG_LOCAL5)
nsz 6a2161
C(LOG_LOCAL6)
nsz 6a2161
C(LOG_LOCAL7)
nsz 6a2161
{int i = LOG_MASK(0);}
nsz 6a2161
C(LOG_EMERG)
nsz 6a2161
C(LOG_ALERT)
nsz 6a2161
C(LOG_CRIT)
nsz 6a2161
C(LOG_ERR)
nsz 6a2161
C(LOG_WARNING)
nsz 6a2161
C(LOG_NOTICE)
nsz 6a2161
C(LOG_INFO)
nsz 6a2161
C(LOG_DEBUG)
nsz 0ef264
{void(*p)(void) = closelog;}
nsz 0ef264
{void(*p)(const char*,int,int) = openlog;}
nsz 0ef264
{int(*p)(int) = setlogmask;}
nsz 0ef264
{void(*p)(int,const char*,...) = syslog;}
nsz 6a2161
}