Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals

klogprv.h File Reference

Go to the source code of this file.

Functions

int klog_new (int type, int threshold, const char *ident, klog_t **pkl)
int klog_open_mem (klog_t *kl, size_t ln_max)
int klog_open_syslog (klog_t *kl, int fac, int logopt)
int klog_open_file (klog_t *kl, const char *base, size_t npages, size_t nlines)
const char * klog_to_str (int lev)


Function Documentation

int klog_new (  int  type,
int  threshold,
const char *  ident,
klog_t **  pkl
) 
 

Definition at line 18 of file common.c.

References klog_s::ident, KLOG_ID_SZ, klog_t, klog_s::threshold, and klog_s::type.

Referenced by klog_open().

int klog_open_file (  klog_t *  kl,
const char *  base,
size_t  npages,
size_t  nlines
) 
 

Definition at line 62 of file file.c.

References klog_s::cb_clear, klog_s::cb_close, klog_s::cb_countln, klog_s::cb_flush, klog_s::cb_getln, klog_s::cb_log, klog_s::f, klog_file_t, klog_t, klog_file_s::nlines, klog_file_s::npages, klog_file_s::offset, klog_s::u, and klog_file_s::wpageid.

Referenced by klog_open().

int klog_open_mem (  klog_t *  kl,
size_t  ln_max
) 
 

Definition at line 30 of file mem.c.

References klog_mem_s::bound, klog_s::cb_clear, klog_s::cb_close, klog_s::cb_countln, klog_s::cb_flush, klog_s::cb_getln, klog_s::cb_log, klog_mem_t, klog_t, klog_s::m, klog_mem_s::nmsgs, and klog_s::u.

Referenced by klog_open().

int klog_open_syslog (  klog_t *  kl,
int  fac,
int  logopt
) 
 

Definition at line 36 of file syslog.c.

References klog_s::cb_clear, klog_s::cb_close, klog_s::cb_countln, klog_s::cb_flush, klog_s::cb_getln, klog_s::cb_log, klog_syslog_s::facility, klog_syslog_t, klog_t, klog_syslog_s::logopt, klog_s::s, and klog_s::u.

Referenced by klog_open().

const char* klog_to_str (  int  lev  ) 
 

Definition at line 51 of file common.c.


←Products
© 2005-2006 - KoanLogic S.r.l. - All rights reserved