27 #ifndef ENFORCER_DAEMON_UTIL_H 28 #define ENFORCER_DAEMON_UTIL_H 49 #if defined(HAVE_SYSLOG_R) && defined(HAVE_OPENLOG_R) && defined(HAVE_CLOSELOG_R) && defined(HAVE_VSYSLOG_R) 50 extern struct syslog_data sdata;
54 #undef HAVE_CLOSELOG_R 59 void log_init(
int facility,
const char *program_name);
60 void log_switch(
int facility,
const char *facility_name,
const char *program_name,
int verbose);
64 void log_xml_warn(
void *ignore,
const char *format, ...);
void log_msg(DAEMONCONFIG *config, int priority, const char *format,...)
void log_switch(int facility, const char *facility_name, const char *program_name, int verbose)
void log_init(int facility, const char *program_name)
void log_xml_error(void *ignore, const char *format,...)
void log_xml_warn(void *ignore, const char *format,...)
int createPidDir(DAEMONCONFIG *config)
int get_log_user(const char *username, int *usernumber)
int release_lite_lock(FILE *lock_fd)
void ksm_log_msg(const char *format)
int ReadConfig(DAEMONCONFIG *config, int verbose)
void cmdlParse(DAEMONCONFIG *, int *, char **)
int writepid(DAEMONCONFIG *config)
int make_directory(DAEMONCONFIG *config, const char *path)
int getPermsForDrop(DAEMONCONFIG *config)
int get_lite_lock(char *lock_filename, FILE *lock_fd)