Anope IRC Services  Version 1.8
Functions
memory.c File Reference
#include "services.h"
Include dependency graph for memory.c:

Go to the source code of this file.

Functions

void * smalloc (long size)
 
void * scalloc (long elsize, long els)
 
void * srealloc (void *oldptr, long newsize)
 
char * sstrdup (const char *src)
 

Function Documentation

void* scalloc ( long  elsize,
long  els 
)
void* smalloc ( long  size)

malloc, replacement so we can trap for "out of memory"

Parameters
sizeto allocate
Returns
void

Definition at line 30 of file memory.c.

Referenced by anope_event_encap(), anope_event_metadata(), change_user_username(), create_mask(), do_list(), do_nick(), do_setall(), main(), myDoSet(), normalizeBuffer(), set_lastmask(), and update_host().

void* srealloc ( void *  oldptr,
long  newsize 
)

realloc, replacement so we can trap for "out of memory"

Parameters
oldptrOld Pointer
newsizeSize of new pointer
Returns
void

Definition at line 80 of file memory.c.

Referenced by add_newsitem(), anope_event_capab(), buildStringList(), CleanAccess(), cs_remove_nick(), db_mysql_load_ns_dbase(), do_access(), do_akick(), do_badwords(), do_xop(), exception_add(), exception_del(), expire_exceptions(), memo_send_from(), read_config(), slist_setcapacity(), and split_buf().

char* sstrdup ( const char *  src)

strdup, replacement so we can trap for "out of memory"

Parameters
oldptrOld Pointer
newsizeSize of new pointer
Returns
void

Definition at line 105 of file memory.c.

References alog(), debug, do_backtrace(), and strdup().

Referenced by _common_unban(), _elist_match_user(), _match_usermask(), add_akill(), add_ignore(), add_newsitem(), add_session(), add_sgline(), add_sqline(), add_szline(), addBan(), addCommand(), addEventHandler(), addEventHook(), addMessage(), addModule(), anope_event_bmask(), anope_event_pass(), anope_event_server(), anope_event_sethost(), anope_event_tburst(), anope_event_topic(), AnopeFini(), AnopeInit(), bot_join(), bot_raw_ban(), botchanmsgs(), buildStringList(), capab_parse(), chan_set_key(), chan_set_throttle(), change_bot_nick(), change_core_display(), change_user_host(), change_user_realname(), change_user_username(), check_ban(), check_kick(), check_topiclock(), create_mask(), createCommand(), createEventHandler(), createEventHook(), createMessage(), createModule(), cs_remove_nick(), cs_set_flood(), cs_set_key(), cs_set_redirect(), cs_set_throttle(), db_mysql_load_bs_dbase(), db_mysql_load_cs_dbase(), db_mysql_load_exceptions(), db_mysql_load_news(), db_mysql_load_ns_dbase(), db_mysql_load_ns_req_dbase(), db_mysql_load_os_dbase(), db_mysql_quote(), defconParseModeString(), delBan(), delete_server(), do_access(), do_akick(), do_akill(), do_badwords(), do_ban(), do_bot(), do_chankill(), do_clear(), do_clearmodes(), do_confirm(), do_cs_topic(), do_deowner(), do_drop(), do_forbid(), do_group(), do_identify(), do_join(), do_kill(), do_list(), do_mass_mode(), do_nick(), do_nickupdate(), do_on(), do_on_id(), do_os_kick(), do_owner(), do_part(), do_quit(), do_register(), do_saset_email(), do_saset_greet(), do_saset_url(), do_set_desc(), do_set_email(), do_set_entrymsg(), do_set_greet(), do_set_url(), do_sjoin(), do_suspend(), do_topic(), elist_match_mask(), entry_add(), entry_create(), entry_match_mask(), eventprintf(), exception_add(), expire_nicks(), get_ban_data(), host_resolve(), inspircd_jointhrottle_mode_check(), lang_sanitize(), load_config(), load_cs_dbase(), load_ignore_db(), load_ns_dbase(), load_old_akill(), load_old_ns_dbase(), loadModule(), makealias(), makebot(), makenick(), makerequest(), match_userip(), memo_send_from(), mLoadConfig(), moduleAddAuthor(), moduleAddCallback(), moduleAddCommand(), moduleAddData(), moduleAddEventHandler(), moduleAddEventHook(), moduleAddIRCDMsgs(), moduleAddMessage(), moduleAddVersion(), moduleDelAllData(), moduleDelAllDataMod(), moduleDelData(), moduleGetData(), moduleInsertLanguage(), moduleNoticeLang(), mReadConfig(), my_cs_appendtopic(), my_load_config(), my_memo_lang(), new_server(), new_uid(), nickIsServices(), nsStartNickTracking(), parse_directive(), pmodule_ircd_flood_mode_char_remove(), pmodule_ircd_flood_mode_char_set(), pmodule_ircd_version(), process(), rdb_quote(), read_config(), record_topic(), restore_topic(), send_event(), set_flood(), set_redirect(), split_usermask(), stick_all(), stick_mask(), str_is_cidr(), stripModePrefix(), unreal_jointhrottle_mode_check(), updateProtectDetails(), and validate_user().