Actually hook powernow.4 into the build.
[dragonfly.git] / contrib / tcp_wrappers / fakelog.c
blobfa9e06e1a20d47188b7eeb2d949dac68c589849d
1 /*
2 * This module intercepts syslog() library calls and redirects their output
3 * to the standard output stream. For interactive testing.
4 *
5 * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands.
6 */
8 #ifndef lint
9 static char sccsid[] = "@(#) fakelog.c 1.3 94/12/28 17:42:21";
10 #endif
12 #include <stdio.h>
14 #include "mystdarg.h"
16 /* openlog - dummy */
18 /* ARGSUSED */
20 openlog(name, logopt, facility)
21 char *name;
22 int logopt;
23 int facility;
25 /* void */
28 /* vsyslog - format one record */
30 vsyslog(severity, fmt, ap)
31 int severity;
32 char *fmt;
33 va_list ap;
35 char buf[BUFSIZ];
37 vprintf(percent_m(buf, fmt), ap);
38 printf("\n");
39 fflush(stdout);
42 /* syslog - format one record */
44 /* VARARGS */
46 VARARGS(syslog, int, severity)
48 va_list ap;
49 char *fmt;
51 VASTART(ap, int, severity);
52 fmt = va_arg(ap, char *);
53 vsyslog(severity, fmt, ap);
54 VAEND(ap);
57 /* closelog - dummy */
59 closelog()
61 /* void */