Syslog version

This commit is contained in:
simon 1997-10-15 11:27:18 +00:00
parent efa714241a
commit 715dec1ad6

13
gild.h
View file

@ -12,15 +12,21 @@
* * * *
\**************************************************************************/ \**************************************************************************/
/* $Header$ */
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>
#include <regex.h> #include <regex.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <syslog.h>
#include <linux/in.h> #include <linux/in.h>
#define GILD_NAME "gild"
#define GILD_VERSION "$Revision$"
#define GILD_ID "gild $Revision$"
#define CONFIG_PATH "/usr/local/etc/gild/gild.conf" #define CONFIG_PATH "/usr/local/etc/gild/gild.conf"
#define DEFAULT_PORT_NO 8421 #define DEFAULT_PORT_NO 8421
@ -30,10 +36,6 @@
#define STDOUT_FILENO 1 #define STDOUT_FILENO 1
#define STDERR_FILENO 2 #define STDERR_FILENO 2
#define FATAL_ERROR 1
#define NOTICE 0
#define DEBUG 1 #define DEBUG 1
#define ever (;;) #define ever (;;)
@ -55,6 +57,9 @@ void error( int severity);
char * get_handler_command( char * match); char * get_handler_command( char * match);
/* find a handler whose pattern matches match, and return it's command */ /* find a handler whose pattern matches match, and return it's command */
int log( int level, char *message);
/* hand this message over to the syslog daemon for recording */
int parse_config( char * path); int parse_config( char * path);
/* parse the config file and identify the handlers I handle */ /* parse the config file and identify the handlers I handle */