#include <lnmstrdef.h>
Go to the source code of this file.
Functions | |
int | lnm_hash (const int length, const unsigned char *log, const unsigned long mask, unsigned long *myhash) |
int | lnm_searchlog (struct struct_lnm_ret *r, int loglen, char *logical, int tabnamlen, char *tablename) |
int | lnm_search_one (struct struct_lnm_ret *r, int loglen, char *logical, int tabnamlen, char *tablename, char *result) |
int | lnm_presearch (struct struct_lnm_ret *r, struct lnmhshs *hashtable, struct struct_nt *nt) |
int | lnm_contsearch (struct struct_lnm_ret *r, int hash, struct lnmhshs *hashtable, struct struct_nt *nt) |
int | lnm_firsttab (struct struct_lnm_ret *r, int tabnamlen, char *tablename) |
int | lnm_setup (struct struct_lnm_ret *r, struct struct_rt *RT, int tabnamlen, char *tablename, struct struct_nt *nt) |
int | lnm_table (struct struct_lnm_ret *r, struct struct_rt *rt, struct struct_nt *nt) |
int | lnm_lookup (struct struct_lnm_ret *r, struct struct_rt *rt, int loglen, char *lognam, struct struct_nt *nt) |
int | lnm_table_srch (struct struct_lnm_ret *r, struct struct_rt *rt, struct struct_nt *nt) |
int | lnm_inslogtab (struct struct_lnm_ret *r, struct _lnmb *mylnmb) |
int | lnm_delete_lnmb () |
int lnm_contsearch | ( | struct struct_lnm_ret * | r, | |
int | hash, | |||
struct lnmhshs * | hashtable, | |||
struct struct_nt * | nt | |||
) |
Definition at line 171 of file lnmsub.c.
References lnmhshs::entry, _lnmb::lnmb_b_count, struct_nt::lnmb_cur, _lnmb::lnmb_l_flink, _lnmb::lnmb_l_table, _lnmb::lnmb_t_name, lnmprintf, struct_nt::lnmth, struct_nt::loglen, struct_nt::lognam, struct_lnm_ret::mylnmb, SS__NOLOGNAM, and SS__NORMAL.
Referenced by lnm_presearch(), and lnm_searchlog().
int lnm_delete_lnmb | ( | ) |
int lnm_firsttab | ( | struct struct_lnm_ret * | r, | |
int | tabnamlen, | |||
char * | tablename | |||
) |
Definition at line 223 of file lnmsub.c.
References lnm_setup(), lnmfree, lnmmalloc, lnmprintf, struct_nt::loglen, and struct_nt::lognam.
Referenced by exe_crelnm(), and exe_crelnt().
int lnm_hash | ( | const int | length, | |
const unsigned char * | log, | |||
const unsigned long | mask, | |||
unsigned long * | myhash | |||
) |
int lnm_inslogtab | ( | struct struct_lnm_ret * | r, | |
struct _lnmb * | mylnmb | |||
) |
Definition at line 315 of file lnmsub.c.
References lnmhshs::entry, lnm_hash(), _lnmb::lnmb_b_count, _lnmb::lnmb_l_blink, _lnmb::lnmb_l_flink, _lnmb::lnmb_l_table, lnmmalloc, and lnmprintf.
Referenced by exe_crelnm(), and exe_crelnt().
int lnm_lookup | ( | struct struct_lnm_ret * | r, | |
struct struct_rt * | rt, | |||
int | loglen, | |||
char * | lognam, | |||
struct struct_nt * | nt | |||
) |
Definition at line 265 of file lnmsub.c.
References _pcb, ctl_gl_lnmhash, ctl_gl_pcb, lnm_al_dirtbl, lnm_presearch(), struct_nt::lnmb, lnmprintf, struct_nt::loglen, struct_nt::lognam, and SS__NOLOGNAM.
Referenced by lnm_setup(), and lnm_table_srch().
int lnm_presearch | ( | struct struct_lnm_ret * | r, | |
struct lnmhshs * | hashtable, | |||
struct struct_nt * | nt | |||
) |
Definition at line 156 of file lnmsub.c.
References lnm_contsearch(), lnm_hash(), lnmfree, lnmmalloc, lnmprintf, struct_nt::loglen, and struct_nt::lognam.
Referenced by lnm_lookup(), and lnm_searchlog().
int lnm_search_one | ( | struct struct_lnm_ret * | r, | |
int | loglen, | |||
char * | logical, | |||
int | tabnamlen, | |||
char * | tablename, | |||
char * | result | |||
) |
int lnm_searchlog | ( | struct struct_lnm_ret * | r, | |
int | loglen, | |||
char * | logical, | |||
int | tabnamlen, | |||
char * | tablename | |||
) |
Definition at line 99 of file lnmsub.c.
References _pcb, ctl_gl_lnmhash, ctl_gl_pcb, struct_nt::hash, kfree(), lnm_contsearch(), lnm_hash(), lnm_presearch(), lnm_setup(), lnm_table(), lnmmalloc, lnmprintf, struct_nt::loglen, and struct_nt::lognam.
Referenced by exe_trnlnm(), ioc_std_trandevnam(), search_log_prc(), and search_log_sys().
int lnm_setup | ( | struct struct_lnm_ret * | r, | |
struct struct_rt * | RT, | |||
int | tabnamlen, | |||
char * | tablename, | |||
struct struct_nt * | nt | |||
) |
Definition at line 242 of file lnmsub.c.
References struct_rt::context, struct_rt::depth, lnm_lookup(), lnm_table(), lnm_table_srch(), lnmprintf, struct_lnm_ret::mylnmb, SS__NORMAL, and struct_rt::tries.
Referenced by lnm_firsttab(), and lnm_searchlog().
int lnm_table | ( | struct struct_lnm_ret * | r, | |
struct struct_rt * | rt, | |||
struct struct_nt * | nt | |||
) |
Definition at line 258 of file lnmsub.c.
References lnm_table_srch().
Referenced by lnm_searchlog(), and lnm_setup().
int lnm_table_srch | ( | struct struct_lnm_ret * | r, | |
struct struct_rt * | rt, | |||
struct struct_nt * | nt | |||
) |
Definition at line 286 of file lnmsub.c.
References struct_rt::context, struct_rt::depth, struct_rt::flags, lnm_lookup(), lnmprintf, _lnmx::lnmx_l_flags, _lnmx::lnmx_l_index, _lnmx::lnmx_l_next, _lnmx::lnmx_l_xlen, LNMX_M_TERMINAL, _lnmx::lnmx_t_xlation, struct_lnm_ret::mylnmb, SS__NORMAL, SS__TOOMANYLNAM, and struct_rt::tries.
Referenced by lnm_setup(), and lnm_table().