Home | History | Annotate | Line # | Download | only in libhack
syslog.c revision 1.2
      1 #include <sys/types.h>
      2 #include <sys/syslog.h>
      3 #include <stdio.h>
      4 #include <stdarg.h>
      5 
      6 void
      7 openlog(const char *path, int opt, int fac)
      8 {
      9 }
     10 
     11 void
     12 closelog(void)
     13 {
     14 }
     15 
     16 int
     17 setlogmask(int mask)
     18 {
     19 }
     20 
     21 void
     22 syslog(int fac, const char *fmt, ...)
     23 {
     24 	va_list ap;
     25 	va_start(ap, fmt);
     26 	(void)vfprintf(stderr, fmt, ap);
     27 	va_end(ap);
     28 }
     29 
     30 void
     31 vsyslog(int fac, const char *fmt, va_list ap)
     32 {
     33 	(void)vfprintf(stderr, fmt, ap);
     34 }
     35 
     36 void
     37 _syslog(int fac, const char *fmt, ...)
     38 {
     39 	va_list ap;
     40 	va_start(ap, fmt);
     41 	(void)vfprintf(stderr, fmt, ap);
     42 	va_end(ap);
     43 }
     44 
     45 void
     46 _vsyslog(int fac, const char *fmt, va_list ap)
     47 {
     48 	(void)vfprintf(stderr, fmt, ap);
     49 }
     50