Anope IRC Services  Version 1.8
Functions | Variables
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 279 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 38 of file main.c.

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

int delayed_quit = 0

Definition at line 60 of file main.c.

Referenced by main().

int forceload = 0

Definition at line 43 of file main.c.

char inbuf[BUFSIZE]

Definition at line 66 of file main.c.

Referenced by main(), and sighandler().

char* log_filename = LOG_FILENAME

Definition at line 37 of file main.c.

int logchan = 0

Definition at line 40 of file main.c.

char* mod_current_buffer

Definition at line 54 of file modules.c.

Referenced by moduleGetLastBuffer(), and services_shutdown().

char** my_av

Definition at line 78 of file main.c.

Referenced by main(), and services_restart().

char ** my_envp

Definition at line 78 of file main.c.

Referenced by main(), and services_restart().

int noexpire = 0

Definition at line 45 of file main.c.

Referenced by expire_all().

int nofork = 0

Definition at line 42 of file main.c.

Referenced by sighandler().

int nothird = 0

Definition at line 44 of file main.c.

int protocoldebug = 0

Definition at line 46 of file main.c.

char* quitmsg = NULL

Definition at line 63 of file main.c.

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

int quitting = 0

Definition at line 57 of file main.c.

Referenced by main(), and sighandler().

int readonly = 0

Definition at line 39 of file main.c.

Referenced by do_restart_services(), expire_all(), main(), save_databases(), and services_restart().

int save_data = 0

Definition at line 72 of file main.c.

Referenced by main().

char* services_dir = SERVICES_DIR

Definition at line 36 of file main.c.

int servsock = -1

Definition at line 69 of file main.c.

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

int skeleton = 0

Definition at line 41 of file main.c.

Referenced by expire_all(), and save_databases().

time_t start_time

Definition at line 75 of file main.c.

int started = 0
static

Definition at line 96 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 83 of file main.c.

Referenced by do_backtrace().

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

Definition at line 86 of file main.c.

Referenced by do_backtrace().

const char version_number[] = VERSION_STRING

Definition at line 81 of file main.c.

Referenced by do_backtrace().

const char version_number_dotted[] = VERSION_STRING_DOTTED

Definition at line 82 of file main.c.

int waiting = 0
static

Definition at line 93 of file main.c.

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