/* * Copyright (c) 1995, 1996 Gunther Schadow. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* * fsyslog -- fake syslog(3) functionality (though less complete) * * Copyright (c) 1995 Gunther Schadow */ #ifndef FSYSLOG_H_ #define FSYSLOG_H_ /* prevent system's syslog from being included */ #define SYSLOG_H_ #define _SYSLOG_H_ #define _SYS_SYSLOG_H_ #define _sys_syslog_h #define _SYSLOG_INCLUDED /* usually we should have been included from here */ #include #define USE_FSYSLOG #define LOG_EMERG 0 #define LOG_ALERT 1 #define LOG_CRIT 2 #define LOG_ERR 3 #define LOG_WARNING 4 #define LOG_NOTICE 5 #define LOG_INFO 6 #define LOG_DEBUG 7 #ifndef _AIX #define LOG_PID 2 #define LOG_NDELAY 1 #define LOG_USER "user" #define LOG_MAIL "mail" #define LOG_DAEMON "daemon" #define LOG_AUTH "auth" #define LOG_SYSLOG "syslog" #define LOG_LPR "lpr" #define LOG_NEWS "news" #define LOG_UUCP "uucp" #define LOG_CRON "cron" #define LOG_AUTHPRIV "authpriv" #define LOG_FTP "ftp" #define LOG_LOCAL0 "local0" #define LOG_LOCAL1 "local1" #define LOG_LOCAL2 "local2" #define LOG_LOCAL3 "local3" #define LOG_LOCAL4 "local4" #define LOG_LOCAL5 "local5" #define LOG_LOCAL6 "local6" #define LOG_LOCAL7 "local7" #define LOG_UPTO(l) l #endif extern char *logfile; __BEGIN_DECLS extern void openlog(char *tag, int flags, char *facility); extern void syslog(int pri, const char *msg, ...); extern void setlogmask(int l); __END_DECLS #endif /* FSYSLOG_H_ */