1 /* compat_syslog.h 2 * 3 * This file is part of vchanger by Josh Fisher. 4 * 5 * vchanger copyright (C) 2008-2013 Josh Fisher 6 * 7 * vchanger is free software. 8 * You may redistribute it and/or modify it under the terms of the 9 * GNU General Public License version 2, as published by the Free 10 * Software Foundation. 11 * 12 * vchanger is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15 * See the GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with vchanger. See the file "COPYING". If not, 19 * write to: The Free Software Foundation, Inc., 20 * 59 Temple Place - Suite 330, 21 * Boston, MA 02111-1307, USA. 22 */ 23 24 #ifndef _COMPAT_SYSLOG_H_ 25 #define _COMPAT_SYSLOG_H_ 26 27 28 #ifndef HAVE_SYSLOG 29 /* For systems without syslog(), provide fake one */ 30 31 #define LOG_EMERG 0 32 #define LOG_ALERT 1 33 #define LOG_CRIT 2 34 #define LOG_ERR 3 35 #define LOG_WARNING 4 36 #define LOG_NOTICE 5 37 #define LOG_INFO 6 38 #define LOG_DEBUG 7 39 #define LOG_KERN 0 40 #define LOG_USER 8 41 #define LOG_MAIL 16 42 #define LOG_DAEMON 24 43 #define LOG_AUTH 32 44 #define LOG_SYSLOG 40 45 #define LOG_LPR 48 46 #define LOG_NEWS 56 47 #define LOG_UUCP 64 48 #define LOG_CRON 72 49 #define LOG_AUTHPRIV 80 50 #define LOG_FTP 88 51 #define LOG_LOCAL0 128 52 #define LOG_LOCAL1 136 53 #define LOG_LOCAL2 144 54 #define LOG_LOCAL3 152 55 #define LOG_LOCAL4 160 56 #define LOG_LOCAL5 168 57 #define LOG_LOCAL6 176 58 #define LOG_LOCAL7 184 59 #define LOG_PID 1 60 #define LOG_CONS 2 61 #define LOG_ODELAY 4 62 #define LOG_NDELAY 8 63 #define LOG_NOWAIT 16 64 #define LOG_PERROR 32 65 66 #ifdef __cplusplus 67 extern "C" { 68 #endif 69 70 void syslog(int type, const char *fmt, ...); 71 void vsyslog(int type, const char *fmt, va_list ap); 72 void openlog(const char *app, int option, int facility); 73 void closelog(void); 74 75 #ifdef __cplusplus 76 } 77 #endif 78 #endif 79 80 #endif /* __SYSLOG_H */ 81