1 /* $NetBSD: fakelog.c,v 1.4 2000/12/30 21:45:44 martin Exp $ */
4 * This module intercepts syslog() library calls and redirects their output
5 * to the standard output stream. For interactive testing.
7 * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands.
10 #include <sys/cdefs.h>
13 static char sccsid
[] = "@(#) fakelog.c 1.3 94/12/28 17:42:21";
15 __RCSID("$NetBSD: fakelog.c,v 1.4 2000/12/30 21:45:44 martin Exp $");
23 #include "percent_m.h"
30 openlog(name
, logopt
, facility
)
38 /* vsyslog - format one record */
41 vsyslog(severity
, fmt
, ap
)
48 vprintf(percent_m(buf
, fmt
), ap
);
53 /* syslog - format one record */
58 syslog(int severity
, const char *fmt
, ...)
63 vsyslog(severity
, fmt
, ap
);
67 /* closelog - dummy */