suricata
win32-syslog.h
Go to the documentation of this file.
1/**
2 * syslog.h does not exist in the mingw environment, this file replaces it
3 */
4
5/*
6 * Copyright (c) 1982, 1986, 1988, 1993
7 * The Regents of the University of California. All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions
11 * are met:
12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright
15 * notice, this list of conditions and the following disclaimer in the
16 * documentation and/or other materials provided with the distribution.
17 * 4. Neither the name of the University nor the names of its contributors
18 * may be used to endorse or promote products derived from this software
19 * without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)syslog.h 8.1 (Berkeley) 6/2/93
34 */
35
36#ifndef SURICATA_WIN32_SYSLOG_H
37#define SURICATA_WIN32_SYSLOG_H
38
39#define LOG_EMERG 0 /* system is unusable */
40#define LOG_ALERT 1 /* action must be taken immediately */
41#define LOG_CRIT 2 /* critical conditions */
42#define LOG_ERR 3 /* error conditions */
43#define LOG_WARNING 4 /* warning conditions */
44#define LOG_NOTICE 5 /* normal but significant condition */
45#define LOG_INFO 6 /* informational */
46#define LOG_DEBUG 7 /* debug-level messages */
47
48#define LOG_KERN (0<<3) /* kernel messages */
49#define LOG_USER (1<<3) /* random user-level messages */
50#define LOG_MAIL (2<<3) /* mail system */
51#define LOG_DAEMON (3<<3) /* system daemons */
52#define LOG_AUTH (4<<3) /* security/authorization messages */
53#define LOG_SYSLOG (5<<3) /* messages generated internally by syslogd */
54#define LOG_LPR (6<<3) /* line printer subsystem */
55#define LOG_NEWS (7<<3) /* network news subsystem */
56#define LOG_UUCP (8<<3) /* UUCP subsystem */
57#define LOG_CRON (9<<3) /* clock daemon */
58#define LOG_AUTHPRIV (10<<3) /* security/authorization messages (private) */
59#define LOG_FTP (11<<3) /* ftp daemon */
60
61 /* other codes through 15 reserved for system use */
62#define LOG_LOCAL0 (16<<3) /* reserved for local use */
63#define LOG_LOCAL1 (17<<3) /* reserved for local use */
64#define LOG_LOCAL2 (18<<3) /* reserved for local use */
65#define LOG_LOCAL3 (19<<3) /* reserved for local use */
66#define LOG_LOCAL4 (20<<3) /* reserved for local use */
67#define LOG_LOCAL5 (21<<3) /* reserved for local use */
68#define LOG_LOCAL6 (22<<3) /* reserved for local use */
69#define LOG_LOCAL7 (23<<3) /* reserved for local use */
70
71
72/*
73 * The current win32 implementation of syslog is dummy and does nothing.
74 */
75#define closelog()
76#define openlog(__ident, __option, __facility)
77#define setlogmask (__mask)
78#define syslog(__pri, __fmt, __param)
79
80#endif