TinyMUSH 3.3
TinyMUSH Server
Loading...
Searching...
No Matches
typedefs.h
Go to the documentation of this file.
1
13#pragma once
14
15#include <stdint.h>
16#include <stdio.h>
17#include <stdbool.h>
18#include <time.h>
19#include <sys/time.h>
20#include <netinet/in.h>
21
22typedef int dbref;
23typedef int FLAG;
24typedef int POWER;
25
32typedef struct tracemem_header
33{
34 size_t size;
35 void *bptr;
36 const char *file;
37 int line;
38 const char *function;
39 const char *var;
40 uint64_t *magic;
41 struct tracemem_header *next;
42} __attribute__((aligned(16))) MEMTRACK;
43
44typedef struct hookentry
45{
46 dbref thing;
47 int atr;
48} HOOKENT;
49
50typedef struct key_linked_list
51{
52 char *name;
53 int data;
54 struct key_linked_list *next;
55} KEYLIST;
56
57typedef struct str_linked_list
58{
59 char *name;
60 char *value;
61 struct str_linked_list *next;
63
64typedef struct named_function
65{
66 char *fn_name;
67 int (*handler)(dbref);
68} NAMEDFUNC;
69
70typedef struct external_funcs
71{
72 int num_funcs;
73 NAMEDFUNC **ext_funcs;
74} EXTFUNCS;
75
77{
78 int q_alloc;
79 char **q_regs;
80 int *q_lens;
81 int xr_alloc;
82 char **x_names;
83 char **x_regs;
84 int *x_lens;
85 int dirty;
86} GDATA;
87
88typedef struct bque BQUE;
89struct bque
90{
92 dbref player;
93 dbref cause;
94 int pid;
96 dbref sem;
97 int attr;
98 char *text;
99 char *comm;
100 char *env[NUM_ENV_VARS];
102 int nargs;
103};
104
109typedef enum CF_RESULT
110{
111 CF_Failure = -1,
112 CF_Success,
113 CF_Partial
115
121typedef char boolexp_type;
122
123typedef struct attr
124{
125 const char *name;
126 int number;
127 int flags;
128 int (*check)(int, dbref, dbref, int, char *);
129} ATTR;
130
131extern ATTR attr[];
132
133extern ATTR **anum_table;
134
135typedef struct boolexp BOOLEXP;
137{
138 boolexp_type type;
139 BOOLEXP *sub1;
140 BOOLEXP *sub2;
141 dbref thing;
142};
143
144typedef struct object
145{
146 dbref location;
149 dbref contents;
151 dbref exits;
153 dbref next;
156 dbref link;
158 dbref parent;
159 dbref owner;
161 dbref zone;
162 FLAG flags;
163 FLAG flags2;
164 FLAG flags3;
165 POWER powers;
166 POWER powers2;
167 time_t create_time;
168 time_t last_access;
169 time_t last_mod;
180 struct timeval cpu_time_used;
181} OBJ;
182
188// typedef struct dump_object DUMPOBJ;
189typedef struct dump_object
190{
191 dbref location;
194 dbref contents;
196 dbref exits;
198 dbref next;
201 dbref link;
203 dbref parent;
204 dbref owner;
206 dbref zone;
207 FLAG flags;
208 FLAG flags2;
209 FLAG flags3;
210 POWER powers;
211 POWER powers2;
212 time_t create_time;
213 time_t last_access;
214 time_t last_mod;
216
217typedef char *NAME;
219typedef struct logfiletable
220{
221 int log_flag;
222 FILE *fileptr;
223 char *filename;
224} LOGFILETAB;
225
226typedef struct numbertable
227{
228 int num;
229} NUMBERTAB;
230
236typedef struct filecache_hdr FCACHE;
237typedef struct filecache_block_hdr FBLKHDR;
238typedef struct filecache_block FBLOCK;
239
241{
242 char **filename;
243 FBLOCK *fileblock;
244 const char *desc;
245};
246
248{
250 {
251 struct filecache_block *nxt;
252 int nchars;
253 } hdr;
254 char data[MBUF_SIZE - sizeof(FBLKHDR)];
255};
256
266typedef struct power_entry
267{
268 const char *powername;
272 int (*handler)(dbref, dbref, int, int, int);
274
275typedef struct powerset
276{
277 POWER word1;
278 POWER word2;
279} POWERSET;
280
290typedef struct flag_entry
291{
292 const char *flagname;
294 char flaglett;
297 int (*handler)(dbref, dbref, int, int, int);
299
304typedef struct object_entry
305{
306 const char *name;
307 char lett;
308 int perm;
309 int flags;
311
312typedef struct flagset
313{
314 FLAG word1;
315 FLAG word2;
316 FLAG word3;
317} FLAGSET;
318
324typedef struct fun
325{
326 const char *name;
327 void (*fun)(char *, char **, dbref, dbref, dbref, char **, int, char *[], int);
328 int nargs;
329 unsigned int flags;
330 int perms;
333
334typedef struct ufun
335{
336 char *name;
337 dbref obj;
338 int atr;
339 unsigned int flags;
340 int perms;
341 struct ufun *next;
342} UFUN;
343
344typedef struct delim
345{
346 size_t len;
347 char str[MAX_DELIM_LEN];
348} Delim;
349
350typedef struct var_entry
351{
352 char *text;
353} VARENT;
354
355typedef struct component_def
356{
357 int (*typer_func)(char *);
358 char *def_val;
359} COMPONENT;
360
373
374typedef struct instance_def
375{
377} INSTANCE;
378
379typedef struct data_def
380{
381 char *text;
382} STRUCTDATA;
383
384typedef struct object_stack OBJSTACK;
386{
387 char *data;
388 OBJSTACK *next;
389};
390
391typedef struct object_grid
392{
393 int rows;
394 int cols;
395 char ***data;
396} OBJGRID;
397
398typedef struct object_xfuncs
399{
400 NAMEDFUNC **func;
401 int count;
402} OBJXFUNCS;
403
408typedef struct search_type
409{
410 int s_wizard;
411 dbref s_owner;
412 dbref s_rst_owner;
413 int s_rst_type;
414 FLAGSET s_fset;
415 POWERSET s_pset;
416 dbref s_parent;
417 dbref s_zone;
418 char *s_rst_name;
419 char *s_rst_eval;
420 char *s_rst_ufuntxt;
421 int low_bound;
422 int high_bound;
424
429typedef struct stats_type
430{
431 int s_total;
432 int s_rooms;
433 int s_exits;
434 int s_things;
435 int s_players;
436 int s_going;
437 int s_garbage;
438 int s_unknown;
440
446typedef struct
447{
448 long pos;
449 int len;
450 char topic[TOPIC_NAME_LEN + 1];
451} help_indx;
452
458{
459 int pos;
460 int len;
461};
462
463typedef struct _help_indx_list
464{
465 help_indx entry;
466 struct _help_indx_list *next;
468
474typedef union
475{
476 char *s;
477 int i;
478} HASHKEY;
479
480typedef struct hashentry
481{
482 HASHKEY target;
483 int *data;
484 int flags;
485 struct hashentry *next;
486} HASHENT;
487
488typedef struct hashtable
489{
490 int hashsize;
491 int mask;
492 int checks;
493 int scans;
494 int max_scan;
495 int hits;
496 int entries;
497 int deletes;
498 int nulls;
499 int flags;
500 HASHENT **entry;
503} HASHTAB;
504
505typedef struct mod_hashes
506{
507 char *tabname;
508 HASHTAB *htab;
509 int size_factor;
510 int min_size;
511} MODHASHES;
512
517typedef struct name_table
518{
519 char *name;
520 int minlen;
521 int perm;
522 int flag;
524
530typedef struct addedentry
531{
532 dbref thing;
533 int atr;
534 char *name;
535 struct addedentry *next;
537
538typedef struct cmdentry
539{
540 char *cmdname;
541 NAMETAB *switches;
542 int perms;
543 int extra;
544 int callseq;
545 HOOKENT *userperms;
546 HOOKENT *pre_hook;
547 HOOKENT *post_hook;
548 union
549 {
550 void (*handler)();
551 ADDENT *added;
552 } info;
553} CMDENT;
554
560typedef struct cmd_block_hdr
561{
562 struct cmd_block *nxt;
564
565typedef struct cmd_block
566{
567 CBLKHDR hdr;
568 char cmd[LBUF_SIZE - sizeof(CBLKHDR)];
569} CBLK;
570
571typedef struct text_block_hdr
572{
573 struct text_block *nxt;
574 char *start;
575 char *end;
576 int nchars;
577} TBLKHDR;
578
579typedef struct text_block
580{
581 TBLKHDR hdr;
582 char *data;
583} TBLOCK;
584
585typedef struct prog_data
586{
587 dbref wait_cause;
588 GDATA *wait_data;
589} PROG;
590
591typedef struct descriptor_data
592{
593 int descriptor;
594 int flags;
595 int retries_left;
596 int command_count;
597 int timeout;
598 int host_info;
599 char addr[51];
600 char username[11];
601 char *doing;
602 dbref player;
603 int *colormap;
604 char *output_prefix;
605 char *output_suffix;
606 int output_size;
607 int output_tot;
608 int output_lost;
609 TBLOCK *output_head;
610 TBLOCK *output_tail;
611 int input_size;
612 int input_tot;
613 int input_lost;
614 CBLK *input_head;
615 CBLK *input_tail;
616 CBLK *raw_input;
617 char *raw_input_at;
618 time_t connected_at;
619 time_t last_time;
620 int quota;
621 PROG *program_data;
622 struct sockaddr_in address;
623 struct descriptor_data *hashnext;
624 struct descriptor_data *next;
625 struct descriptor_data **prev;
626} DESC;
627
639typedef struct udb_aname
640{
641 unsigned int object;
642 unsigned int attrnum;
644
649typedef struct udb_attrib
650{
652 int size;
653 char *data;
655
661typedef struct udb_object
662{
663 unsigned int name;
664 time_t counter;
665 int dirty;
666 int at_count;
667 UDB_ATTRIB *atrs;
669
670typedef struct udb_cache
671{
672 void *keydata;
673 int keylen;
674 void *data;
675 int datalen;
676 unsigned int type;
677 unsigned int flags;
678 struct udb_cache *nxt;
679 struct udb_cache *prvfree;
680 struct udb_cache *nxtfree;
681} UDB_CACHE;
682
683typedef struct udb_chain
684{
685 UDB_CACHE *head;
686 UDB_CACHE *tail;
687} UDB_CHAIN;
688
689typedef struct udb_data
690{
691 void *dptr;
692 int dsize;
693} UDB_DATA;
694
711
722{
723 char *version;
724 char *author;
725 char *email;
726 char *url;
727 char *description;
728 char *copyright;
730
731typedef struct module_linked_list
732{
733 char *modname;
734 void *handle;
735 struct module_linked_list *next;
736 int (*process_command)(dbref, dbref, int, char *, char *[], int);
737 int (*process_no_match)(dbref, dbref, int, char *, char *, char *[], int);
738 int (*did_it)(dbref, dbref, dbref, int, const char *, int, const char *, int, int, char *[], int, int);
739 void (*create_obj)(dbref, dbref);
740 void (*destroy_obj)(dbref, dbref);
741 void (*create_player)(dbref, dbref, int, int);
742 void (*destroy_player)(dbref, dbref);
743 void (*announce_connect)(dbref, const char *, int);
744 void (*announce_disconnect)(dbref, const char *, int);
745 void (*examine)(dbref, dbref, dbref, int, int);
746 void (*dump_database)(FILE *);
747 void (*db_write)(void);
748 void (*db_grow)(int, int);
749 void (*db_write_flatfile)(FILE *);
750 void (*do_second)(void);
751 void (*cache_put_notify)(UDB_DATA, unsigned int);
752 void (*cache_del_notify)(UDB_DATA, unsigned int);
753 MODVER(*version)
754 (dbref, dbref, int);
755} MODULE;
756
757typedef struct api_function_data
758{
759 const char *name;
760 const char *param_fmt;
761 void (*handler)(void *, void *);
763
764typedef union
765{
766 long double d;
767 unsigned int u[FP_SIZE];
769
774typedef struct confparm
775{
776 char *pname;
777 int (*interpreter)();
778 int flags;
779 int rperms;
780 int *loc;
781 long extra;
783
784typedef struct confdata
785{
796 int quotas;
812 uint8_t markdata[8];
817 char *dbhome;
818 char *txthome;
819 char *binhome;
820 char *bakhome;
824 char *log_file;
825 char *log_home;
826 char *pid_file;
827 char *pid_home;
828 char *db_file;
835 char *game_exec;
836 char *game_home;
840 int port;
858 char *conn_file;
859 char *creg_file;
860 char *regf_file;
861 char *motd_file;
863 char *quit_file;
864 char *down_file;
865 char *full_file;
866 char *site_file;
867 char *crea_file;
868 char *motd_msg;
872 char *dump_msg;
876 char *huh_msg;
880 char *exec_path;
909 int pagecost;
991 char *flag_sep;
992 char *mush_name;
994 char *one_coin;
1029} CONFDATA;
1030
1031typedef struct site_data
1032{
1033 struct site_data *next;
1034 struct in_addr address;
1035 struct in_addr mask;
1036 int flag;
1037} SITE;
1038
1039typedef struct objlist_block OBLOCK;
1041{
1042 struct objlist_block *next;
1043 dbref data[(LBUF_SIZE - sizeof(OBLOCK *)) / sizeof(dbref)];
1044};
1045
1055
1056// Mark buffer sized dynamically to (db_size+7)>>3 bytes.
1057// Mark buffer stored as a raw byte array sized to (db_size+7)>>3.
1058// Previously a fixed-size struct; now a pointer to bytes for correctness.
1059typedef char MARKBYTE;
1060
1061typedef struct alist
1062{
1063 char *data;
1064 int len;
1065 struct alist *next;
1066} ALIST;
1067
1068typedef struct badname_struc
1069{
1070 char *name;
1071 struct badname_struc *next;
1072} BADNAME;
1073
1074typedef struct forward_list
1075{
1076 int count;
1077 int *data;
1078} FWDLIST;
1079
1080typedef struct propdir_list
1081{
1082 int count;
1083 int *data;
1084} PROPDIR;
1085
1086typedef enum release_status
1087{
1088 RELEASE_ALPHA,
1089 RELEASE_BETA,
1090 RELEASE_CANDIDATE,
1091 RELEASE_STABLE
1092} RELEASE_STATUS;
1093
1098typedef struct
1099{
1101 int major;
1102 int minor;
1103 int patch;
1104 int tweak;
1105 RELEASE_STATUS status;
1106 char *git_date;
1107 char *git_hash;
1109} versioninfo;
1110
1111typedef struct statedata
1112{
1116 unsigned int objc;
1118 // char *configureinfo; /*!< Configure switches */
1119 // char *compilerinfo; /*!< Compiler command line */
1120 // char *linkerinfo; /*!< Linker command line */
1122 char **cfiletab;
1131 int debug;
1132 pid_t dumper;
1134 int epoch;
1139 char **hfiletab;
1143 char *curr_cmd;
1145 time_t now;
1153 time_t start_time;
1186 int max_structs;
1187 int max_cdefs;
1188 int max_instance;
1189 int max_instdata;
1190 int max_stacks;
1191 int max_vars;
1204 int mstat_secs[2];
1211 dbref freelist;
1215 unsigned int moduletype_top;
1217 MARKBYTE *markbits;
1219 char *loop_token[MAX_ITER_NESTING];
1220 char *loop_token2[MAX_ITER_NESTING];
1221 int loop_number[MAX_ITER_NESTING];
1222 int loop_break[MAX_ITER_NESTING];
1237 char *pout;
1238 char *poutnew;
1239 char *poutbufc;
1240 dbref poutobj;
1242 clock_t cputime_now;
1243 const unsigned char *retabs;
1244 MEMTRACK *raw_allocs;
1246} STATEDATA;
1247
1253typedef struct hostdtm
1254{
1255 char *host;
1256 char *dtm;
1258
1259typedef struct logindata
1260{
1261 HOSTDTM good[NUM_GOOD];
1262 HOSTDTM bad[NUM_BAD];
1263 int tot_good;
1264 int tot_bad;
1265 int new_bad;
1266} LDATA;
1267
1268typedef struct player_cache
1269{
1270 dbref player;
1271 int money;
1272 int queue;
1273 int qmax;
1274 int cflags;
1275 struct player_cache *next;
1276} PCACHE;
1277
1283typedef struct user_attribute
1284{
1285 char *name;
1287 int flags;
1289
1295{
1296 uint64_t state;
1297 uint64_t inc;
1300
1311{
1313 MSGQ_DEST_REPLY = __LONG_MAX__
1315
1316typedef struct msgq_dnsresolver
1317{
1318 long destination;
1319 struct
1320 {
1321 union
1322 {
1323 struct in_addr v4;
1324 struct in6_addr v6;
1325 } ip;
1326 int addrf;
1327 in_port_t port;
1328 char *hostname;
1329 } payload;
1331
1337typedef struct f_record
1338{
1339 double data;
1340 char *str;
1341 int pos;
1343
1344typedef struct i_record
1345{
1346 long data;
1347 char *str;
1348 int pos;
1349} I_RECORD;
1350
1351typedef struct a_record
1352{
1353 char *str;
1354 int pos;
1355} A_RECORD;
1356
1361typedef struct monthdays
1362{
1363 char *month;
1364 int day;
1366
1372typedef struct
1373{
1374 float x;
1375 float y;
1376 float z;
1377} xyzColor;
1378
1379typedef struct
1380{
1381 float l;
1382 float a;
1383 float b;
1384} CIELABColor;
1385
1386typedef struct
1387{
1388 uint8_t r;
1389 uint8_t g;
1390 uint8_t b;
1391} rgbColor;
1392
1393/* Color scheme membership flags */
1394#define COLOR_SCHEME_ANSI 0x01
1395#define COLOR_SCHEME_XTERM 0x02
1396#define COLOR_SCHEME_CSS 0x04
1398typedef struct
1399{
1400 char *name;
1401 rgbColor rgb;
1403 uint8_t schemes;
1404} COLORINFO;
1405
1406typedef struct
1407{
1408 float deltaE;
1409 COLORINFO color;
1410} COLORMATCH;
1411
1412typedef enum
1413{
1414 ANSICOLORTYPE_NONE,
1415 ANSICOLORTYPE_STANDARD,
1416 ANSICOLORTYPE_XTERM,
1417 ANSICOLORTYPE_TRUECOLORS
1418} ANSICOLORTYPES;
1419
1420typedef struct
1421{
1422 ANSICOLORTYPES type;
1423 rgbColor rgb;
1424} VT100COLOR;
1425
1426typedef struct
1427{
1428 VT100COLOR foreground;
1429 VT100COLOR background;
1430 bool reset;
1431} VT100ATTR;
1432
char * process_command(dbref player, dbref cause, int interactive, char *command, char *args[], int nargs)
Execute a command.
Definition command.c:960
#define NUM_GOOD
Players constants.
Definition constants.h:1481
#define NUM_OBJPIPES
UDB Constants.
Definition constants.h:1680
#define MBUF_SIZE
Definition constants.h:20
#define LBUF_SIZE
Definition constants.h:18
#define NUM_BAD
Definition constants.h:1482
void do_second(void)
Check the wait and semaphore queues for commands to remove.
Definition cque.c:1657
void db_grow(dbref newtop)
Extend the struct database.
Definition db.c:3067
dbref db_write_flatfile(FILE *f, int format, int version)
Write a db to Flat File.
Definition db_rw.c:1783
dbref db_write(void)
Write DB to file.
Definition db_rw.c:2010
Definition typedefs.h:1380
Definition typedefs.h:1399
uint8_t schemes
Definition typedefs.h:1403
CIELABColor lab
Definition typedefs.h:1402
Definition typedefs.h:1407
Definition typedefs.h:1427
Definition typedefs.h:1421
Definition typedefs.h:464
Definition typedefs.h:1352
Definition typedefs.h:531
Definition typedefs.h:1062
Definition typedefs.h:758
Definition typedefs.h:124
int number
Definition typedefs.h:126
const char * name
Definition typedefs.h:125
int flags
Definition typedefs.h:127
int(* check)(int, dbref, dbref, int, char *)
Definition typedefs.h:128
Definition typedefs.h:1069
Definition typedefs.h:137
dbref thing
Definition typedefs.h:141
Definition typedefs.h:90
int pid
Definition typedefs.h:94
dbref sem
Definition typedefs.h:96
char * env[NUM_ENV_VARS]
Definition typedefs.h:100
int nargs
Definition typedefs.h:102
int waittime
Definition typedefs.h:95
dbref player
Definition typedefs.h:92
BQUE * next
Definition typedefs.h:91
GDATA * gdata
Definition typedefs.h:101
dbref cause
Definition typedefs.h:93
char * text
Definition typedefs.h:98
int attr
Definition typedefs.h:97
char * comm
Definition typedefs.h:99
Interface related typedefs.
Definition typedefs.h:561
Definition typedefs.h:566
Definition typedefs.h:539
Definition typedefs.h:356
int(* typer_func)(char *)
Definition typedefs.h:357
char * def_val
Definition typedefs.h:358
Definition typedefs.h:785
int idle_interval
Definition typedefs.h:895
int see_own_dark
Definition typedefs.h:931
int addcmd_match_blindly
Definition typedefs.h:936
int dbopt_interval
Definition typedefs.h:816
char * dump_msg
Definition typedefs.h:872
int cache_width
Definition typedefs.h:788
char * motd_file
Definition typedefs.h:861
FLAGSET room_flags
Definition typedefs.h:986
int site_chars
Definition typedefs.h:884
dbref exit_proto
Definition typedefs.h:975
char * full_file
Definition typedefs.h:865
int quotas
Definition typedefs.h:796
int opencost
Definition typedefs.h:792
int parse_stack_limit
Definition typedefs.h:1014
int events_daily_hour
Definition typedefs.h:890
int global_aconn_uselocks
Definition typedefs.h:845
int cache_size
Definition typedefs.h:787
int timeslice
Definition typedefs.h:996
int zone_nest_lim
Definition typedefs.h:1019
int read_rem_name
Definition typedefs.h:926
int read_rem_desc
Definition typedefs.h:925
int idle_timeout
Definition typedefs.h:893
int space_compress
Definition typedefs.h:960
int idle_wiz_dark
Definition typedefs.h:932
int ntfy_nest_lim
Definition typedefs.h:813
char * backup_extract
Definition typedefs.h:831
dbref thing_defobj
Definition typedefs.h:980
int start_thing_quota
Definition typedefs.h:903
int register_limit
Definition typedefs.h:1026
int dark_sleepers
Definition typedefs.h:930
char * pueblo_msg
Definition typedefs.h:877
int max_qpid
Definition typedefs.h:1027
int lag_check
Definition typedefs.h:999
int output_limit
Definition typedefs.h:897
int pemit_players
Definition typedefs.h:934
char * wizmotd_file
Definition typedefs.h:862
char * game_exec
Definition typedefs.h:835
dbref thing_proto
Definition typedefs.h:976
int sweep_dark
Definition typedefs.h:927
char * guest_suffixes
Definition typedefs.h:852
int lattr_oldstyle
Definition typedefs.h:939
int check_interval
Definition typedefs.h:889
int parent_nest_lim
Definition typedefs.h:1018
int start_player_quota
Definition typedefs.h:904
int have_guest
Definition typedefs.h:846
int local_masters
Definition typedefs.h:955
char * crea_file
Definition typedefs.h:867
int paylimit
Definition typedefs.h:789
int init_size
Definition typedefs.h:842
char * config_file
Definition typedefs.h:822
int wiz_obey_openlock
Definition typedefs.h:954
dbref player_defobj
Definition typedefs.h:977
int player_name_length
Definition typedefs.h:1005
int killguarantee
Definition typedefs.h:908
char * fixed_tel_msg
Definition typedefs.h:875
int thing_quota
Definition typedefs.h:799
int killmin
Definition typedefs.h:906
char * conn_file
Definition typedefs.h:858
int lock_nest_lim
Definition typedefs.h:1017
int addcmd_obey_uselocks
Definition typedefs.h:938
int cmd_invk_lim
Definition typedefs.h:1011
char * wizmotd_msg
Definition typedefs.h:869
clock_t func_cpu_lim
Definition typedefs.h:1016
char * guest_file
Definition typedefs.h:857
FLAGSET robot_flags
Definition typedefs.h:989
char * backup_exec
Definition typedefs.h:829
char * htmlconn_file
Definition typedefs.h:879
int robot_speak
Definition typedefs.h:921
char * fullmotd_msg
Definition typedefs.h:871
dbref exit_defobj
Definition typedefs.h:979
int use_global_aconn
Definition typedefs.h:844
int fwdlist_lim
Definition typedefs.h:814
int player_name_min
Definition typedefs.h:971
char * huh_msg
Definition typedefs.h:876
dbref start_room
Definition typedefs.h:803
dbref thing_parent
Definition typedefs.h:984
int malloc_logger
Definition typedefs.h:1002
FLAGSET exit_flags
Definition typedefs.h:987
int conc_port
Definition typedefs.h:841
char * downmotd_msg
Definition typedefs.h:870
int name_spaces
Definition typedefs.h:883
int dump_offset
Definition typedefs.h:891
char * motd_msg
Definition typedefs.h:868
dbref room_defobj
Definition typedefs.h:978
int vattr_flags
Definition typedefs.h:807
int queuemax
Definition typedefs.h:913
int exam_public
Definition typedefs.h:924
int conn_timeout
Definition typedefs.h:894
int trace_topdown
Definition typedefs.h:950
char * log_file
Definition typedefs.h:824
int func_invk_lim
Definition typedefs.h:1013
int max_players
Definition typedefs.h:887
int addcmd_obey_stop
Definition typedefs.h:937
int no_ambiguous_match
Definition typedefs.h:963
int start_exit_quota
Definition typedefs.h:902
int sig_action
Definition typedefs.h:886
dbref player_parent
Definition typedefs.h:981
dbref player_proto
Definition typedefs.h:973
char * quit_file
Definition typedefs.h:863
int switch_df_all
Definition typedefs.h:943
char * guest_password
Definition typedefs.h:853
dbref master_room
Definition typedefs.h:972
dbref start_home
Definition typedefs.h:804
char * bakhome
Definition typedefs.h:820
int control_flags
Definition typedefs.h:1008
char * struct_dstr
Definition typedefs.h:1028
char * guest_basename
Definition typedefs.h:850
char * regf_file
Definition typedefs.h:860
char * exec_path
Definition typedefs.h:880
int stack_lim
Definition typedefs.h:1021
int terse_movemsg
Definition typedefs.h:949
int typed_quotas
Definition typedefs.h:919
int fascist_tport
Definition typedefs.h:945
int searchcost
Definition typedefs.h:910
char * help_wizards
Definition typedefs.h:855
int page_req_equals
Definition typedefs.h:967
char * creg_file
Definition typedefs.h:859
char * status_file
Definition typedefs.h:821
char * mush_shortname
Definition typedefs.h:993
int max_cmdsecs
Definition typedefs.h:1007
int visible_wizzes
Definition typedefs.h:933
int pemit_any
Definition typedefs.h:935
int trace_limit
Definition typedefs.h:952
int log_options
Definition typedefs.h:809
char * pid_home
Definition typedefs.h:827
char * one_coin
Definition typedefs.h:994
int bools_oldstyle
Definition typedefs.h:940
int output_block_size
Definition typedefs.h:843
int safer_passwords
Definition typedefs.h:959
int have_zones
Definition typedefs.h:839
char * guest_prefixes
Definition typedefs.h:851
uint8_t markdata[8]
Definition typedefs.h:812
int fascist_objeval
Definition typedefs.h:944
int numvars_lim
Definition typedefs.h:1020
int retry_limit
Definition typedefs.h:896
int lag_check_clk
Definition typedefs.h:1000
int struct_lim
Definition typedefs.h:1022
char * mush_name
Definition typedefs.h:992
int func_nest_lim
Definition typedefs.h:1012
int exit_calls_move
Definition typedefs.h:964
int propdir_lim
Definition typedefs.h:815
dbref default_home
Definition typedefs.h:805
int waitcost
Definition typedefs.h:911
int quiet_whisper
Definition typedefs.h:929
int lag_check_cpu
Definition typedefs.h:1001
int payfind
Definition typedefs.h:905
int digcost
Definition typedefs.h:790
int terse_exits
Definition typedefs.h:948
int room_quota
Definition typedefs.h:797
char * pueblo_version
Definition typedefs.h:878
int linkcost
Definition typedefs.h:791
char * postdump_msg
Definition typedefs.h:873
int player_quota
Definition typedefs.h:800
int cmd_quota_max
Definition typedefs.h:997
int sacadjust
Definition typedefs.h:802
char * dbhome
Definition typedefs.h:817
char * fixed_home_msg
Definition typedefs.h:874
char * log_home
Definition typedefs.h:825
int paystart
Definition typedefs.h:899
dbref room_parent
Definition typedefs.h:982
char * scripts_home
Definition typedefs.h:837
int have_pueblo
Definition typedefs.h:838
int indent_desc
Definition typedefs.h:882
int c_cmd_subst
Definition typedefs.h:970
int check_offset
Definition typedefs.h:892
char * modules_home
Definition typedefs.h:834
char * site_file
Definition typedefs.h:866
char * backup_ext
Definition typedefs.h:832
char * flag_sep
Definition typedefs.h:991
int machinecost
Definition typedefs.h:916
int cmd_nest_lim
Definition typedefs.h:1010
int log_diversion
Definition typedefs.h:811
int port
Definition typedefs.h:840
char * txthome
Definition typedefs.h:818
int dark_actions
Definition typedefs.h:962
int number_guests
Definition typedefs.h:849
int clone_copy_cost
Definition typedefs.h:917
int max_player_aliases
Definition typedefs.h:1025
int queue_chunk
Definition typedefs.h:914
int safe_unowned
Definition typedefs.h:951
int match_mine
Definition typedefs.h:941
char * db_file
Definition typedefs.h:828
int sacfactor
Definition typedefs.h:801
int createmin
Definition typedefs.h:794
char * game_home
Definition typedefs.h:836
dbref guest_start_room
Definition typedefs.h:806
char * help_users
Definition typedefs.h:854
FLAGSET thing_flags
Definition typedefs.h:988
int fork_dump
Definition typedefs.h:885
FLAGSET stripped_flags
Definition typedefs.h:990
int player_listen
Definition typedefs.h:928
int comma_say
Definition typedefs.h:968
KEYLIST * vattr_flag_list
Definition typedefs.h:808
char * mush_owner
Definition typedefs.h:833
int move_match_more
Definition typedefs.h:965
int max_global_regs
Definition typedefs.h:1003
int you_say
Definition typedefs.h:969
int max_command_args
Definition typedefs.h:1004
int instant_recycle
Definition typedefs.h:961
dbref exit_parent
Definition typedefs.h:983
char * pid_file
Definition typedefs.h:826
char * many_coins
Definition typedefs.h:995
int req_cmds_flag
Definition typedefs.h:957
int building_limit
Definition typedefs.h:912
char * backup_compress
Definition typedefs.h:830
int createmax
Definition typedefs.h:795
int guest_nuker
Definition typedefs.h:848
int cmd_quota_incr
Definition typedefs.h:998
int pub_flags
Definition typedefs.h:922
int autozone
Definition typedefs.h:966
int exit_quota
Definition typedefs.h:798
int killmax
Definition typedefs.h:907
int match_mine_pl
Definition typedefs.h:942
int log_info
Definition typedefs.h:810
int terse_contents
Definition typedefs.h:947
char * config_home
Definition typedefs.h:823
int terse_look
Definition typedefs.h:946
dbref room_proto
Definition typedefs.h:974
FLAGSET player_flags
Definition typedefs.h:985
int hash_factor
Definition typedefs.h:1006
int max_grid_size
Definition typedefs.h:1024
int start_room_quota
Definition typedefs.h:901
int rng_seed
Definition typedefs.h:786
char * help_quick
Definition typedefs.h:856
int active_q_chunk
Definition typedefs.h:915
int dump_interval
Definition typedefs.h:888
int robotcost
Definition typedefs.h:793
int guest_char
Definition typedefs.h:847
char * down_file
Definition typedefs.h:864
int wiz_obey_linklock
Definition typedefs.h:953
char * binhome
Definition typedefs.h:819
int instance_lim
Definition typedefs.h:1023
int paycheck
Definition typedefs.h:898
int func_cpu_lim_secs
Definition typedefs.h:1015
int quiet_look
Definition typedefs.h:923
int ansi_colors
Definition typedefs.h:958
int start_quota
Definition typedefs.h:900
int wild_times_lim
Definition typedefs.h:1009
LINKEDLIST * infotext_list
Definition typedefs.h:881
int use_hostname
Definition typedefs.h:918
int match_zone_parents
Definition typedefs.h:956
int ex_flags
Definition typedefs.h:920
Definition typedefs.h:775
char * pname
Definition typedefs.h:776
int rperms
Definition typedefs.h:779
int(* interpreter)()
Definition typedefs.h:777
int * loc
Definition typedefs.h:780
int flags
Definition typedefs.h:778
long extra
Definition typedefs.h:781
Definition typedefs.h:380
Definition typedefs.h:345
Definition typedefs.h:592
The DUMPOBJ structure exists for use during database writes. It is a duplicate of the OBJ structure e...
Definition typedefs.h:190
dbref location
Definition typedefs.h:191
dbref owner
Definition typedefs.h:204
POWER powers
Definition typedefs.h:210
time_t last_access
Definition typedefs.h:213
dbref link
Definition typedefs.h:201
dbref next
Definition typedefs.h:198
POWER powers2
Definition typedefs.h:211
dbref contents
Definition typedefs.h:194
FLAG flags3
Definition typedefs.h:209
time_t create_time
Definition typedefs.h:212
dbref zone
Definition typedefs.h:206
dbref parent
Definition typedefs.h:203
FLAG flags
Definition typedefs.h:207
time_t last_mod
Definition typedefs.h:214
dbref exits
Definition typedefs.h:196
FLAG flags2
Definition typedefs.h:208
Definition typedefs.h:71
Sort list related typedefs.
Definition typedefs.h:1338
Definition typedefs.h:250
Definition typedefs.h:248
Definition typedefs.h:241
Flags related typedefs.
Definition typedefs.h:291
const char * flagname
Definition typedefs.h:292
int(* handler)(dbref, dbref, int, int, int)
Definition typedefs.h:297
int flagvalue
Definition typedefs.h:293
char flaglett
Definition typedefs.h:294
int listperm
Definition typedefs.h:296
int flagflag
Definition typedefs.h:295
Definition typedefs.h:313
Definition typedefs.h:1075
Functions related typedefs.
Definition typedefs.h:325
EXTFUNCS * xperms
Definition typedefs.h:331
unsigned int flags
Definition typedefs.h:329
int perms
Definition typedefs.h:330
const char * name
Definition typedefs.h:326
int nargs
Definition typedefs.h:328
Definition typedefs.h:77
Definition typedefs.h:481
Definition typedefs.h:489
int last_hval
Definition typedefs.h:501
HASHENT * last_entry
Definition typedefs.h:502
Definition typedefs.h:458
int len
Definition typedefs.h:460
int pos
Definition typedefs.h:459
Help related typedefs.
Definition typedefs.h:447
long pos
Definition typedefs.h:448
int len
Definition typedefs.h:449
Definition typedefs.h:45
Player related typedefs.
Definition typedefs.h:1254
Definition typedefs.h:1345
Definition typedefs.h:375
STRUCTDEF * datatype
Definition typedefs.h:376
Definition typedefs.h:51
Definition typedefs.h:220
Definition typedefs.h:1260
Match related typedefs.
Definition typedefs.h:701
int pref_type
Definition typedefs.h:704
char * string
Definition typedefs.h:709
int check_keys
Definition typedefs.h:705
int confidence
Definition typedefs.h:702
dbref player
Definition typedefs.h:708
int count
Definition typedefs.h:703
dbref absolute_form
Definition typedefs.h:706
dbref match
Definition typedefs.h:707
Definition typedefs.h:506
Definition typedefs.h:732
MUSH Configuration related typedefs.
Definition typedefs.h:722
Time conversion related typedefs.
Definition typedefs.h:1362
Definition typedefs.h:1317
Definition typedefs.h:518
int flag
Flags.
Definition typedefs.h:522
int perm
Permissions.
Definition typedefs.h:521
char * name
Name of the entry.
Definition typedefs.h:519
int minlen
Minimum length of the entry.
Definition typedefs.h:520
Definition typedefs.h:65
Definition typedefs.h:227
Fundamental object types.
Definition typedefs.h:305
Definition typedefs.h:392
Definition typedefs.h:386
Definition typedefs.h:399
Definition typedefs.h:145
time_t last_mod
Definition typedefs.h:169
time_t create_time
Definition typedefs.h:167
dbref parent
Definition typedefs.h:158
dbref link
Definition typedefs.h:156
FLAG flags
Definition typedefs.h:162
POWER powers2
Definition typedefs.h:166
time_t last_access
Definition typedefs.h:168
POWER powers
Definition typedefs.h:165
FLAG flags3
Definition typedefs.h:164
FLAG flags2
Definition typedefs.h:163
dbref next
Definition typedefs.h:153
int vars_count
Definition typedefs.h:177
dbref contents
Definition typedefs.h:149
int stack_count
Definition typedefs.h:176
int instance_count
Definition typedefs.h:179
dbref exits
Definition typedefs.h:151
dbref owner
Definition typedefs.h:159
struct timeval cpu_time_used
Definition typedefs.h:180
int name_length
Definition typedefs.h:175
int struct_count
Definition typedefs.h:178
dbref zone
Definition typedefs.h:161
dbref location
Definition typedefs.h:146
Definition typedefs.h:1041
Definition typedefs.h:1047
dbref citm
Definition typedefs.h:1053
struct objlist_stack * next
Definition typedefs.h:1048
OBLOCK * tail
Definition typedefs.h:1050
OBLOCK * head
Definition typedefs.h:1049
int count
Definition typedefs.h:1052
OBLOCK * cblock
Definition typedefs.h:1051
PGC related typedefs.
Definition typedefs.h:1295
uint64_t inc
Definition typedefs.h:1297
uint64_t state
Definition typedefs.h:1296
Definition typedefs.h:1269
Power related typedefs.
Definition typedefs.h:267
int powerpower
Definition typedefs.h:270
int powervalue
Definition typedefs.h:269
const char * powername
Definition typedefs.h:268
int listperm
Definition typedefs.h:271
int(* handler)(dbref, dbref, int, int, int)
Definition typedefs.h:272
Definition typedefs.h:276
POWER word1
Definition typedefs.h:277
POWER word2
Definition typedefs.h:278
Definition typedefs.h:586
Definition typedefs.h:1081
Definition typedefs.h:1387
Search structure, used by @search and search().
Definition typedefs.h:409
Definition typedefs.h:1032
struct in_addr address
Definition typedefs.h:1034
int flag
Definition typedefs.h:1036
struct site_data * next
Definition typedefs.h:1033
struct in_addr mask
Definition typedefs.h:1035
Definition typedefs.h:1112
int mstat_curr
Definition typedefs.h:1205
versioninfo version
Definition typedefs.h:1117
int mush_lognum
Definition typedefs.h:1136
char * poutnew
Definition typedefs.h:1238
HASHTAB flags_htab
Definition typedefs.h:1166
HASHTAB qpid_htab
Definition typedefs.h:1174
HASHTAB nref_htab
Definition typedefs.h:1170
int flatfile_flag
Definition typedefs.h:1152
char * debug_cmd
Definition typedefs.h:1157
int ntfy_nest_lev
Definition typedefs.h:1227
ALIST iter_alist
Definition typedefs.h:1206
int shutdown_flag
Definition typedefs.h:1151
int initializing
Definition typedefs.h:1124
int db_block_size
Definition typedefs.h:1114
int helpfiles
Definition typedefs.h:1137
time_t dump_counter
Definition typedefs.h:1146
HASHTAB objgrid_htab
Definition typedefs.h:1177
HASHTAB fwdlist_htab
Definition typedefs.h:1172
SITE * access_list
Definition typedefs.h:1159
int cmd_invk_ctr
Definition typedefs.h:1230
time_t check_counter
Definition typedefs.h:1147
char * pout
Definition typedefs.h:1237
int mstat_ixrss[2]
Definition typedefs.h:1201
BQUE * qfirst
Definition typedefs.h:1193
int db_size
Definition typedefs.h:1214
time_t cpu_count_from
Definition typedefs.h:1156
char * loop_token2[MAX_ITER_NESTING]
Definition typedefs.h:1220
BQUE * qlast
Definition typedefs.h:1194
time_t events_counter
Definition typedefs.h:1150
int in_switch
Definition typedefs.h:1223
int inpipe
Definition typedefs.h:1236
dbref curr_enactor
Definition typedefs.h:1141
int loop_number[MAX_ITER_NESTING]
Definition typedefs.h:1221
BQUE * qsemlast
Definition typedefs.h:1199
int db_top
Definition typedefs.h:1213
time_t idle_counter
Definition typedefs.h:1148
HASHTAB attr_name_htab
Definition typedefs.h:1167
int in_loop
Definition typedefs.h:1218
HASHTAB parent_htab
Definition typedefs.h:1178
HASHTAB ufunc_htab
Definition typedefs.h:1164
dbref mod_al_id
Definition typedefs.h:1209
MODULE * modules_list
Definition typedefs.h:1185
char * mod_alist
Definition typedefs.h:1207
int epoch
Definition typedefs.h:1134
pid_t dumper
Definition typedefs.h:1132
int zone_nest_num
Definition typedefs.h:1233
int func_invk_ctr
Definition typedefs.h:1226
int min_size
Definition typedefs.h:1212
char * curr_cmd
Definition typedefs.h:1143
BQUE * qsemfirst
Definition typedefs.h:1198
int mod_size
Definition typedefs.h:1208
int logstderr
Definition typedefs.h:1130
dbref curr_player
Definition typedefs.h:1142
HASHTAB structs_htab
Definition typedefs.h:1180
time_t start_time
Definition typedefs.h:1153
time_t mstats_counter
Definition typedefs.h:1149
HASHTAB redir_htab
Definition typedefs.h:1175
int logging
Definition typedefs.h:1133
int * guest_free
Definition typedefs.h:1216
int loop_break[MAX_ITER_NESTING]
Definition typedefs.h:1222
BADNAME * badname_head
Definition typedefs.h:1200
UDB_OBJECT * objpipes[NUM_OBJPIPES]
Definition typedefs.h:1115
char ** hfiletab
Definition typedefs.h:1139
HASHTAB logout_cmd_htab
Definition typedefs.h:1162
const unsigned char * retabs
Definition typedefs.h:1243
HASHTAB vattr_name_htab
Definition typedefs.h:1168
SITE * suspect_list
Definition typedefs.h:1160
HASHTAB command_htab
Definition typedefs.h:1161
unsigned int objc
Definition typedefs.h:1116
HASHTAB * hfile_hashes
Definition typedefs.h:1140
int hfiletab_size
Definition typedefs.h:1138
int mstat_idrss[2]
Definition typedefs.h:1202
int generation
Definition typedefs.h:1135
MARKBYTE * markbits
Definition typedefs.h:1217
unsigned int moduletype_top
Definition typedefs.h:1215
time_t restart_time
Definition typedefs.h:1154
char * doing_hdr
Definition typedefs.h:1158
int attr_next
Definition typedefs.h:1192
HASHTAB player_htab
Definition typedefs.h:1169
HASHTAB instdata_htab
Definition typedefs.h:1183
int f_limitmask
Definition typedefs.h:1235
clock_t cputime_base
Definition typedefs.h:1241
HASHTAB desc_htab
Definition typedefs.h:1171
int mstat_isrss[2]
Definition typedefs.h:1203
int mstat_secs[2]
Definition typedefs.h:1204
GDATA * rdata
Definition typedefs.h:1232
int func_nest_lev
Definition typedefs.h:1225
int record_players
Definition typedefs.h:1113
clock_t cputime_now
Definition typedefs.h:1242
char ** cfiletab
Definition typedefs.h:1122
int dbm_fd
Definition typedefs.h:1245
int cmd_nest_lev
Definition typedefs.h:1229
time_t now
Definition typedefs.h:1145
HASHTAB powers_htab
Definition typedefs.h:1165
int reboot_nums
Definition typedefs.h:1155
OLSTK * olist
Definition typedefs.h:1210
BQUE * qllast
Definition typedefs.h:1196
BQUE * qwait
Definition typedefs.h:1197
int wild_times_lev
Definition typedefs.h:1231
int break_called
Definition typedefs.h:1234
int alarm_triggered
Definition typedefs.h:1144
int lock_nest_lev
Definition typedefs.h:1228
HASHTAB vars_htab
Definition typedefs.h:1179
int panicking
Definition typedefs.h:1127
char * switch_token
Definition typedefs.h:1224
int standalone
Definition typedefs.h:1126
HASHTAB func_htab
Definition typedefs.h:1163
BQUE * qlfirst
Definition typedefs.h:1195
dbref poutobj
Definition typedefs.h:1240
char * poutbufc
Definition typedefs.h:1239
char * loop_token[MAX_ITER_NESTING]
Definition typedefs.h:1219
dbref freelist
Definition typedefs.h:1211
char * modloaded
Definition typedefs.h:1121
HASHTAB instance_htab
Definition typedefs.h:1182
int dumping
Definition typedefs.h:1129
int restarting
Definition typedefs.h:1128
int loading_db
Definition typedefs.h:1125
MEMTRACK * raw_allocs
Definition typedefs.h:1244
HASHTAB propdir_htab
Definition typedefs.h:1173
HASHTAB api_func_htab
Definition typedefs.h:1184
int configfiles
Definition typedefs.h:1123
int debug
Definition typedefs.h:1131
HASHTAB cdefs_htab
Definition typedefs.h:1181
HASHTAB objstack_htab
Definition typedefs.h:1176
Stats structure, used by @stats and stats().
Definition typedefs.h:430
Definition typedefs.h:58
Definition typedefs.h:362
int c_count
Definition typedefs.h:366
char * defs_base
Definition typedefs.h:371
char * s_name
Definition typedefs.h:363
int need_typecheck
Definition typedefs.h:368
char ** c_names
Definition typedefs.h:364
int n_instances
Definition typedefs.h:369
char delim
Definition typedefs.h:367
char * names_base
Definition typedefs.h:370
COMPONENT ** c_array
Definition typedefs.h:365
Definition typedefs.h:572
Definition typedefs.h:580
Memory tracking header structure.
Definition typedefs.h:33
UDB related typedefs.
Definition typedefs.h:640
Definition typedefs.h:650
int attrnum
Definition typedefs.h:651
Definition typedefs.h:671
Definition typedefs.h:684
Definition typedefs.h:690
Definition typedefs.h:662
Definition typedefs.h:335
unsigned int flags
Definition typedefs.h:339
int perms
Definition typedefs.h:340
int atr
Definition typedefs.h:338
char * name
Definition typedefs.h:336
dbref obj
Definition typedefs.h:337
struct ufun * next
Definition typedefs.h:341
User attributes related typedefs.
Definition typedefs.h:1284
char * name
Definition typedefs.h:1285
int flags
Definition typedefs.h:1287
int number
Definition typedefs.h:1286
Definition typedefs.h:351
char * text
Definition typedefs.h:352
Definition typedefs.h:1099
int patch
Definition typedefs.h:1103
char * git_date
Definition typedefs.h:1106
bool git_dirty
Definition typedefs.h:1108
RELEASE_STATUS status
Definition typedefs.h:1105
int major
Definition typedefs.h:1101
int tweak
Definition typedefs.h:1104
char * versioninfo
Definition typedefs.h:1100
int minor
Definition typedefs.h:1102
char * git_hash
Definition typedefs.h:1107
Ansi and color conversion typedefs.
Definition typedefs.h:1373
struct fun FUN
Functions related typedefs.
struct flag_entry FLAGENT
Flags related typedefs.
CF_RESULT
Definition typedefs.h:110
char * NAME
Definition typedefs.h:217
struct addedentry ADDENT
struct user_attribute VATTR
User attributes related typedefs.
struct power_entry POWERENT
Power related typedefs.
struct pcg_state_setseq_64 pcg32_random_t
PGC related typedefs.
struct f_record F_RECORD
Sort list related typedefs.
struct stats_type STATS
Stats structure, used by @stats and stats().
struct udb_attrib UDB_ATTRIB
enum CF_RESULT CF_Result
struct search_type SEARCH
Search structure, used by @search and search().
struct confparm CONF
struct name_table NAMETAB
enum msgq_destination MSGQ_DESTINATION
Message queue related typedefs.
struct object_entry OBJENT
Fundamental object types.
struct hostdtm HOSTDTM
Player related typedefs.
msgq_destination
Message queue related typedefs.
Definition typedefs.h:1311
@ MSGQ_DEST_DNSRESOLVER
Definition typedefs.h:1312
char boolexp_type
Definition typedefs.h:121
struct module_version_info MODVER
MUSH Configuration related typedefs.
struct udb_object UDB_OBJECT
struct cmd_block_hdr CBLKHDR
Interface related typedefs.
struct tracemem_header __attribute__((aligned(16))) MEMTRACK
Memory tracking header structure.
struct match_state MSTATE
Match related typedefs.
struct monthdays MONTHDAYS
Time conversion related typedefs.
struct dump_object DUMPOBJ
The DUMPOBJ structure exists for use during database writes. It is a duplicate of the OBJ structure e...
struct udb_aname UDB_ANAME
UDB related typedefs.
htab related typedefs
Definition typedefs.h:475
Definition typedefs.h:765