mux/src/externs.h File Reference

#include "db.h"
#include "match.h"
#include "mudconf.h"
#include "svdrand.h"

Include dependency graph for externs.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  PortInfo
struct  TASK_RECORD
class  CTaskHeap
class  CScheduler

Defines

#define notify(p, m)   notify_check(p,p,m, MSG_PUP_ALWAYS|MSG_ME_ALL|MSG_F_DOWN)
#define notify_saypose(p, m)   notify_check(p,p,m, MSG_PUP_ALWAYS|MSG_ME_ALL|MSG_F_DOWN|MSG_SAYPOSE)
#define notify_html(p, m)   notify_check(p,p,m, MSG_PUP_ALWAYS|MSG_ME_ALL|MSG_F_DOWN|MSG_HTML)
#define notify_quiet(p, m)   notify_check(p,p,m, MSG_PUP_ALWAYS|MSG_ME)
#define notify_with_cause(p, c, m)   notify_check(p,c,m, MSG_PUP_ALWAYS|MSG_ME_ALL|MSG_F_DOWN)
#define notify_with_cause_ooc(p, c, m)   notify_check(p,c,m, MSG_PUP_ALWAYS|MSG_ME_ALL|MSG_F_DOWN|MSG_OOC)
#define notify_with_cause_html(p, c, m)   notify_check(p,c,m, MSG_PUP_ALWAYS|MSG_ME_ALL|MSG_F_DOWN|MSG_HTML)
#define notify_quiet_with_cause(p, c, m)   notify_check(p,c,m, MSG_PUP_ALWAYS|MSG_ME)
#define notify_all(p, c, m)   notify_check(p,c,m, MSG_ME_ALL|MSG_NBR_EXITS|MSG_F_UP|MSG_F_CONTENTS)
#define notify_all_from_inside(p, c, m)   notify_check(p,c,m, MSG_ME_ALL|MSG_NBR_EXITS_A|MSG_F_UP|MSG_F_CONTENTS|MSG_S_INSIDE)
#define notify_all_from_inside_saypose(p, c, m)   notify_check(p,c,m, MSG_ME_ALL|MSG_NBR_EXITS_A|MSG_F_UP|MSG_F_CONTENTS|MSG_S_INSIDE|MSG_SAYPOSE)
#define notify_all_from_inside_html(p, c, m)   notify_check(p,c,m, MSG_ME_ALL|MSG_NBR_EXITS_A|MSG_F_UP|MSG_F_CONTENTS|MSG_S_INSIDE|MSG_HTML)
#define DUMP_I_NORMAL   0
#define DUMP_I_PANIC   1
#define DUMP_I_RESTART   2
#define DUMP_I_FLAT   3
#define DUMP_I_SIGNAL   4
#define NUM_DUMP_TYPES   5
#define ENDLINE   "\n"
#define match_controlled(player, name)   match_controlled_handler(player, name, false)
#define match_controlled_quiet(player, name)   match_controlled_handler(player, name, true)
#define IEEE_MAKE_NAN   1
#define IEEE_MAKE_IND   2
#define IEEE_MAKE_PINF   3
#define IEEE_MAKE_NINF   4
#define Protect(f)   (cmdp->perms & f)
#define Invalid_Objtype(x)
#define atr_get(t, a, o, f)   atr_get_real(t,a,o,f, __FILE__, __LINE__)
#define atr_pget(t, a, o, f)   atr_pget_real(t,a,o,f, __FILE__, __LINE__)
#define check_zone(player, thing)   check_zone_handler(player, thing, false)
#define ATTRIB_ACCESS   1
#define ATTRIB_RENAME   2
#define ATTRIB_DELETE   4
#define ATTRIB_INFO   8
#define BOOT_QUIET   1
#define BOOT_PORT   2
#define CEMIT_NOHEADER   1
#define CHOWN_ONE   1
#define CHOWN_ALL   2
#define CHOWN_NOZONE   8
#define CLIST_FULL   1
#define CLIST_HEADERS   2
#define CLONE_LOCATION   0
#define CLONE_INHERIT   1
#define CLONE_PRESERVE   2
#define CLONE_INVENTORY   4
#define CLONE_SET_COST   8
#define CLONE_SET_LOC   16
#define CLONE_SET_NAME   32
#define CLONE_FROM_PARENT   64
#define CBOOT_QUIET   1
#define COMTITLE_ON   1
#define COMTITLE_OFF   2
#define CRE_INVENTORY   0
#define CRE_LOCATION   1
#define CRE_SET_LOC   2
#define CSET_PUBLIC   0
#define CSET_PRIVATE   1
#define CSET_LOUD   2
#define CSET_QUIET   3
#define CSET_LIST   4
#define CSET_OBJECT   5
#define CSET_SPOOF   6
#define CSET_NOSPOOF   7
#define CSET_HEADER   8
#define CSET_LOG   9
#define DBCK_DEFAULT   1
#define DBCK_FULL   2
#define DECOMP_DBREF   1
#define DEST_ONE   1
#define DEST_OVERRIDE   4
#define DEST_INSTANT   8
#define DIG_TELEPORT   1
#define DOLIST_SPACE   0
#define DOLIST_DELIMIT   1
#define DOLIST_NOTIFY   2
#define DOING_MESSAGE   0
#define DOING_HEADER   1
#define DOING_POLL   2
#define DOING_UNIQUE   3
#define DOING_MASK   15
#define DOING_QUIET   16
#define DROP_QUIET   1
#define DUMP_STRUCT   1
#define DUMP_TEXT   2
#define DUMP_FLATFILE   4
#define EXAM_DEFAULT   0
#define EXAM_BRIEF   1
#define EXAM_LONG   2
#define EXAM_DEBUG   4
#define EXAM_PARENT   8
#define FIXDB_OWNER   1
#define FIXDB_LOC   2
#define FIXDB_CON   4
#define FIXDB_EXITS   8
#define FIXDB_NEXT   16
#define FIXDB_PENNIES   32
#define FIXDB_ZONE   64
#define FIXDB_LINK   128
#define FIXDB_PARENT   256
#define FIXDB_NAME   2048
#define FLAG_REMOVE   1
#define GET_QUIET   1
#define GIVE_QUIET   64
#define GLOB_ENABLE   1
#define GLOB_DISABLE   2
#define HALT_ALL   1
#define HOOK_BEFORE   1
#define HOOK_AFTER   2
#define HOOK_PERMIT   4
#define HOOK_IGNORE   8
#define HOOK_IGSWITCH   16
#define HOOK_AFAIL   32
#define HOOK_CLEAR   64
#define HOOK_LIST   128
#define ICMD_DISABLE   0
#define ICMD_IGNORE   1
#define ICMD_ON   2
#define ICMD_OFF   4
#define ICMD_CLEAR   8
#define ICMD_CHECK   16
#define ICMD_DROOM   32
#define ICMD_IROOM   64
#define ICMD_CROOM   128
#define ICMD_LROOM   256
#define ICMD_LALLROOM   512
#define KILL_KILL   1
#define KILL_SLAY   2
#define LOOK_LOOK   1
#define LOOK_OUTSIDE   8
#define MAIL_STATS   1
#define MAIL_DSTATS   2
#define MAIL_FSTATS   3
#define MAIL_DEBUG   4
#define MAIL_NUKE   5
#define MAIL_FOLDER   6
#define MAIL_LIST   7
#define MAIL_READ   8
#define MAIL_CLEAR   9
#define MAIL_UNCLEAR   10
#define MAIL_PURGE   11
#define MAIL_FILE   12
#define MAIL_TAG   13
#define MAIL_UNTAG   14
#define MAIL_FORWARD   15
#define MAIL_SEND   16
#define MAIL_EDIT   17
#define MAIL_URGENT   18
#define MAIL_ALIAS   19
#define MAIL_ALIST   20
#define MAIL_PROOF   21
#define MAIL_ABORT   22
#define MAIL_QUICK   23
#define MAIL_REVIEW   24
#define MAIL_RETRACT   25
#define MAIL_CC   26
#define MAIL_SAFE   27
#define MAIL_REPLY   28
#define MAIL_REPLYALL   29
#define MAIL_BCC   30
#define MAIL_QUOTE   0x100
#define MALIAS_DESC   1
#define MALIAS_CHOWN   2
#define MALIAS_ADD   3
#define MALIAS_REMOVE   4
#define MALIAS_DELETE   5
#define MALIAS_RENAME   6
#define MALIAS_LIST   8
#define MALIAS_STATUS   9
#define MARK_SET   0
#define MARK_CLEAR   1
#define MOTD_ALL   0
#define MOTD_WIZ   1
#define MOTD_DOWN   2
#define MOTD_FULL   4
#define MOTD_LIST   8
#define MOTD_BRIEF   16
#define MOVE_QUIET   1
#define NFY_NFY   0
#define NFY_NFYALL   1
#define NFY_DRAIN   2
#define NFY_QUIET   3
#define OPEN_LOCATION   0
#define OPEN_INVENTORY   1
#define PCRE_PLAYER   1
#define PCRE_ROBOT   2
#define PEMIT_PEMIT   1
#define PEMIT_OEMIT   2
#define PEMIT_WHISPER   3
#define PEMIT_FSAY   4
#define PEMIT_FEMIT   5
#define PEMIT_FPOSE   6
#define PEMIT_FPOSE_NS   7
#define PEMIT_CONTENTS   8
#define PEMIT_HERE   16
#define PEMIT_ROOM   32
#define PEMIT_LIST   64
#define PEMIT_HTML   128
#define PS_BRIEF   0
#define PS_LONG   1
#define PS_SUMM   2
#define PS_ALL   4
#define QUERY_SQL   1
#define QUEUE_KICK   1
#define QUEUE_WARP   2
#define QUOTA_SET   1
#define QUOTA_FIX   2
#define QUOTA_TOT   4
#define QUOTA_REM   8
#define QUOTA_ALL   16
#define SAY_SAY   1
#define SAY_NOSPACE   1
#define SAY_POSE   2
#define SAY_POSE_NOSPC   3
#define SAY_PREFIX   4
#define SAY_EMIT   5
#define SAY_NOEVAL   8
#define SHOUT_SHOUT   1
#define SHOUT_WALLPOSE   2
#define SHOUT_WALLEMIT   3
#define SHOUT_WIZSHOUT   4
#define SHOUT_WIZPOSE   5
#define SHOUT_WIZEMIT   6
#define SHOUT_ADMINSHOUT   7
#define SAY_NOTAG   32
#define SAY_HERE   64
#define SAY_ROOM   128
#define SAY_HTML   256
#define SET_QUIET   1
#define SHOUT_DEFAULT   0
#define SHOUT_WIZARD   1
#define SHOUT_ADMIN   2
#define SHUTDN_NORMAL   0
#define SHUTDN_PANIC   1
#define SHUTDN_EXIT   2
#define SHUTDN_COREDUMP   4
#define SRCH_SEARCH   1
#define SRCH_MARK   2
#define SRCH_UNMARK   3
#define STAT_PLAYER   0
#define STAT_ALL   1
#define STAT_ME   2
#define SWITCH_DEFAULT   0
#define SWITCH_ANY   1
#define SWITCH_ONE   2
#define SWEEP_ME   1
#define SWEEP_HERE   2
#define SWEEP_COMMANDS   4
#define SWEEP_LISTEN   8
#define SWEEP_PLAYER   16
#define SWEEP_CONNECT   32
#define SWEEP_EXITS   64
#define SWEEP_SCAN   128
#define SWEEP_VERBOSE   256
#define TELEPORT_DEFAULT   1
#define TELEPORT_QUIET   2
#define TELEPORT_LIST   4
#define TIMECHK_RESET   1
#define TIMECHK_SCREEN   2
#define TIMECHK_LOG   4
#define TOAD_NO_CHOWN   1
#define TRIG_QUIET   1
#define TWARP_QUEUE   1
#define TWARP_DUMP   2
#define TWARP_CLEAN   4
#define TWARP_IDLE   8
#define TWARP_EVENTS   32
#define WAIT_UNTIL   1
#define HUSH_ENTER   1
#define HUSH_LEAVE   2
#define HUSH_EXIT   4
#define EV_FIGNORE   0x00000000
#define EV_FMAND   0x00000100
#define EV_FCHECK   0x00000200
#define EV_STRIP_CURLY   0x00000400
#define EV_EVAL   0x00000800
#define EV_STRIP_TS   0x00001000
#define EV_STRIP_LS   0x00002000
#define EV_STRIP_ESC   0x00004000
#define EV_STRIP_AROUND   0x00008000
#define EV_TOP   0x00010000
#define EV_NOTRACE   0x00020000
#define EV_NO_COMPRESS   0x00040000
#define EV_NO_LOCATION   0x00080000
#define EV_NOFCHECK   0x00100000
#define MSG_PUP_ALWAYS   0x00000001UL
#define MSG_INV   0x00000002UL
#define MSG_INV_L   0x00000004UL
#define MSG_INV_EXITS   0x00000008UL
#define MSG_NBR   0x00000010UL
#define MSG_NBR_A   0x00000020UL
#define MSG_NBR_EXITS   0x00000040UL
#define MSG_NBR_EXITS_A   0x00000080UL
#define MSG_LOC   0x00000100UL
#define MSG_LOC_A   0x00000200UL
#define MSG_FWDLIST   0x00000400UL
#define MSG_ME   0x00000800UL
#define MSG_S_INSIDE   0x00001000UL
#define MSG_S_OUTSIDE   0x00002000UL
#define MSG_HTML   0x00004000UL
#define MSG_OOC   0x00008000UL
#define MSG_SAYPOSE   0x00010000UL
#define MSG_ME_ALL   (MSG_ME|MSG_INV_EXITS|MSG_FWDLIST)
#define MSG_F_CONTENTS   (MSG_INV)
#define MSG_F_UP   (MSG_NBR_A|MSG_LOC_A)
#define MSG_F_DOWN   (MSG_INV_L)
#define LK_IDESC   0x0001
#define LK_OBEYTERSE   0x0002
#define LK_SHOWATTR   0x0004
#define LK_SHOWEXIT   0x0008
#define LK_SHOWVRML   0x0010
#define VE_LOC_XAM   0x01
#define VE_LOC_DARK   0x02
#define VE_LOC_LIGHT   0x04
#define VE_BASE_DARK   0x10
#define SA_EXIT   1
#define SA_DFLT   2
#define STARTLOG(key, p, s)   if ((((key) & mudconf.log_options) != 0) && start_log(p, s)) {
#define ENDLOG   end_log(); }
#define LOG_SIMPLE(key, p, s, m)
#define safe_nothing(b, p)   safe_copy_buf(FUNC_FAIL_MESSAGE,3,(b),(p))
#define safe_noperm(b, p)   safe_copy_buf(FUNC_NOPERM_MESSAGE,21,(b),(p))
#define safe_nomatch(b, p)   safe_copy_buf(FUNC_NOMATCH_MESSAGE,12,(b),(p))
#define safe_range(b, p)   safe_copy_buf(OUT_OF_RANGE,16,(b),(p))
#define safe_ambiguous(b, p)   safe_copy_buf(FUNC_AMBIGUOUS,13,(b),(p))
#define safe_notfound(b, p)   safe_copy_buf(FUNC_NOT_FOUND,13,(b),(p))
#define MAX_LISTEN_PORTS   10
#define PRIORITY_SYSTEM   100
#define PRIORITY_PLAYER   200
#define PRIORITY_OBJECT   300
#define PRIORITY_SUSPEND   400
#define PRIORITY_CF_DEQUEUE_ENABLED   PRIORITY_OBJECT
#define PRIORITY_CF_DEQUEUE_DISABLED   (PRIORITY_PLAYER-1)
#define IU_DONE   0
#define IU_NEXT_TASK   1
#define IU_REMOVE_TASK   2
#define IU_UPDATE_TASK   3
#define CIF_TOTALTIME   0
#define CIF_LONGESTCONNECT   1
#define CIF_LASTCONNECT   2
#define CIF_NUMCONNECTS   3
#define fetch_totaltime(t)   (fetch_ConnectionInfoField((t), CIF_TOTALTIME))
#define fetch_longestconnect(t)   (fetch_ConnectionInfoField((t), CIF_LONGESTCONNECT))
#define fetch_lastconnect(t)   (fetch_ConnectionInfoField((t), CIF_LASTCONNECT))
#define fetch_numconnections(t)   (fetch_ConnectionInfoField((t), CIF_NUMCONNECTS))

Typedefs

typedef void FTASK (void *, int)
typedef struct TASK_RECORDPTASK_RECORD
typedef int SCHCMP (PTASK_RECORD, PTASK_RECORD)
typedef int SCHLOOK (PTASK_RECORD)

Functions

void boot_slave (dbref executor, dbref caller, dbref enactor, int key)
 Lauch reverse-DNS slave process.
void close_sockets (bool emergency, char *message)
void CleanUpSlaveSocket (void)
void CleanUpSlaveProcess (void)
void cf_log_notfound (dbref, char *, const char *, char *)
int cf_modify_bits (int *, char *, void *, UINT32, dbref, char *)
void DCL_CDECL cf_log_syntax (dbref player, char *cmd, const char *fmt,...)
void ValidateConfigurationDbrefs (void)
int cf_read (void)
void cf_init (void)
void cf_list (dbref, char *, char **)
void cf_display (dbref, char *, char *, char **)
void list_cf_access (dbref)
int cf_set (char *, char *, dbref)
 CF_HAND (cf_cf_access)
 CF_HAND (cf_access)
 CF_HAND (cf_cmd_alias)
 CF_HAND (cf_acmd_access)
 CF_HAND (cf_attr_access)
 CF_HAND (cf_func_access)
 CF_HAND (cf_flag_access)
 CF_HAND (cf_flag_name)
 CF_HAND (cf_art_rule)
void local_startup (void)
void local_presync_database (void)
void local_presync_database_sigsegv (void)
void local_dump_database (int)
void local_dump_complete_signal (void)
void local_shutdown (void)
void local_dbck (void)
void local_connect (dbref, int, int)
void local_disconnect (dbref, int)
void local_data_create (dbref)
void local_data_clone (dbref, dbref)
void local_data_free (dbref)
void load_mail (FILE *)
int dump_mail (FILE *)
mailmail_fetch (dbref, int)
void DCL_CDECL raw_broadcast (int, char *,...)
void list_siteinfo (dbref)
void logged_out0 (dbref executor, dbref caller, dbref enactor, int key)
void logged_out1 (dbref executor, dbref caller, dbref enactor, int key, char *arg)
void init_logout_cmdtab (void)
void desc_reload (dbref)
void make_portlist (dbref, dbref, char *, char **)
int nfy_que (dbref, int, int, int)
int halt_que (dbref, dbref)
void wait_que (dbref executor, dbref caller, dbref enactor, bool, CLinearTimeAbsolute &, dbref, int, char *, char *[], int, char *[])
char * crypt (const char *inptr, const char *inkey)
void tcache_init (void)
char * parse_to (char **, char, int)
char * parse_arglist (dbref executor, dbref caller, dbref enactor, char *, char, int, char *[], int, char *[], int, int *)
int get_gender (dbref)
void mux_exec (char *buff, char **bufc, dbref executor, dbref caller, dbref enactor, int eval, char **dstr, char *cargs[], int ncargs)
void save_global_regs (const char *, char *[], int[])
void save_and_clear_global_regs (const char *, char *[], int[])
void restore_global_regs (const char *, char *[], int[])
char ** PushPointers (int nNeeded)
void PopPointers (char **p, int nNeeded)
int * PushIntegers (int nNeeded)
void PopIntegers (int *pi, int nNeeded)
void notify_except (dbref, dbref, dbref, const char *, int key)
void notify_except2 (dbref, dbref, dbref, dbref, const char *)
void notify_check (dbref, dbref, const char *, int)
bool Hearer (dbref)
void report (void)
bool atr_match (dbref thing, dbref player, char type, char *str, char *raw_str, bool check_parents)
bool regexp_match (char *pattern, char *str, int case_opt, char *args[], int nargs)
bool list_check (dbref thing, dbref player, char type, char *str, char *raw_str, bool check_parent)
bool html_escape (const char *src, char *dest, char **destp)
void dump_database_internal (int)
void fork_and_dump (int key)
void helpindex_clean (int)
void helpindex_load (dbref)
void helpindex_init (void)
void help_helper (dbref executor, int iHelpfile, char *topic_arg, char *buff, char **bufc)
int cf_ntab_access (int *, char *, void *, UINT32, dbref, char *)
bool start_log (const char *primary, const char *secondary)
void end_log (void)
void log_perror (const char *, const char *, const char *, const char *)
void log_text (const char *)
void log_number (int)
void DCL_CDECL log_printf (const char *fmt,...)
void log_name (dbref)
void log_name_and_loc (dbref)
void log_type_and_name (dbref)
void look_in (dbref, dbref, int)
void show_vrml_url (dbref, dbref)
size_t decode_attr_flags (int aflags, char *buff)
void move_object (dbref, dbref)
void move_via_generic (dbref, dbref, dbref, int)
bool move_via_teleport (dbref, dbref, dbref, int)
void move_exit (dbref, dbref, bool, const char *, int)
void do_enter_internal (dbref, dbref, bool)
dbref start_home (void)
dbref default_home (void)
bool can_set_home (dbref, dbref, dbref)
dbref new_home (dbref)
dbref clone_home (dbref, dbref)
void divest_object (dbref)
dbref create_obj (dbref, int, const char *, int)
void destroy_obj (dbref)
void empty_obj (dbref)
dbref create_player (char *name, char *pass, dbref executor, bool isrobot, const char **pmsg)
void AddToPublicChannel (dbref player)
bool add_player_name (dbref, const char *)
bool delete_player_name (dbref, const char *)
dbref lookup_player (dbref, char *, bool)
void load_player_names (void)
void badname_add (char *)
void badname_remove (char *)
bool badname_check (char *)
void badname_list (dbref, const char *)
void ChangePassword (dbref player, const char *szPassword)
const char * mux_crypt (const char *szPassword, const char *szSalt, int *piType)
int QueueMax (dbref)
 Returns the player's upper limit of queued commands.
int a_Queue (dbref, int)
 Adjusts the count of queued commands up or down.
void pcache_reload (dbref)
 Re-initializes Money and QueueMax items from the database.
void pcache_init (vo