summaryrefslogtreecommitdiff
path: root/zhm/zhm.h
blob: ed8856f6efccd294eb7725443ee5d38178d52f3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
#ifndef __HM_H__
#define __HM_H__
/* This file is part of the Project Athena Zephyr Notification System.
 * It contains the hostmanager header file.
 *
 *      Created by:     David C. Jedlinsky
 *
 *      $Source$
 *      $Author$
 *      $Zephyr: /mit/zephyr/src.rw/zhm/RCS/zhm.h,v 1.13 90/10/19 07:11:48 raeburn Exp $
 *
 *      Copyright (c) 1987, 1991 by the Massachusetts Institute of Technology.
 *      For copying and distribution information, see the file
 *      "mit-copyright.h". 
 */

#include <zephyr/mit-copyright.h>
#include <zephyr/zephyr.h>
#include <zephyr/zsyslog.h>
#include <sys/socket.h>
#include <sys/param.h>
#include <netdb.h>
#ifdef lint
#include <sys/uio.h>			/* make lint shut up */
#endif /* lint */

#ifdef DEBUG
#define DPR(a) fprintf(stderr, a); fflush(stderr)
#define DPR2(a,b) fprintf(stderr, a, b); fflush(stderr)
#define Zperr(e) fprintf(stderr, "Error = %d\n", e)
#else
#define DPR(a)
#define DPR2(a,b)
#define Zperr(e)
#endif

#define ever (;;)

#define SERV_TIMEOUT 20
#define NOTICE_TIMEOUT 25
#define BOOTING 1
#define NOTICES 2

#define MAXRETRIES 2

extern char *malloc();
extern Code_t send_outgoing();
extern void init_queue(), retransmit_queue();

#ifdef vax
#define MACHINE "vax"
#define use_etext
#define ok
#endif /* vax */

#ifdef ibm032
#define MACHINE "rt"
#define adjust_size(size)	size -= 0x10000000
#define ok
#endif /* ibm032 */

#ifdef NeXT
#define MACHINE "NeXT"
#define ok
#endif /* NeXT */

#ifdef sun
#ifdef SUN2_ARCH
#define MACHINE "sun2"
#define ok
#endif /* SUN2_ARCH */

#ifdef SUN3_ARCH
#define MACHINE "sun3"
#define ok
#endif /* SUN3_ARCH */

#if defined (SUN4_ARCH) || defined (sparc)
#define MACHINE "sun4"
#define use_etext
#define ok
#endif /* SUN4_ARCH */

#ifndef ok
#if defined (m68k)
#define MACHINE "sun (unknown 68k)"
#else
#define MACHINE "sun (unknown)"
#endif
#define ok
#endif /* ! ok */
#endif /* sun */

#ifdef _AIX
#ifdef i386
#define	MACHINE	"ps2"
#define adjust_size(size)	size -= 0x400000
#endif
#ifdef _IBMR2
#define	MACHINE "IBM Risc System/6000"
#define	adjust_size(size)	size -= 0x20000000
#endif
#define	ok
#endif

#if defined(ultrix) && defined(mips)
#define MACHINE "decmips"
#define adjust_size(size)	size -= 0x10000000
#define ok
#endif /* ultrix && mips */


#ifdef use_etext
extern int etext;
#define adjust_size(size)	size -= (unsigned int) &etext;
#undef use_etext
#endif

#ifndef ok
#define MACHINE "unknown"
#endif
#undef ok

#endif