Ring Daemon 16.0.0
Loading...
Searching...
No Matches
winsyslog.h File Reference
Include dependency graph for winsyslog.h:

Go to the source code of this file.

Macros

#define strerror_r(errno, buf, len)   strerror_s(buf, len, errno)
 
#define WIN32_LEAN_AND_MEAN   1
 
#define WINLOG_AUTH   (4 << 3)
 
#define WINLOG_AUTHPRIV   (10 << 3)
 
#define WINLOG_CONS   0x02 /* log on the console if errors in sending */
 
#define WINLOG_CRON   (9 << 3)
 
#define WINLOG_DAEMON   (3 << 3)
 
#define WINLOG_FAC(p)   (((p) &WINLOG_FACMASK) >> 3)
 
#define WINLOG_FACMASK   0x03f8
 
#define WINLOG_KERN   (0 << 3)
 
#define WINLOG_LPR   (6 << 3)
 
#define WINLOG_MAIL   (2 << 3)
 
#define WINLOG_MAKEPRI(fac, pri)   (((fac) << 3) | (pri))
 
#define WINLOG_MASK(pri)   (1 << (pri))
 
#define WINLOG_NDELAY   0x08 /* don't delay open */
 
#define WINLOG_NEWS   (7 << 3)
 
#define WINLOG_NFACILITIES   10
 
#define WINLOG_NOWAIT   0x10 /* don't wait for console forks: DEPRECATED */
 
#define WINLOG_ODELAY   0x04 /* delay open until first syslog() (default) */
 
#define WINLOG_PERROR   0x20 /* log to stderr as well */
 
#define WINLOG_PID   0x01 /* log the pid with each message */
 
#define WINLOG_PRI(p)   ((p) &WINLOG_PRIMASK)
 
#define WINLOG_PRIMASK   0x07
 
#define WINLOG_SYSLOG   (5 << 3)
 
#define WINLOG_UPTO(pri)   ((1 << ((pri) + 1)) - 1)
 
#define WINLOG_USER   (1 << 3)
 
#define WINLOG_UUCP   (8 << 3)
 

Functions

void closelog (void)
 
void openlog (const char *, int, int)
 
void syslog (int, const char *,...)
 

Macro Definition Documentation

◆ strerror_r

#define strerror_r (   errno,
  buf,
  len 
)    strerror_s(buf, len, errno)

Definition at line 65 of file winsyslog.h.

◆ WIN32_LEAN_AND_MEAN

#define WIN32_LEAN_AND_MEAN   1

Definition at line 24 of file winsyslog.h.

◆ WINLOG_AUTH

#define WINLOG_AUTH   (4 << 3)

Definition at line 37 of file winsyslog.h.

◆ WINLOG_AUTHPRIV

#define WINLOG_AUTHPRIV   (10 << 3)

Definition at line 43 of file winsyslog.h.

◆ WINLOG_CONS

#define WINLOG_CONS   0x02 /* log on the console if errors in sending */

Definition at line 59 of file winsyslog.h.

◆ WINLOG_CRON

#define WINLOG_CRON   (9 << 3)

Definition at line 42 of file winsyslog.h.

◆ WINLOG_DAEMON

#define WINLOG_DAEMON   (3 << 3)

Definition at line 36 of file winsyslog.h.

◆ WINLOG_FAC

#define WINLOG_FAC (   p)    (((p) &WINLOG_FACMASK) >> 3)

Definition at line 47 of file winsyslog.h.

◆ WINLOG_FACMASK

#define WINLOG_FACMASK   0x03f8

Definition at line 46 of file winsyslog.h.

◆ WINLOG_KERN

#define WINLOG_KERN   (0 << 3)

Definition at line 33 of file winsyslog.h.

◆ WINLOG_LPR

#define WINLOG_LPR   (6 << 3)

Definition at line 39 of file winsyslog.h.

◆ WINLOG_MAIL

#define WINLOG_MAIL   (2 << 3)

Definition at line 35 of file winsyslog.h.

◆ WINLOG_MAKEPRI

#define WINLOG_MAKEPRI (   fac,
  pri 
)    (((fac) << 3) | (pri))

Definition at line 31 of file winsyslog.h.

◆ WINLOG_MASK

#define WINLOG_MASK (   pri)    (1 << (pri))

Definition at line 49 of file winsyslog.h.

◆ WINLOG_NDELAY

#define WINLOG_NDELAY   0x08 /* don't delay open */

Definition at line 61 of file winsyslog.h.

◆ WINLOG_NEWS

#define WINLOG_NEWS   (7 << 3)

Definition at line 40 of file winsyslog.h.

◆ WINLOG_NFACILITIES

#define WINLOG_NFACILITIES   10

Definition at line 45 of file winsyslog.h.

◆ WINLOG_NOWAIT

#define WINLOG_NOWAIT   0x10 /* don't wait for console forks: DEPRECATED */

Definition at line 62 of file winsyslog.h.

◆ WINLOG_ODELAY

#define WINLOG_ODELAY   0x04 /* delay open until first syslog() (default) */

Definition at line 60 of file winsyslog.h.

◆ WINLOG_PERROR

#define WINLOG_PERROR   0x20 /* log to stderr as well */

Definition at line 63 of file winsyslog.h.

◆ WINLOG_PID

#define WINLOG_PID   0x01 /* log the pid with each message */

Definition at line 58 of file winsyslog.h.

◆ WINLOG_PRI

#define WINLOG_PRI (   p)    ((p) &WINLOG_PRIMASK)

Definition at line 30 of file winsyslog.h.

◆ WINLOG_PRIMASK

#define WINLOG_PRIMASK   0x07

Definition at line 28 of file winsyslog.h.

◆ WINLOG_SYSLOG

#define WINLOG_SYSLOG   (5 << 3)

Definition at line 38 of file winsyslog.h.

◆ WINLOG_UPTO

#define WINLOG_UPTO (   pri)    ((1 << ((pri) + 1)) - 1)

Definition at line 50 of file winsyslog.h.

◆ WINLOG_USER

#define WINLOG_USER   (1 << 3)

Definition at line 34 of file winsyslog.h.

◆ WINLOG_UUCP

#define WINLOG_UUCP   (8 << 3)

Definition at line 41 of file winsyslog.h.

Function Documentation

◆ closelog()

void closelog ( void  )
extern

◆ openlog()

void openlog ( const char *  ,
int  ,
int   
)
extern

Referenced by jami::SysLog::SysLog().

◆ syslog()

void syslog ( int  ,
const char *  ,
  ... 
)
extern

Referenced by jami::SysLog::consume().