#include "../../../include/config.h"
#include "../include/common.h"
#include "../include/io.h"
#include "../include/utils.h"
#include "../include/protoapi.h"
#include "../include/ido2db.h"
#include "../include/db.h"
#include "../include/dbhandlers.h"
Functions | |
int | ido2db_check_dbd_driver (void) |
int | ido2db_open_debug_log (void) |
int | ido2db_close_debug_log (void) |
static void * | ido2db_thread_cleanup_exit_handler (void *) |
int | main (int argc, char **argv) |
int | ido2db_process_arguments (int argc, char **argv) |
int | ido2db_process_config_file (char *filename) |
int | ido2db_process_config_var (char *arg) |
int | ido2db_initialize_variables (void) |
int | ido2db_free_program_memory (void) |
int | ido2db_check_init_reqs (void) |
int | ido2db_drop_privileges (char *user, char *group) |
int | ido2db_daemonize (void) |
int | ido2db_cleanup_socket (void) |
void | ido2db_parent_sighandler (int sig) |
void | ido2db_child_sighandler (int sig) |
int | ido2db_wait_for_connections (void) |
int | ido2db_handle_client_connection (int sd) |
int | ido2db_idi_init (ido2db_idi *idi) |
int | ido2db_check_for_client_input (ido2db_idi *idi, ido_dbuf *dbuf, pthread_t *thread_pool) |
int | ido2db_handle_client_input (ido2db_idi *idi, char *buf, pthread_t *thread_pool) |
int | ido2db_start_input_data (ido2db_idi *idi) |
int | ido2db_add_input_data_item (ido2db_idi *idi, int type, char *buf) |
int | ido2db_add_input_data_mbuf (ido2db_idi *idi, int type, int mbuf_slot, char *buf) |
int | ido2db_end_input_data (ido2db_idi *idi) |
int | ido2db_free_input_memory (ido2db_idi *idi) |
int | ido2db_free_connection_memory (ido2db_idi *idi) |
int | ido2db_convert_standard_data_elements (ido2db_idi *idi, int *type, int *flags, int *attr, struct timeval *tstamp) |
int | ido2db_convert_string_to_int (char *buf, int *i) |
int | ido2db_convert_string_to_float (char *buf, float *f) |
int | ido2db_convert_string_to_double (char *buf, double *d) |
int | ido2db_convert_string_to_long (char *buf, long *l) |
int | ido2db_convert_string_to_unsignedlong (char *buf, unsigned long *ul) |
int | ido2db_convert_string_to_timeval (char *buf, struct timeval *tv) |
int | ido2db_log_debug_info (int level, int verbosity, const char *fmt,...) |
void * | ido2db_thread_cleanup (void *data) |
int | ido2db_kill_threads (void) |
Variables | |
int | use_ssl |
int | errno |
char * | ido2db_db_tablenames [IDO2DB_MAX_DBTABLES] |
char * | ido2db_config_file = NULL |
char * | lock_file = NULL |
char * | ido2db_user = NULL |
char * | ido2db_group = NULL |
int | ido2db_sd = 0 |
int | ido2db_socket_type = IDO_SINK_UNIXSOCKET |
char * | ido2db_socket_name = NULL |
int | ido2db_tcp_port = IDO_DEFAULT_TCP_PORT |
int | ido2db_use_inetd = IDO_FALSE |
int | ido2db_show_version = IDO_FALSE |
int | ido2db_show_license = IDO_FALSE |
int | ido2db_show_help = IDO_FALSE |
int | ido2db_run_foreground = IDO_FALSE |
ido2db_dbconfig | ido2db_db_settings |
ido2db_idi | thread_idi |
pthread_t | thread_pool [1] |
time_t | ido2db_db_last_checkin_time = 0L |
char * | ido2db_debug_file = NULL |
int | ido2db_debug_level = IDO2DB_DEBUGL_NONE |
int | ido2db_debug_verbosity = IDO2DB_DEBUGV_BASIC |
FILE * | ido2db_debug_file_fp = NULL |
unsigned long | ido2db_max_debug_file_size = 0L |
int | stop_signal_detected = IDO_FALSE |
char * | sigs [35] = {"EXIT","HUP","INT","QUIT","ILL","TRAP","ABRT","BUS","FPE","KILL","USR1","SEGV","USR2","PIPE","ALRM","TERM","STKFLT","CHLD","CONT","STOP","TSTP","TTIN","TTOU","URG","XCPU","XFSZ","VTALRM","PROF","WINCH","IO","PWR","UNUSED","ZERR","DEBUG",(char *)NULL} |
int ido2db_add_input_data_item | ( | ido2db_idi * | idi, | |
int | type, | |||
char * | buf | |||
) |
int ido2db_add_input_data_mbuf | ( | ido2db_idi * | idi, | |
int | type, | |||
int | mbuf_slot, | |||
char * | buf | |||
) |
int ido2db_check_dbd_driver | ( | void | ) |
int ido2db_check_for_client_input | ( | ido2db_idi * | idi, | |
ido_dbuf * | dbuf, | |||
pthread_t * | thread_pool | |||
) |
int ido2db_check_init_reqs | ( | void | ) |
void ido2db_child_sighandler | ( | int | sig | ) |
int ido2db_cleanup_socket | ( | void | ) |
int ido2db_close_debug_log | ( | void | ) |
int ido2db_convert_standard_data_elements | ( | ido2db_idi * | idi, | |
int * | type, | |||
int * | flags, | |||
int * | attr, | |||
struct timeval * | tstamp | |||
) |
int ido2db_convert_string_to_double | ( | char * | buf, | |
double * | d | |||
) |
int ido2db_convert_string_to_float | ( | char * | buf, | |
float * | f | |||
) |
int ido2db_convert_string_to_int | ( | char * | buf, | |
int * | i | |||
) |
int ido2db_convert_string_to_long | ( | char * | buf, | |
long * | l | |||
) |
int ido2db_convert_string_to_timeval | ( | char * | buf, | |
struct timeval * | tv | |||
) |
int ido2db_convert_string_to_unsignedlong | ( | char * | buf, | |
unsigned long * | ul | |||
) |
int ido2db_daemonize | ( | void | ) |
int ido2db_drop_privileges | ( | char * | user, | |
char * | group | |||
) |
int ido2db_end_input_data | ( | ido2db_idi * | idi | ) |
int ido2db_free_connection_memory | ( | ido2db_idi * | idi | ) |
int ido2db_free_input_memory | ( | ido2db_idi * | idi | ) |
int ido2db_free_program_memory | ( | void | ) |
int ido2db_handle_client_connection | ( | int | sd | ) |
int ido2db_handle_client_input | ( | ido2db_idi * | idi, | |
char * | buf, | |||
pthread_t * | thread_pool | |||
) |
int ido2db_idi_init | ( | ido2db_idi * | idi | ) |
int ido2db_initialize_variables | ( | void | ) |
int ido2db_kill_threads | ( | void | ) |
int ido2db_log_debug_info | ( | int | level, | |
int | verbosity, | |||
const char * | fmt, | |||
... | ||||
) |
int ido2db_open_debug_log | ( | void | ) |
void ido2db_parent_sighandler | ( | int | sig | ) |
int ido2db_process_arguments | ( | int | argc, | |
char ** | argv | |||
) |
int ido2db_process_config_file | ( | char * | filename | ) |
int ido2db_process_config_var | ( | char * | arg | ) |
int ido2db_start_input_data | ( | ido2db_idi * | idi | ) |
void* ido2db_thread_cleanup | ( | void * | data | ) |
static void * ido2db_thread_cleanup_exit_handler | ( | void * | ) | [static] |
int ido2db_wait_for_connections | ( | void | ) |
int main | ( | int | argc, | |
char ** | argv | |||
) |
int errno |
char* ido2db_config_file = NULL |
time_t ido2db_db_last_checkin_time = 0L |
char* ido2db_db_tablenames[IDO2DB_MAX_DBTABLES] |
char* ido2db_debug_file = NULL |
FILE* ido2db_debug_file_fp = NULL |
int ido2db_debug_level = IDO2DB_DEBUGL_NONE |
int ido2db_debug_verbosity = IDO2DB_DEBUGV_BASIC |
char* ido2db_group = NULL |
unsigned long ido2db_max_debug_file_size = 0L |
int ido2db_run_foreground = IDO_FALSE |
int ido2db_sd = 0 |
int ido2db_show_help = IDO_FALSE |
int ido2db_show_license = IDO_FALSE |
int ido2db_show_version = IDO_FALSE |
char* ido2db_socket_name = NULL |
int ido2db_socket_type = IDO_SINK_UNIXSOCKET |
int ido2db_tcp_port = IDO_DEFAULT_TCP_PORT |
int ido2db_use_inetd = IDO_FALSE |
char* ido2db_user = NULL |
char* lock_file = NULL |
char* sigs[35] = {"EXIT","HUP","INT","QUIT","ILL","TRAP","ABRT","BUS","FPE","KILL","USR1","SEGV","USR2","PIPE","ALRM","TERM","STKFLT","CHLD","CONT","STOP","TSTP","TTIN","TTOU","URG","XCPU","XFSZ","VTALRM","PROF","WINCH","IO","PWR","UNUSED","ZERR","DEBUG",(char *)NULL} |
int stop_signal_detected = IDO_FALSE |
pthread_t thread_pool[1] |
int use_ssl |