main.c File Reference

#include "services.h"
#include "timeout.h"
#include "version.h"
#include "datafiles.h"

Include dependency graph for main.c:

Go to the source code of this file.

Functions

void expire_all (void)
void save_databases (void)
static void services_restart (void)
void do_restart_services (void)
static void services_shutdown (void)
void sighandler (int signum)
int main (int ac, char **av, char **envp)
void do_backtrace (int show_segheader)

Variables

char * services_dir = SERVICES_DIR
char * log_filename = LOG_FILENAME
int debug = 0
int readonly = 0
int logchan = 0
int skeleton = 0
int nofork = 0
int forceload = 0
int nothird = 0
int noexpire = 0
int protocoldebug = 0
int quitting = 0
int delayed_quit = 0
char * quitmsg = NULL
char inbuf [BUFSIZE]
int servsock = -1
int save_data = 0
time_t start_time
char ** my_av
char ** my_envp
const char version_number [] = VERSION_STRING
const char version_number_dotted [] = VERSION_STRING_DOTTED
const char version_build []
const char version_flags [] = " " VER_DEBUG VER_OS VER_MYSQL VER_MODULE
char * mod_current_buffer
static int waiting = 0
static int started = 0


Function Documentation

void do_backtrace ( int  show_segheader  ) 

void do_restart_services ( void   ) 

Added to allow do_restart from operserv access to the static functions without making them fair game to every other function - not exactly ideal :|

Definition at line 270 of file main.c.

References expire_all(), readonly, save_databases(), and services_restart().

Referenced by do_restart().

void expire_all ( void   ) 

int main ( int  ac,
char **  av,
char **  envp 
)

void save_databases ( void   ) 

static void services_restart ( void   )  [static]

static void services_shutdown ( void   )  [static]

void sighandler ( int  signum  ) 


Variable Documentation

int debug = 0

Definition at line 39 of file main.c.

int delayed_quit = 0

Definition at line 61 of file main.c.

int forceload = 0

Definition at line 44 of file main.c.

char inbuf[BUFSIZE]

Definition at line 67 of file main.c.

char* log_filename = LOG_FILENAME

Definition at line 38 of file main.c.

int logchan = 0

Definition at line 41 of file main.c.

Definition at line 55 of file modules.c.

char** my_av

Definition at line 79 of file main.c.

Referenced by main(), and services_restart().

char ** my_envp

Definition at line 79 of file main.c.

Referenced by main(), and services_restart().

int noexpire = 0

Definition at line 46 of file main.c.

int nofork = 0

Definition at line 43 of file main.c.

int nothird = 0

Definition at line 45 of file main.c.

int protocoldebug = 0

Definition at line 47 of file main.c.

char* quitmsg = NULL

Definition at line 64 of file main.c.

int quitting = 0

Definition at line 58 of file main.c.

int readonly = 0

Definition at line 40 of file main.c.

int save_data = 0

Definition at line 73 of file main.c.

char* services_dir = SERVICES_DIR

Definition at line 37 of file main.c.

int servsock = -1

Definition at line 70 of file main.c.

int skeleton = 0

Definition at line 42 of file main.c.

time_t start_time

Definition at line 76 of file main.c.

int started = 0 [static]

Definition at line 97 of file main.c.

Referenced by main(), services_shutdown(), and sighandler().

const char version_build[]

Initial value:

    "build #" BUILD ", compiled " __DATE__ " " __TIME__

Definition at line 84 of file main.c.

const char version_flags[] = " " VER_DEBUG VER_OS VER_MYSQL VER_MODULE

Definition at line 87 of file main.c.

const char version_number[] = VERSION_STRING

Definition at line 82 of file main.c.

const char version_number_dotted[] = VERSION_STRING_DOTTED

Definition at line 83 of file main.c.

int waiting = 0 [static]

Definition at line 94 of file main.c.

Referenced by expire_all(), main(), save_databases(), and sighandler().


Generated on Sun Oct 5 09:07:06 2008 for Anope by  doxygen 1.5.7.1