File nut/pro/syslog.c


Included Files


Preprocessor definitions

#define SYSLOG_MAXBUF 256

Local Variables

syslog_sock
static UDPSOCKET* syslog_sock
Used in: closelog()  
  openlog()  
  vsyslog()  
  vsyslog_P()  

syslog_port
static u_short syslog_port

Used in: setlogserver()  
  vsyslog()  
  vsyslog_P()  

syslog_fac
static int syslog_fac

Used in: openlog()  
  vsyslog()  
  vsyslog_P()  

syslog_mask
static int syslog_mask

Used in: setlogmask()  
  vsyslog()  
  vsyslog_P()  

syslog_server
static u_long syslog_server

Used in: setlogserver()  
  vsyslog()  
  vsyslog_P()  

syslog_stat
static int syslog_stat

Used in: openlog()  
  vsyslog()  
  vsyslog_P()  

syslog_taglen
static size_t syslog_taglen

Used in: closelog()  
  openlog()  
  vsyslog()  
  vsyslog_P()  

syslog_tag
static char* syslog_tag

Used in: closelog()  
  openlog()  
  vsyslog()  
  vsyslog_P()  

syslog_buf
static char* syslog_buf

Used in: closelog()  
  openlog()  
  vsyslog()  
  vsyslog_P()  

mon_name
static char mon_name[]

Used in: vsyslog()  
  vsyslog_P()  

Global Function closelog()

void closelog ( void )
Prototyped in: nut/include/sys/syslog.h
Calls: NutUdpDestroySocket(), free()
Called by: openlog() nut/pro/syslog.c
References Variables: syslog_buf nut/pro/syslog.c
  syslog_sock nut/pro/syslog.c
  syslog_tag nut/pro/syslog.c
  syslog_taglen nut/pro/syslog.c

Global Function openlog()

void openlog ( const char* ident, int logstat, int logfac )
Prototyped in: nut/include/sys/syslog.h
Calls: closelog() nut/pro/syslog.c
  NutUdpCreateSocket(), malloc(), strcpy(), strlen()
Called by: vsyslog() nut/pro/syslog.c
  vsyslog_P() nut/pro/syslog.c
References Variables: syslog_buf nut/pro/syslog.c
  syslog_fac nut/pro/syslog.c
  syslog_sock nut/pro/syslog.c
  syslog_stat nut/pro/syslog.c
  syslog_tag nut/pro/syslog.c
  syslog_taglen nut/pro/syslog.c

Global Function setlogmask()

int setlogmask ( int logmask )
Prototyped in: nut/include/sys/syslog.h
References Variables: syslog_mask nut/pro/syslog.c

Global Function setlogserver()

u_long setlogserver ( u_long ip, u_short port )
Prototyped in: nut/include/sys/syslog.h
References Variables: syslog_port nut/pro/syslog.c
  syslog_server nut/pro/syslog.c

Global Function syslog()

void syslog ( int pri, const char* fmt, ... )
Prototyped in: nut/include/sys/syslog.h
Calls: vsyslog() nut/pro/syslog.c
  __builtin_va_end(), __builtin_va_start()

Global Function syslog_P()

void syslog_P ( int pri, const prog_char* fmt, ... )
Prototyped in: nut/include/sys/syslog.h
Calls: vsyslog_P() nut/pro/syslog.c
  __builtin_va_end(), __builtin_va_start()

Global Function vsyslog()

void vsyslog ( int pri, const char* fmt, va_list ap )
Prototyped in: nut/include/sys/syslog.h
Calls: openlog() nut/pro/syslog.c
  NutUdpSendTo(), _fileno(), _write(), localtime(), sprintf(), strcat(), strlen(), time(), vsprintf()
Called by: syslog() nut/pro/syslog.c
References Variables: mon_name nut/pro/syslog.c
  syslog_buf nut/pro/syslog.c
  syslog_fac nut/pro/syslog.c
  syslog_mask nut/pro/syslog.c
  syslog_port nut/pro/syslog.c
  syslog_server nut/pro/syslog.c
  syslog_sock nut/pro/syslog.c
  syslog_stat nut/pro/syslog.c
  syslog_tag nut/pro/syslog.c
  syslog_taglen nut/pro/syslog.c

Global Function vsyslog_P()

void vsyslog_P ( int pri, const prog_char* fmt, va_list ap )
Prototyped in: nut/include/sys/syslog.h
Calls: openlog() nut/pro/syslog.c
  NutUdpSendTo(), _fileno(), _write(), localtime(), sprintf(), strcat(), strlen(), strlen_P(), time(), vsprintf_P()
Called by: syslog_P() nut/pro/syslog.c
References Variables: mon_name nut/pro/syslog.c
  syslog_buf nut/pro/syslog.c
  syslog_fac nut/pro/syslog.c
  syslog_mask nut/pro/syslog.c
  syslog_port nut/pro/syslog.c
  syslog_server nut/pro/syslog.c
  syslog_sock nut/pro/syslog.c
  syslog_stat nut/pro/syslog.c
  syslog_tag nut/pro/syslog.c
  syslog_taglen nut/pro/syslog.c