| 1 | #ifndef _system_syslog_h
 | 
|---|
| 2 | #define _system_syslog_h
 | 
|---|
| 3 | /* 
 | 
|---|
| 4 |    Unix SMB/CIFS implementation.
 | 
|---|
| 5 | 
 | 
|---|
| 6 |    syslog system include wrappers
 | 
|---|
| 7 | 
 | 
|---|
| 8 |    Copyright (C) Andrew Tridgell 2004
 | 
|---|
| 9 |    
 | 
|---|
| 10 |      ** NOTE! The following LGPL license applies to the replace
 | 
|---|
| 11 |      ** library. This does NOT imply that all of Samba is released
 | 
|---|
| 12 |      ** under the LGPL
 | 
|---|
| 13 |    
 | 
|---|
| 14 |    This library is free software; you can redistribute it and/or
 | 
|---|
| 15 |    modify it under the terms of the GNU Lesser General Public
 | 
|---|
| 16 |    License as published by the Free Software Foundation; either
 | 
|---|
| 17 |    version 3 of the License, or (at your option) any later version.
 | 
|---|
| 18 | 
 | 
|---|
| 19 |    This library is distributed in the hope that it will be useful,
 | 
|---|
| 20 |    but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
|---|
| 21 |    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 | 
|---|
| 22 |    Lesser General Public License for more details.
 | 
|---|
| 23 | 
 | 
|---|
| 24 |    You should have received a copy of the GNU Lesser General Public
 | 
|---|
| 25 |    License along with this library; if not, see <http://www.gnu.org/licenses/>.
 | 
|---|
| 26 | 
 | 
|---|
| 27 | */
 | 
|---|
| 28 | 
 | 
|---|
| 29 | #ifdef HAVE_SYSLOG_H
 | 
|---|
| 30 | #include <syslog.h>
 | 
|---|
| 31 | #else
 | 
|---|
| 32 | #ifdef HAVE_SYS_SYSLOG_H
 | 
|---|
| 33 | #include <sys/syslog.h>
 | 
|---|
| 34 | #endif
 | 
|---|
| 35 | #endif
 | 
|---|
| 36 | 
 | 
|---|
| 37 | /* For sys_adminlog(). */
 | 
|---|
| 38 | #ifndef LOG_EMERG
 | 
|---|
| 39 | #define LOG_EMERG       0       /* system is unusable */
 | 
|---|
| 40 | #endif
 | 
|---|
| 41 | 
 | 
|---|
| 42 | #ifndef LOG_ALERT
 | 
|---|
| 43 | #define LOG_ALERT       1       /* action must be taken immediately */
 | 
|---|
| 44 | #endif
 | 
|---|
| 45 | 
 | 
|---|
| 46 | #ifndef LOG_CRIT
 | 
|---|
| 47 | #define LOG_CRIT        2       /* critical conditions */
 | 
|---|
| 48 | #endif
 | 
|---|
| 49 | 
 | 
|---|
| 50 | #ifndef LOG_ERR
 | 
|---|
| 51 | #define LOG_ERR         3       /* error conditions */
 | 
|---|
| 52 | #endif
 | 
|---|
| 53 | 
 | 
|---|
| 54 | #ifndef LOG_WARNING
 | 
|---|
| 55 | #define LOG_WARNING     4       /* warning conditions */
 | 
|---|
| 56 | #endif
 | 
|---|
| 57 | 
 | 
|---|
| 58 | #ifndef LOG_NOTICE
 | 
|---|
| 59 | #define LOG_NOTICE      5       /* normal but significant condition */
 | 
|---|
| 60 | #endif
 | 
|---|
| 61 | 
 | 
|---|
| 62 | #ifndef LOG_INFO
 | 
|---|
| 63 | #define LOG_INFO        6       /* informational */
 | 
|---|
| 64 | #endif
 | 
|---|
| 65 | 
 | 
|---|
| 66 | #ifndef LOG_DEBUG
 | 
|---|
| 67 | #define LOG_DEBUG       7       /* debug-level messages */
 | 
|---|
| 68 | #endif
 | 
|---|
| 69 | 
 | 
|---|
| 70 | #endif
 | 
|---|