File modules/ut/memwrap.c

  $Revision: 1.7 $

Utilities (ut). memwrap.c - memory allocation wrappers. Facilitate easy changing a memory allocation library and provide uniform error codes.
Status: NOT REVUED, TESTED,
Design and implementation by: Marek Bukowy

Included Files


Global Function wr_real_calloc()

er_ret_t wr_real_calloc ( void** ptr, size_t num, size_t size, char* comment, int line )
Calls: calloc()
Called by: AC_findcreate_acl_l()modules/ac/access_control.c
  CO_set()modules/co/constants.c
  IP_rang_decomp()modules/ip/ip.c
  IP_rang_t2b()modules/ip/ip.c
  MA_to_string()modules/ma/bitmask.c
  QC_create()modules/qc/query_command.c
  QC_environ_new()modules/qc/query_command.c
  QC_fill()modules/qc/query_command.c
  QI_new()modules/qi/query_instructions.c
  RP_uni_node_l()modules/rp/rp_update.c
  RX_bin_search()modules/rx/rx_search.c
  TH_run()modules/th/thread.c
  add_property()modules/pr/properties.c
  rx_asc_append_datref()modules/rx/rx_search.c
  rx_creat_node()modules/rx/rx_node.c
  rx_nod_append()modules/rx/rx_search.c

Global Function wr_real_clear_list()

void wr_real_clear_list ( GList** list, char* comment, int line )
Calls: g_list_foreach(), g_list_free()
Called by: AC_asc_ban_set()modules/ac/access_control.c
  AC_findcreate_account_l()modules/ac/access_control.c
  AC_findcreate_acl_l()modules/ac/access_control.c
  AC_findexless_acl_l()modules/ac/access_control.c
  IP_smart_range()modules/ip/ip.c
  RP_asc_search()modules/rp/rp_search.c
  RX_bin_search()modules/rx/rx_search.c
  RX_in_node()modules/rx/rx_node.c
  insert_radix_serials()modules/qi/query_instructions.c
  rx_asc_make_preflist()modules/rx/rx_search.c
  rx_bin_node()modules/rx/rx_node.c
  write_radix_immediate()modules/qi/query_instructions.c
References Functions: wr_free_list_element()modules/ut/memwrap.c

Global Function wr_real_free()

er_ret_t wr_real_free ( void* ptr, char* comment, int line )
Calls: fprintf(), free()
Called by: AC_acc_load()modules/ac/access_control.c
  AC_acl_sql()modules/ac/access_control.c
  AC_rxwalkhook_print()modules/ac/access_control.c
  AC_rxwalkhook_print_acl()modules/ac/access_control.c
  CO_set()modules/co/constants.c
  CO_to_string()modules/co/constants.c
  IP_rang_t2b()modules/ip/ip.c
  IP_smart_conv()modules/ip/ip.c
  PW_interact()modules/pw/protocol_whois.c
  QC_environ_free()modules/qc/query_command.c
  QC_environ_to_string()modules/qc/query_command.c
  QC_fill()modules/qc/query_command.c
  QC_free()modules/qc/query_command.c
  QC_query_command_to_string()modules/qc/query_command.c
  QI_execute()modules/qi/query_instructions.c
  QI_free()modules/qi/query_instructions.c
  QI_new()modules/qi/query_instructions.c
  RP_tree_add()modules/rp/rp_tree.c
  RP_uni_node_l()modules/rp/rp_update.c
  SQ_get_table_size()modules/sq/mysql_driver.c
  command_execute()modules/pc/protocol_config.c
  command_help()modules/pc/protocol_config.c
  command_sql()modules/pc/protocol_config.c
  insert_radix_serials()modules/qi/query_instructions.c
  instruction_free()modules/qi/query_instructions.c
  log_command()modules/qc/query_command.c
  make_sql2pack()modules/rp/rp_load.c
  process_input()modules/pc/protocol_config.c
  purge_properties()modules/pr/properties.c
  rx_delete_node()modules/rx/rx_node.c
  set_const()modules/pc/protocol_config.c
  show_access()modules/pc/protocol_config.c
  show_acl()modules/pc/protocol_config.c
  show_const()modules/pc/protocol_config.c
  wr_free_list_element()modules/ut/memwrap.c
  write_radix_immediate()modules/qi/query_instructions.c
  write_results()modules/qi/query_instructions.c

Global Function wr_real_malloc()

er_ret_t wr_real_malloc ( void** ptr, size_t size, char* comment, int line )
Calls: malloc()
Called by: AC_acc_load()modules/ac/access_control.c
  AC_acl_sql()modules/ac/access_control.c
  AC_acl_to_string()modules/ac/access_control.c
  AC_acl_to_string_header()modules/ac/access_control.c
  AC_credit_to_string()modules/ac/access_control.c
  AC_findcreate_account_l()modules/ac/access_control.c
  AC_to_string()modules/ac/access_control.c
  AC_to_string_header()modules/ac/access_control.c
  CO_set()modules/co/constants.c
  CO_sources_list_to_string()modules/co/constants.c
  CO_sources_to_string()modules/co/constants.c
  CO_to_string()modules/co/constants.c
  DF_attributes_to_string()modules/df/defs.c
  IP_rang_decomp()modules/ip/ip.c
  IP_smart_conv()modules/ip/ip.c
  PR_get_property()modules/pr/properties.c
  PR_load()modules/pr/properties.c
  PR_set()modules/pr/properties.c
  PR_to_string()modules/pr/properties.c
  QC_environ_to_string()modules/qc/query_command.c
  QC_fill()modules/qc/query_command.c
  QC_query_command_to_string()modules/qc/query_command.c
  RP_tree_add()modules/rp/rp_tree.c
  RP_uni_node_l()modules/rp/rp_update.c
  RX_tree_cre()modules/rx/rx_tree.c
  SK_getpeername()modules/sk/socket.c
  SQ_get_column_label()modules/sq/mysql_driver.c
  SQ_get_column_string()modules/sq/mysql_driver.c
  SQ_get_column_strings()modules/sq/mysql_driver.c
  SQ_info_to_string()modules/sq/mysql_driver.c
  SQ_result_to_string()modules/sq/mysql_driver.c
  TH_to_string()modules/th/thread.c
  add_property()modules/pr/properties.c
  authenticate_user()modules/pc/protocol_config.c
  command_execute()modules/pc/protocol_config.c
  command_help()modules/pc/protocol_config.c
  command_sql()modules/pc/protocol_config.c
  create_query()modules/qi/query_instructions.c
  fast_output()modules/qi/query_instructions.c
  filter()modules/qi/query_instructions.c
  make_sql2pack()modules/rp/rp_load.c
  set_const()modules/pc/protocol_config.c
  show_boolean()modules/co/constants.c
  show_commands()modules/pc/protocol_config.c
  show_const()modules/pc/protocol_config.c
  show_int()modules/co/constants.c
  show_string()modules/co/constants.c
  wr_string()modules/ut/memwrap.c

Global Function wr_real_realloc()

er_ret_t wr_real_realloc ( void** ptr, void* oldptr, size_t size, char* comment, int line )
Calls: realloc()
Called by: QI_queries_to_string()modules/qi/query_instructions.c

Global Function wr_string()

char* wr_string ( char* text )
Calls: wr_real_malloc()modules/ut/memwrap.c
  strcpy(), strlen()
Called by: set_ban()modules/pc/protocol_config.c
  show_access()modules/pc/protocol_config.c
  show_acl()modules/pc/protocol_config.c
  show_whois()modules/pc/protocol_config.c

Local Function wr_alloc_log()

static void wr_alloc_log ( void* ptr, int len, char* comment, int line )
Calls: fprintf()

Local Function wr_free_list_element()

static void wr_free_list_element ( void* cpy, void* trash )
Calls: wr_real_free()modules/ut/memwrap.c
Used in: wr_real_clear_list()modules/ut/memwrap.c

Local Function wr_free_list_log()

static void wr_free_list_log ( void* ptr, char* comment, int line )
Calls: fprintf()

Local Function wr_free_log()

static void wr_free_log ( void* ptr, char* comment, int line )
Calls: fprintf()