port_before.h.in 2.45 KB
Newer Older
Mark Andrews's avatar
Mark Andrews committed
1
2
#ifndef port_before_h
#define port_before_h
Mark Andrews's avatar
Mark Andrews committed
3
#include <config.h>
Mark Andrews's avatar
Mark Andrews committed
4
5
6
7
8
9

struct group;           /* silence warning */
struct passwd;          /* silence warning */
struct timeval;         /* silence warning */
struct timezone;        /* silence warning */

Mark Andrews's avatar
Mark Andrews committed
10
11
12
#ifdef HAVE_SYS_TIMERS_H
#include <sys/timers.h>
#endif
Mark Andrews's avatar
Mark Andrews committed
13
#include <limits.h>
Mark Andrews's avatar
Mark Andrews committed
14

Mark Andrews's avatar
Mark Andrews committed
15
16
17
18
19

@WANT_IRS_GR@
@WANT_IRS_NIS@
@WANT_IRS_PW@

Mark Andrews's avatar
Mark Andrews committed
20
@BSD_COMP@
Mark Andrews's avatar
Mark Andrews committed
21
22
@USE_POLL@
@HAVE_MD5@
Mark Andrews's avatar
Mark Andrews committed
23
@SOLARIS2@
Mark Andrews's avatar
Mark Andrews committed
24
25
26
27

@DO_PTHREADS@
@GETGROUPLIST_ARGS@
@GETNETBYADDR_ADDR_T@
Mark Andrews's avatar
Mark Andrews committed
28
29
@SETPWENT_VOID@
@SETGRENT_VOID@
Mark Andrews's avatar
Mark Andrews committed
30
31
32
33
34
35
36
37
38
39
40

@NET_R_ARGS@
@NET_R_BAD@
@NET_R_COPY@
@NET_R_COPY_ARGS@
@NET_R_END_RESULT@
@NET_R_END_RETURN@
@NET_R_ENT_ARGS@
@NET_R_OK@
@NET_R_RETURN@
@NET_R_SET_RESULT@
Mark Andrews's avatar
Mark Andrews committed
41
@NET_R_SETANSWER@
Mark Andrews's avatar
Mark Andrews committed
42
@NET_R_SET_RETURN@
43
@NETENT_DATA@
Mark Andrews's avatar
Mark Andrews committed
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64

@GROUP_R_RETURN@
@GROUP_R_SET_RETURN@
@GROUP_R_SET_RESULT@
@GROUP_R_END_RETURN@
@GROUP_R_END_RESULT@
@GROUP_R_ARGS@
@GROUP_R_ENT_ARGS@
@GROUP_R_OK@
@GROUP_R_BAD@

@HOST_R_ARGS@
@HOST_R_BAD@
@HOST_R_COPY@
@HOST_R_COPY_ARGS@
@HOST_R_END_RESULT@
@HOST_R_END_RETURN@
@HOST_R_ENT_ARGS@
@HOST_R_ERRNO@
@HOST_R_OK@
@HOST_R_RETURN@
Mark Andrews's avatar
Mark Andrews committed
65
@HOST_R_SETANSWER@
Mark Andrews's avatar
Mark Andrews committed
66
67
@HOST_R_SET_RESULT@
@HOST_R_SET_RETURN@
Mark Andrews's avatar
Mark Andrews committed
68
@HOSTENT_DATA@
Mark Andrews's avatar
Mark Andrews committed
69
70
71
72
73
74
75
76
77
78
79
80

@NGR_R_ARGS@
@NGR_R_BAD@
@NGR_R_COPY@
@NGR_R_COPY_ARGS@
@NGR_R_END_RESULT@
@NGR_R_END_RETURN@
@NGR_R_ENT_ARGS@
@NGR_R_OK@
@NGR_R_RETURN@
@NGR_R_SET_RESULT@
@NGR_R_SET_RETURN@
Mark Andrews's avatar
Mark Andrews committed
81
@NGR_R_PRIVATE@
Mark Andrews's avatar
Mark Andrews committed
82
83
84
85
86
87
88
89
90

@PROTO_R_ARGS@
@PROTO_R_BAD@
@PROTO_R_COPY@
@PROTO_R_COPY_ARGS@
@PROTO_R_END_RESULT@
@PROTO_R_END_RETURN@
@PROTO_R_ENT_ARGS@
@PROTO_R_OK@
Mark Andrews's avatar
Mark Andrews committed
91
@PROTO_R_SETANSWER@
Mark Andrews's avatar
Mark Andrews committed
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
@PROTO_R_RETURN@
@PROTO_R_SET_RESULT@
@PROTO_R_SET_RETURN@

@PASS_R_ARGS@
@PASS_R_BAD@
@PASS_R_COPY@
@PASS_R_COPY_ARGS@
@PASS_R_END_RESULT@
@PASS_R_END_RETURN@
@PASS_R_ENT_ARGS@
@PASS_R_OK@
@PASS_R_RETURN@
@PASS_R_SET_RESULT@
@PASS_R_SET_RETURN@

@SERV_R_ARGS@
@SERV_R_BAD@
@SERV_R_COPY@
@SERV_R_COPY_ARGS@
@SERV_R_END_RESULT@
@SERV_R_END_RETURN@
@SERV_R_ENT_ARGS@
@SERV_R_OK@
Mark Andrews's avatar
Mark Andrews committed
116
@SERV_R_SETANSWER@
Mark Andrews's avatar
Mark Andrews committed
117
118
119
120
121
122
123
124
125
126
127
128
129
130
@SERV_R_RETURN@
@SERV_R_SET_RESULT@
@SERV_R_SET_RETURN@


#define DE_CONST(konst, var) \
        do { \
                union { const void *k; void *v; } _u; \
                _u.k = konst; \
                var = _u.v; \
        } while (0)

#define UNUSED(x) (x) = (x)

Mark Andrews's avatar
Mark Andrews committed
131
@SOLARIS_BITTYPES@
132
@ISC_SOCKLEN_T@
Mark Andrews's avatar
Mark Andrews committed
133

134
135
136
137
138
139
140
#ifdef __GNUC__
#define ISC_FORMAT_PRINTF(fmt, args) \
	__attribute__((__format__(__printf__, fmt, args)))
#else
#define ISC_FORMAT_PRINTF(fmt, args)
#endif

141
142
143
144
145
/* Pull in host order macros when _XOPEN_SOURCE_EXTENDED is defined. */
#if defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
#include <sys/byteorder.h>
#endif

Mark Andrews's avatar
Mark Andrews committed
146
#endif
147
148

/*! \file */