1:  /*
   2:   * vsyslog() for sites without. In order to enable this code, build with
   3:   * -Dvsyslog=myvsyslog. We use a different name so that no accidents will
   4:   * happen when vsyslog() exists. On systems with vsyslog(), syslog() is
   5:   * typically implemented in terms of vsyslog().
   6:   *
   7:   * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands.
   8:   */
   9: 
  10: #ifndef lint
  11: static char sccsid[] = "@(#) myvsyslog.c 1.1 94/12/28 17:42:33";
  12: #endif
  13: 
  14: #ifdef vsyslog
  15: 
  16: #include <stdio.h>
  17: 
  18: #include "tcpd.h"
  19: #include "mystdarg.h"
  20: 
  21: myvsyslog(severity, format, ap)
  22: int     severity;
  23: char   *format;
  24: va_list ap;
  25: {
  26:     char    fbuf[BUFSIZ];
  27:     char    obuf[3 * STRING_LENGTH];
  28: 
  29:     vsprintf(obuf, percent_m(fbuf, format), ap);
  30:     syslog(severity, "%s", obuf);
  31: }
  32: 
  33: #endif

Defined functions

myvsyslog defined in line 21; never used

Defined variables

sccsid defined in line 11; never used
Last modified: 1994-12-28
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 847
Valid CSS Valid XHTML 1.0 Strict