1: /* some definitions */
2: #define HOSTNAMESIZE 32
3: #define TRUE 1
4: #define FALSE 0
5: #define bool char
6: #define COMMANDSIZE 450
7: #define PATHSIZE 100
8: #define BIDCMD "dbid"
9:
10: /* some basic functions */
11: #define new(q) ((q *)malloc(sizeof(q)))
12: #define swab(a) ((a&0xff)<<8 | (a&0xff00)>>8)
13:
14: /*
15: * the hosts to use
16: */
17: struct hostdef {
18: char h_name[HOSTNAMESIZE]; /* name of this host */
19: char h_user[HOSTNAMESIZE]; /* name of account to use */
20: char h_dir[PATHSIZE]; /* the directory to use */
21: double h_weight; /* the weighting for this node */
22: struct hostdef *h_next; /* next one */
23: };
Defined struct's
Defined macros
BIDCMD
defined in line
8; used 1 times
FALSE
defined in line
4; used 12 times
TRUE
defined in line
3; used 12 times
bool
defined in line
5; used 21 times
new
defined in line
11; used 4 times
swab
defined in line
12;
never used
Usage of this include