Included Files
- #include <mplib1/cfg_file.h>
- #include <mplib1/fprintfile.h>
- #include <mplib1/timestamp.h>
- #include <mplib1/fgetline.h>
- #include <mplib1/match_tok.h>
- #include <mplib1/pid_check.h>
- #include <mplib1/bpo_queue.h>
- #include <mplib1/mplib1_config.h>
- #include <mplib1/bpo_lock.h>
- #include <mplib1/bpo_list.h>
- #include <mplib1/bpo_init.h>
- #include <mplib1/bpo_alloc.h>
- #include <mplib1/bpo_proc.h>
- #include <mplib1/daemon.h>
- enum comm_actions
- {
- CA_SHUTDOWN;
- CA_INCLUDE;
- CA_EXCLUDE;
- CA_CREATE;
- CA_UPDATE;
- CA_FORGET;
- CA_DELETE;
- CA_KILL;
- CA_LIST;
- CA_TICKLE;
- CA_WAIT;
- CA_DUMP;
- CA_LOAD;
- CA_SAVE;
- CA_SLEEP;
- CA_SIGNAL;
- CA_RESTART;
- CA_RUN;
- CA_BOUNCE;
- CA_CLEANUP;
- CA_DEBUG;
- }
- enum wait_actions
- {
- WA_KILL;
- WA_START;
- WA_TILL;
- WA_BATCH;
- }
- struct wait_job
- {
- Node wj_Node;
- int wait_for;
- time_t wait_till;
- struct watchdog_ctrl_msg* cmp;
- struct program_hdr* pptr;
- }
Local Variables
ctrl_q_name
static char ctrl_q_name[]
- Used in:
-
ctrl_comms
static struct match_token ctrl_comms[]
- Used in:
-
wait_comms
static struct match_token wait_comms[]
- Used in:
-
signal_comms
static struct match_token signal_comms[]
- Used in:
-
watch_ctrl_debug
static int watch_ctrl_debug
- Used in:
-
watch_wait_debug
static int watch_wait_debug
- Used in:
-
the_signal
static int the_signal
- Used in:
-
wait_list
static List wait_list
- Used in:
-
dt_tm_iso8601
static const char dt_tm_iso8601[]
- Used in:
-
int create_watch_queues ( const void* comms_hint )
- Prototyped in:
-
- Calls:
- Init_List(), fprintfile(), mpCreateQ()
- Called by:
-
- References Variables:
-
int delete_watch_queues ( const void* comms_hint )
- Prototyped in:
-
- Calls:
-
- Called by:
-
- References Functions:
-
- References Variables:
-
int dump_db_to_file ( const char* fname )
- Prototyped in:
-
- Calls:
-
- Called by:
-
- References Functions:
-
int exclude_named_level ( const char* lvl_nm )
- Prototyped in:
-
- Calls:
-
- Called by:
-
- References Variables:
-
int read_file_into_db ( const char* fname )
- Prototyped in:
-
- Calls:
-
- Called by:
-
int watch_ctrl ( const void* comms_hint )
- Prototyped in:
-
- Calls:
-
- Called by:
-
- References Functions:
-
- References Variables:
-
static struct watchdog_ctrl_msg* add_wait_job ( struct watchdog_ctrl_msg* cmp, int action, const char* details )
- Calls:
-
- Called by:
-
- References Variables:
-
static void check_all_wait_jobs ( void )
- Calls:
- Walk_List(), get_private_flag()
- Called by:
-
- References Functions:
-
- References Variables:
-
static void check_wait_job ( struct wait_job* wjp )
- Calls:
-
- Called by:
-
- Used in:
-
- References Variables:
-
static int forget_level ( const char* lvl_nm, char* active, int db_save )
- Calls:
-
- Used in:
-
- References Variables:
-
static int forget_program ( const char* prg_nm, char* active, int db_save, int ptype )
- Calls:
-
- Used in:
-
- References Variables:
-
static void free_ctrl_msg ( struct watchdog_ctrl_msg* cmp )
- Calls:
- bpo_Remove_Node(), shfree()
- Called by:
-
static void free_wait_job ( struct wait_job* wjp )
- Calls:
-
- Called by:
-
- Used in:
-
static int level_bounce ( const char* lvl_nm, char* cp, int db_save )
- Calls:
-
- Used in:
-
- References Functions:
-
- References Variables:
-
static int level_excl ( const char* lvl_nm, char* cp, int db_save )
- Calls:
-
- Used in:
-
- References Variables:
-
static int level_incl ( const char* lvl_nm, char* cp, int db_save )
- Calls:
-
- Used in:
-
- References Variables:
-
static int level_signal ( const char* lvl_nm, char* cp, int db_save )
- Calls:
-
- Used in:
-
- References Functions:
-
static void pid_details ( struct pid_track* ptp, FILE* fp )
- Calls:
- fprintf(), gen_pid_str(), gmtime(), strftime()
- Used in:
-
- References Variables:
-
static void print_prg_debug ( struct program_hdr* pptr, FILE* fp )
- Calls:
- Walk_List(), fprintf(), gmtime(), strftime()
- Used in:
-
- References Functions:
-
- References Variables:
-
static int process_line ( char* parsep, level_func_t level_func, prog_func_t prog_func, int db_save, char* rbuf, const char* OK_str, const char* BAD_str, const char* info_str )
- Calls:
-
- Called by:
-
static int program_bounce ( const char* prg_nm, char* active, int db_save, int ptype )
- Calls:
-
- Used in:
-
- References Variables:
-
static int program_excl ( const char* prg_nm, char* cp, int db_save, int ptype )
- Calls:
-
- Used in:
-
- References Variables:
-
static int program_incl ( const char* prg_nm, char* cp, int db_save, int ptype )
- Calls:
-
- Used in:
-
- References Variables:
-
static int program_signal ( const char* prg_nm, char* cp, int db_save, int ptype )
- Calls:
-
- Used in:
-
static int reply_control_msg ( struct watchdog_ctrl_msg* cmp )
- Calls:
-
- Called by:
-
static int run_this_batch ( const char* prg_name )
- Calls:
-
- Called by:
-
static struct watchdog_ctrl_msg* send_back_control_msg ( struct watchdog_ctrl_msg* cmp )
- Calls:
- fprintfile(), mpReplyMsg(), strlen()
- Called by:
-
static int set_lvl_state ( const char* lvl_nm, int active )
- Calls:
-
- Called by:
-
static int set_prg_state ( const char* prg_nm, int active )
- Calls:
-
- Called by:
-
static char* signal_name ( int the_signal )
- Called by:
-
- References Variables:
-
static void signal_pptr ( struct program_hdr* pptr )
- Calls:
-
- Called by:
-
- Used in:
-
- References Functions:
-
- References Variables:
-
static int signal_things ( int wait_signal, char* parsep )
- Calls:
-
- Called by:
-
- References Functions:
-
- References Variables:
-
static int signal_this ( struct pid_track* ptp, int the_signal )
- Calls:
-
- Used in:
-
static int try_killing ( char* parsep )
- Calls:
-
- Called by:
-
static void watchdog_debug ( char* debug_line, char* reply )
- Calls:
-
- Called by:
-
- References Functions:
-