2
* systlog.h - convenience header for <syslog.h>
3
* $Id: systlog.h,v 1.1 2003/01/26 09:11:31 rdenisc Exp $
5
* Feel free to use in your own GPL programs.
8
/***********************************************************************
9
* Copyright (C) 2002-2003 R�mi Denis-Courmont. *
10
* This program is free software; you can redistribute and/or modify *
11
* it under the terms of the GNU General Public License as published *
12
* by the Free Software Foundation; version 2 of the license. *
14
* This program is distributed in the hope that it will be useful, *
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
17
* See the GNU General Public License for more details. *
19
* You should have received a copy of the GNU General Pulic License *
20
* along with this program; if not, you can get it from: *
21
* http://www.gnu.org/copyleft/gpl.html *
22
***********************************************************************/
24
#ifndef __TCPREEN_SYSLOG_H
26
# define __TCPREEN_SYSLOG_H
37
void openlog (const char *ident, int option, int facility);
38
void syslog (int priority, const char *fmt, ...);
41
# define LOG_CONS 0x02
42
# define LOG_NDELAY 0x08
43
# define LOG_NOWAIT 0x10
44
# define LOG_ODELAY 0x04
45
# define LOG_PERROR 0x20
48
# define LOG_AUTH 0040
49
# define LOG_AUTHPRIV 0120
50
# define LOG_CRON 0110
51
# define LOG_DAEMON 0030
53
# define LOG_LOCAL0 0200
54
# define LOG_LOCAL1 0210
55
# define LOG_LOCAL2 0220
56
# define LOG_LOCAL3 0230
57
# define LOG_LOCAL4 0240
58
# define LOG_LOCAL5 0250
59
# define LOG_LOCAL6 0260
60
# define LOG_LOCAL7 0270
62
# define LOG_MAIL 0020
63
# define LOG_NEWS 0070
64
# define LOG_SYSLOG 0050
65
# define LOG_USER 0010
66
# define LOG_UUCP 0100
72
# define LOG_WARNING 4
80
# endif /* not HAVE_SYSLOG */
81
#endif /* not defined __TCPREEN_SYSLOG_H */