summaryrefslogtreecommitdiff
path: root/core/tcp_wrappers/10_all_more-headers.patch
blob: 7a43c6ceba6156ff8e9e5490f5de5a60a7accd2c (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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
--- tcp_wrappers_7.6/options.c
+++ tcp_wrappers_7.6/options.c
@@ -34,6 +34,8 @@
 
 /* System libraries. */
 
+#include <unistd.h>
+#include <stdlib.h>
 #include <sys/types.h>
 #include <sys/param.h>
 #include <sys/socket.h>
--- tcp_wrappers_7.6/safe_finger.c
+++ tcp_wrappers_7.6/safe_finger.c
@@ -20,6 +20,10 @@
 
 /* System libraries */
 
+#include <unistd.h>
+#include <fcntl.h>
+#include <stdlib.h>
+#include <sys/wait.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <signal.h>
@@ -27,7 +31,7 @@
 #include <ctype.h>
 #include <pwd.h>
 
-extern void exit();
+int pipe_stdin(char **argv);
 
 /* Local stuff */
 
--- tcp_wrappers_7.6/scaffold.c
+++ tcp_wrappers_7.6/scaffold.c
@@ -10,6 +10,7 @@
 
 /* System libraries. */
 
+#include <stdlib.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/socket.h>
--- tcp_wrappers_7.6/shell_cmd.c
+++ tcp_wrappers_7.6/shell_cmd.c
@@ -14,6 +14,10 @@
 
 /* System libraries. */
 
+#include <unistd.h>
+#include <stdlib.h>
+#include <fcntl.h>
+#include <sys/wait.h>
 #include <sys/types.h>
 #include <sys/param.h>
 #include <signal.h>
@@ -25,8 +25,6 @@
 #include <syslog.h>
 #include <string.h>
 
-extern void exit();
-
 /* Local stuff. */
 
 #include "tcpd.h"
--- tcp_wrappers_7.6/tcpdchk.c
+++ tcp_wrappers_7.6/tcpdchk.c
@@ -20,6 +20,8 @@
 
 /* System libraries. */
 
+#include <unistd.h>
+#include <stdlib.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #ifdef INET6
@@ -35,11 +36,6 @@
 #include <netdb.h>
 #include <string.h>
 
-extern int errno;
-extern void exit();
-extern int optind;
-extern char *optarg;
-
 #ifndef INADDR_NONE
 #define INADDR_NONE     (-1)		/* XXX should be 0xffffffff */
 #endif
--- tcp_wrappers_7.6/clean_exit.c
+++ tcp_wrappers_7.6/clean_exit.c
@@ -13,8 +13,8 @@
 #endif
 
 #include <stdio.h>
-
-extern void exit();
+#include <unistd.h>
+#include <stdlib.h>
 
 #include "tcpd.h"
 
--- tcp_wrappers_7.6/hosts_access.c
+++ tcp_wrappers_7.6/hosts_access.c
@@ -23,6 +23,7 @@
 
 /* System libraries. */
 
+#include <stdlib.h>
 #include <sys/types.h>
 #ifdef INT32_T
     typedef uint32_t u_int32_t;
@@ -43,8 +44,7 @@
 #include <netdb.h>
 #endif
 
-extern char *fgets();
-extern int errno;
+int match_pattern_ylo(const char *s, const char *pattern);
 
 #ifndef	INADDR_NONE
 #define	INADDR_NONE	(-1)		/* XXX should be 0xffffffff */
--- tcp_wrappers_7.6/inetcf.c
+++ tcp_wrappers_7.6/inetcf.c
@@ -9,15 +9,14 @@
 static char sccsid[] = "@(#) inetcf.c 1.7 97/02/12 02:13:23";
 #endif
 
+#include <stdlib.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <stdio.h>
 #include <errno.h>
 #include <string.h>
 
-extern int errno;
-extern void exit();
-
+#include "scaffold.h"
 #include "tcpd.h"
 #include "inetcf.h"
 
--- tcp_wrappers_7.6/percent_x.c
+++ tcp_wrappers_7.6/percent_x.c
@@ -16,12 +16,12 @@
 
 /* System libraries. */
 
+#include <unistd.h>
+#include <stdlib.h>
 #include <stdio.h>
 #include <syslog.h>
 #include <string.h>
 
-extern void exit();
-
 /* Local stuff. */
 
 #include "tcpd.h"
--- tcp_wrappers_7.6/rfc931.c
+++ tcp_wrappers_7.6/rfc931.c
@@ -15,6 +15,7 @@
 
 /* System libraries. */
 
+#include <unistd.h>
 #include <stdio.h>
 #include <syslog.h>
 #include <sys/types.h>
--- tcp_wrappers_7.6/tcpd.c
+++ tcp_wrappers_7.6/tcpd.c
@@ -16,6 +16,7 @@
 
 /* System libraries. */
 
+#include <unistd.h>
 #include <sys/types.h>
 #include <sys/param.h>
 #include <sys/stat.h>
--- tcp_wrappers_7.6/tcpdmatch.c
+++ tcp_wrappers_7.6/tcpdmatch.c
@@ -19,6 +19,8 @@
 
 /* System libraries. */
 
+#include <unistd.h>
+#include <stdlib.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/socket.h>
@@ -30,9 +32,6 @@
 #include <setjmp.h>
 #include <string.h>
 
-extern void exit();
-extern int optind;
-extern char *optarg;
 
 #ifndef	INADDR_NONE
 #define	INADDR_NONE	(-1)		/* XXX should be 0xffffffff */
--- tcp_wrappers_7.6/update.c
+++ tcp_wrappers_7.6/update.c
@@ -19,6 +19,7 @@
 
 /* System libraries */
 
+#include <unistd.h>
 #include <stdio.h>
 #include <syslog.h>
 #include <string.h>