diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-12-01 19:02:24 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-12-01 19:02:24 +0000 |
commit | 87559829ffc79b94adcee00b64706ce78ff2f3fb (patch) | |
tree | 75120bd48cfcb5744e62162b9110e67bf1faa2e4 | |
parent | 3e856ce428cabaf6c8d99a2374a1f9a4a05db5f0 (diff) | |
download | busybox-w32-87559829ffc79b94adcee00b64706ce78ff2f3fb.tar.gz busybox-w32-87559829ffc79b94adcee00b64706ce78ff2f3fb.tar.bz2 busybox-w32-87559829ffc79b94adcee00b64706ce78ff2f3fb.zip |
Remove #ifdef __STDC__ junk. We don't do K&R round these parts,
so no point acting like we do.
-rw-r--r-- | busybox.h | 3 | ||||
-rw-r--r-- | cmdedit.h | 16 | ||||
-rw-r--r-- | coreutils/md5sum.c | 40 | ||||
-rw-r--r-- | include/busybox.h | 3 | ||||
-rw-r--r-- | md5sum.c | 40 | ||||
-rw-r--r-- | nfsmount.h | 89 | ||||
-rw-r--r-- | shell/cmdedit.h | 16 | ||||
-rw-r--r-- | util-linux/nfsmount.h | 89 |
8 files changed, 6 insertions, 290 deletions
@@ -109,8 +109,7 @@ struct BB_applet { | |||
109 | extern const struct BB_applet applets[]; | 109 | extern const struct BB_applet applets[]; |
110 | 110 | ||
111 | /* Automagically pull in all the applet function prototypes and | 111 | /* Automagically pull in all the applet function prototypes and |
112 | * applet usage strings. | 112 | * applet usage strings. These are all of the form: |
113 | * These are all of the form: | ||
114 | * extern int foo_main(int argc, char **argv); | 113 | * extern int foo_main(int argc, char **argv); |
115 | * extern const char foo_usage[]; | 114 | * extern const char foo_usage[]; |
116 | * These are all autogenerated from the set of currently defined applets. | 115 | * These are all autogenerated from the set of currently defined applets. |
@@ -1,11 +1,11 @@ | |||
1 | #ifndef CMDEDIT_H | 1 | #ifndef CMDEDIT_H |
2 | #define CMDEDIT_H | 2 | #define CMDEDIT_H |
3 | 3 | ||
4 | #ifdef BB_FEATURE_SH_COMMAND_EDITING | ||
4 | /* unix systems can #define POSIX to use termios, otherwise | 5 | /* unix systems can #define POSIX to use termios, otherwise |
5 | * the bsd or sysv interface will be used | 6 | * the bsd or sysv interface will be used |
6 | */ | 7 | */ |
7 | 8 | ||
8 | #ifdef __STDC__ | ||
9 | #include <stddef.h> | 9 | #include <stddef.h> |
10 | 10 | ||
11 | typedef size_t (*cmdedit_strwidth_proc)(char *); | 11 | typedef size_t (*cmdedit_strwidth_proc)(char *); |
@@ -21,18 +21,6 @@ extern int (*cmdedit_in_hook)(char *); | |||
21 | extern int (*cmdedit_out_hook)(char *); | 21 | extern int (*cmdedit_out_hook)(char *); |
22 | extern int (*cmdedit_tab_hook)(char *, int, int *); | 22 | extern int (*cmdedit_tab_hook)(char *, int, int *); |
23 | 23 | ||
24 | #else /* not __STDC__ */ | 24 | #endif /* BB_FEATURE_SH_COMMAND_EDITING */ |
25 | |||
26 | void cmdedit_init(void); | ||
27 | void cmdedit_read_input(char* promptStr, char* command); | ||
28 | void cmdedit_setwidth(); | ||
29 | void cmdedit_histadd(); | ||
30 | void cmdedit_strwidth(); | ||
31 | |||
32 | extern int (*cmdedit_in_hook)(); | ||
33 | extern int (*cmdedit_out_hook)(); | ||
34 | extern int (*cmdedit_tab_hook)(); | ||
35 | |||
36 | #endif /* __STDC__ */ | ||
37 | 25 | ||
38 | #endif /* CMDEDIT_H */ | 26 | #endif /* CMDEDIT_H */ |
diff --git a/coreutils/md5sum.c b/coreutils/md5sum.c index 30b882ab5..84e037a61 100644 --- a/coreutils/md5sum.c +++ b/coreutils/md5sum.c | |||
@@ -107,48 +107,8 @@ extern _IO_ssize_t getline __P ((char **, size_t *, FILE *)); | |||
107 | the resulting executable. Locally running cross-compiled executables | 107 | the resulting executable. Locally running cross-compiled executables |
108 | is usually not possible. */ | 108 | is usually not possible. */ |
109 | 109 | ||
110 | #ifdef _LIBC | ||
111 | # include <sys/types.h> | 110 | # include <sys/types.h> |
112 | typedef u_int32_t md5_uint32; | 111 | typedef u_int32_t md5_uint32; |
113 | #else | ||
114 | # if defined __STDC__ && __STDC__ | ||
115 | # define UINT_MAX_32_BITS 4294967295U | ||
116 | # else | ||
117 | # define UINT_MAX_32_BITS 0xFFFFFFFF | ||
118 | # endif | ||
119 | |||
120 | /* If UINT_MAX isn't defined, assume it's a 32-bit type. | ||
121 | This should be valid for all systems GNU cares about because | ||
122 | that doesn't include 16-bit systems, and only modern systems | ||
123 | (that certainly have <limits.h>) have 64+-bit integral types. */ | ||
124 | |||
125 | # ifndef UINT_MAX | ||
126 | # define UINT_MAX UINT_MAX_32_BITS | ||
127 | # endif | ||
128 | |||
129 | # if UINT_MAX == UINT_MAX_32_BITS | ||
130 | typedef unsigned int md5_uint32; | ||
131 | # else | ||
132 | # if USHRT_MAX == UINT_MAX_32_BITS | ||
133 | typedef unsigned short md5_uint32; | ||
134 | # else | ||
135 | # if ULONG_MAX == UINT_MAX_32_BITS | ||
136 | typedef unsigned long md5_uint32; | ||
137 | # else | ||
138 | /* The following line is intended to evoke an error. | ||
139 | Using #error is not portable enough. */ | ||
140 | "Cannot determine unsigned 32-bit data type." | ||
141 | # endif | ||
142 | # endif | ||
143 | # endif | ||
144 | #endif | ||
145 | |||
146 | #undef __P | ||
147 | #if defined (__STDC__) && __STDC__ | ||
148 | #define __P(x) x | ||
149 | #else | ||
150 | #define __P(x) () | ||
151 | #endif | ||
152 | 112 | ||
153 | /* Structure to save state of computation between the single steps. */ | 113 | /* Structure to save state of computation between the single steps. */ |
154 | struct md5_ctx | 114 | struct md5_ctx |
diff --git a/include/busybox.h b/include/busybox.h index cff4af41d..bd8fca53b 100644 --- a/include/busybox.h +++ b/include/busybox.h | |||
@@ -109,8 +109,7 @@ struct BB_applet { | |||
109 | extern const struct BB_applet applets[]; | 109 | extern const struct BB_applet applets[]; |
110 | 110 | ||
111 | /* Automagically pull in all the applet function prototypes and | 111 | /* Automagically pull in all the applet function prototypes and |
112 | * applet usage strings. | 112 | * applet usage strings. These are all of the form: |
113 | * These are all of the form: | ||
114 | * extern int foo_main(int argc, char **argv); | 113 | * extern int foo_main(int argc, char **argv); |
115 | * extern const char foo_usage[]; | 114 | * extern const char foo_usage[]; |
116 | * These are all autogenerated from the set of currently defined applets. | 115 | * These are all autogenerated from the set of currently defined applets. |
@@ -107,48 +107,8 @@ extern _IO_ssize_t getline __P ((char **, size_t *, FILE *)); | |||
107 | the resulting executable. Locally running cross-compiled executables | 107 | the resulting executable. Locally running cross-compiled executables |
108 | is usually not possible. */ | 108 | is usually not possible. */ |
109 | 109 | ||
110 | #ifdef _LIBC | ||
111 | # include <sys/types.h> | 110 | # include <sys/types.h> |
112 | typedef u_int32_t md5_uint32; | 111 | typedef u_int32_t md5_uint32; |
113 | #else | ||
114 | # if defined __STDC__ && __STDC__ | ||
115 | # define UINT_MAX_32_BITS 4294967295U | ||
116 | # else | ||
117 | # define UINT_MAX_32_BITS 0xFFFFFFFF | ||
118 | # endif | ||
119 | |||
120 | /* If UINT_MAX isn't defined, assume it's a 32-bit type. | ||
121 | This should be valid for all systems GNU cares about because | ||
122 | that doesn't include 16-bit systems, and only modern systems | ||
123 | (that certainly have <limits.h>) have 64+-bit integral types. */ | ||
124 | |||
125 | # ifndef UINT_MAX | ||
126 | # define UINT_MAX UINT_MAX_32_BITS | ||
127 | # endif | ||
128 | |||
129 | # if UINT_MAX == UINT_MAX_32_BITS | ||
130 | typedef unsigned int md5_uint32; | ||
131 | # else | ||
132 | # if USHRT_MAX == UINT_MAX_32_BITS | ||
133 | typedef unsigned short md5_uint32; | ||
134 | # else | ||
135 | # if ULONG_MAX == UINT_MAX_32_BITS | ||
136 | typedef unsigned long md5_uint32; | ||
137 | # else | ||
138 | /* The following line is intended to evoke an error. | ||
139 | Using #error is not portable enough. */ | ||
140 | "Cannot determine unsigned 32-bit data type." | ||
141 | # endif | ||
142 | # endif | ||
143 | # endif | ||
144 | #endif | ||
145 | |||
146 | #undef __P | ||
147 | #if defined (__STDC__) && __STDC__ | ||
148 | #define __P(x) x | ||
149 | #else | ||
150 | #define __P(x) () | ||
151 | #endif | ||
152 | 112 | ||
153 | /* Structure to save state of computation between the single steps. */ | 113 | /* Structure to save state of computation between the single steps. */ |
154 | struct md5_ctx | 114 | struct md5_ctx |
diff --git a/nfsmount.h b/nfsmount.h index a12de50a1..4f39ff2a8 100644 --- a/nfsmount.h +++ b/nfsmount.h | |||
@@ -150,7 +150,6 @@ typedef struct ppathcnf ppathcnf; | |||
150 | #define MOUNTPROG 100005 | 150 | #define MOUNTPROG 100005 |
151 | #define MOUNTVERS 1 | 151 | #define MOUNTVERS 1 |
152 | 152 | ||
153 | #if defined(__STDC__) || defined(__cplusplus) | ||
154 | #define MOUNTPROC_NULL 0 | 153 | #define MOUNTPROC_NULL 0 |
155 | extern void * mountproc_null_1(void *, CLIENT *); | 154 | extern void * mountproc_null_1(void *, CLIENT *); |
156 | extern void * mountproc_null_1_svc(void *, struct svc_req *); | 155 | extern void * mountproc_null_1_svc(void *, struct svc_req *); |
@@ -174,33 +173,8 @@ extern exports * mountproc_exportall_1(void *, CLIENT *); | |||
174 | extern exports * mountproc_exportall_1_svc(void *, struct svc_req *); | 173 | extern exports * mountproc_exportall_1_svc(void *, struct svc_req *); |
175 | extern int mountprog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t); | 174 | extern int mountprog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t); |
176 | 175 | ||
177 | #else /* K&R C */ | ||
178 | #define MOUNTPROC_NULL 0 | ||
179 | extern void * mountproc_null_1(); | ||
180 | extern void * mountproc_null_1_svc(); | ||
181 | #define MOUNTPROC_MNT 1 | ||
182 | extern fhstatus * mountproc_mnt_1(); | ||
183 | extern fhstatus * mountproc_mnt_1_svc(); | ||
184 | #define MOUNTPROC_DUMP 2 | ||
185 | extern mountlist * mountproc_dump_1(); | ||
186 | extern mountlist * mountproc_dump_1_svc(); | ||
187 | #define MOUNTPROC_UMNT 3 | ||
188 | extern void * mountproc_umnt_1(); | ||
189 | extern void * mountproc_umnt_1_svc(); | ||
190 | #define MOUNTPROC_UMNTALL 4 | ||
191 | extern void * mountproc_umntall_1(); | ||
192 | extern void * mountproc_umntall_1_svc(); | ||
193 | #define MOUNTPROC_EXPORT 5 | ||
194 | extern exports * mountproc_export_1(); | ||
195 | extern exports * mountproc_export_1_svc(); | ||
196 | #define MOUNTPROC_EXPORTALL 6 | ||
197 | extern exports * mountproc_exportall_1(); | ||
198 | extern exports * mountproc_exportall_1_svc(); | ||
199 | extern int mountprog_1_freeresult (); | ||
200 | #endif /* K&R C */ | ||
201 | #define MOUNTVERS_POSIX 2 | 176 | #define MOUNTVERS_POSIX 2 |
202 | 177 | ||
203 | #if defined(__STDC__) || defined(__cplusplus) | ||
204 | extern void * mountproc_null_2(void *, CLIENT *); | 178 | extern void * mountproc_null_2(void *, CLIENT *); |
205 | extern void * mountproc_null_2_svc(void *, struct svc_req *); | 179 | extern void * mountproc_null_2_svc(void *, struct svc_req *); |
206 | extern fhstatus * mountproc_mnt_2(dirpath *, CLIENT *); | 180 | extern fhstatus * mountproc_mnt_2(dirpath *, CLIENT *); |
@@ -220,29 +194,8 @@ extern ppathcnf * mountproc_pathconf_2(dirpath *, CLIENT *); | |||
220 | extern ppathcnf * mountproc_pathconf_2_svc(dirpath *, struct svc_req *); | 194 | extern ppathcnf * mountproc_pathconf_2_svc(dirpath *, struct svc_req *); |
221 | extern int mountprog_2_freeresult (SVCXPRT *, xdrproc_t, caddr_t); | 195 | extern int mountprog_2_freeresult (SVCXPRT *, xdrproc_t, caddr_t); |
222 | 196 | ||
223 | #else /* K&R C */ | ||
224 | extern void * mountproc_null_2(); | ||
225 | extern void * mountproc_null_2_svc(); | ||
226 | extern fhstatus * mountproc_mnt_2(); | ||
227 | extern fhstatus * mountproc_mnt_2_svc(); | ||
228 | extern mountlist * mountproc_dump_2(); | ||
229 | extern mountlist * mountproc_dump_2_svc(); | ||
230 | extern void * mountproc_umnt_2(); | ||
231 | extern void * mountproc_umnt_2_svc(); | ||
232 | extern void * mountproc_umntall_2(); | ||
233 | extern void * mountproc_umntall_2_svc(); | ||
234 | extern exports * mountproc_export_2(); | ||
235 | extern exports * mountproc_export_2_svc(); | ||
236 | extern exports * mountproc_exportall_2(); | ||
237 | extern exports * mountproc_exportall_2_svc(); | ||
238 | #define MOUNTPROC_PATHCONF 7 | ||
239 | extern ppathcnf * mountproc_pathconf_2(); | ||
240 | extern ppathcnf * mountproc_pathconf_2_svc(); | ||
241 | extern int mountprog_2_freeresult (); | ||
242 | #endif /* K&R C */ | ||
243 | #define MOUNT_V3 3 | 197 | #define MOUNT_V3 3 |
244 | 198 | ||
245 | #if defined(__STDC__) || defined(__cplusplus) | ||
246 | #define MOUNTPROC3_NULL 0 | 199 | #define MOUNTPROC3_NULL 0 |
247 | extern void * mountproc3_null_3(void *, CLIENT *); | 200 | extern void * mountproc3_null_3(void *, CLIENT *); |
248 | extern void * mountproc3_null_3_svc(void *, struct svc_req *); | 201 | extern void * mountproc3_null_3_svc(void *, struct svc_req *); |
@@ -263,31 +216,8 @@ extern exports * mountproc3_export_3(void *, CLIENT *); | |||
263 | extern exports * mountproc3_export_3_svc(void *, struct svc_req *); | 216 | extern exports * mountproc3_export_3_svc(void *, struct svc_req *); |
264 | extern int mountprog_3_freeresult (SVCXPRT *, xdrproc_t, caddr_t); | 217 | extern int mountprog_3_freeresult (SVCXPRT *, xdrproc_t, caddr_t); |
265 | 218 | ||
266 | #else /* K&R C */ | ||
267 | #define MOUNTPROC3_NULL 0 | ||
268 | extern void * mountproc3_null_3(); | ||
269 | extern void * mountproc3_null_3_svc(); | ||
270 | #define MOUNTPROC3_MNT 1 | ||
271 | extern mountres3 * mountproc3_mnt_3(); | ||
272 | extern mountres3 * mountproc3_mnt_3_svc(); | ||
273 | #define MOUNTPROC3_DUMP 2 | ||
274 | extern mountlist * mountproc3_dump_3(); | ||
275 | extern mountlist * mountproc3_dump_3_svc(); | ||
276 | #define MOUNTPROC3_UMNT 3 | ||
277 | extern void * mountproc3_umnt_3(); | ||
278 | extern void * mountproc3_umnt_3_svc(); | ||
279 | #define MOUNTPROC3_UMNTALL 4 | ||
280 | extern void * mountproc3_umntall_3(); | ||
281 | extern void * mountproc3_umntall_3_svc(); | ||
282 | #define MOUNTPROC3_EXPORT 5 | ||
283 | extern exports * mountproc3_export_3(); | ||
284 | extern exports * mountproc3_export_3_svc(); | ||
285 | extern int mountprog_3_freeresult (); | ||
286 | #endif /* K&R C */ | ||
287 | |||
288 | /* the xdr functions */ | 219 | /* the xdr functions */ |
289 | 220 | ||
290 | #if defined(__STDC__) || defined(__cplusplus) | ||
291 | extern bool_t xdr_fhandle (XDR *, fhandle); | 221 | extern bool_t xdr_fhandle (XDR *, fhandle); |
292 | extern bool_t xdr_fhandle3 (XDR *, fhandle3*); | 222 | extern bool_t xdr_fhandle3 (XDR *, fhandle3*); |
293 | extern bool_t xdr_mountstat3 (XDR *, mountstat3*); | 223 | extern bool_t xdr_mountstat3 (XDR *, mountstat3*); |
@@ -304,25 +234,6 @@ extern bool_t xdr_exports (XDR *, exports*); | |||
304 | extern bool_t xdr_exportnode (XDR *, exportnode*); | 234 | extern bool_t xdr_exportnode (XDR *, exportnode*); |
305 | extern bool_t xdr_ppathcnf (XDR *, ppathcnf*); | 235 | extern bool_t xdr_ppathcnf (XDR *, ppathcnf*); |
306 | 236 | ||
307 | #else /* K&R C */ | ||
308 | extern bool_t xdr_fhandle (); | ||
309 | extern bool_t xdr_fhandle3 (); | ||
310 | extern bool_t xdr_mountstat3 (); | ||
311 | extern bool_t xdr_fhstatus (); | ||
312 | extern bool_t xdr_mountres3_ok (); | ||
313 | extern bool_t xdr_mountres3 (); | ||
314 | extern bool_t xdr_dirpath (); | ||
315 | extern bool_t xdr_name (); | ||
316 | extern bool_t xdr_mountlist (); | ||
317 | extern bool_t xdr_mountbody (); | ||
318 | extern bool_t xdr_groups (); | ||
319 | extern bool_t xdr_groupnode (); | ||
320 | extern bool_t xdr_exports (); | ||
321 | extern bool_t xdr_exportnode (); | ||
322 | extern bool_t xdr_ppathcnf (); | ||
323 | |||
324 | #endif /* K&R C */ | ||
325 | |||
326 | #ifdef __cplusplus | 237 | #ifdef __cplusplus |
327 | } | 238 | } |
328 | #endif | 239 | #endif |
diff --git a/shell/cmdedit.h b/shell/cmdedit.h index 27f7b5500..8ebf0d064 100644 --- a/shell/cmdedit.h +++ b/shell/cmdedit.h | |||
@@ -1,11 +1,11 @@ | |||
1 | #ifndef CMDEDIT_H | 1 | #ifndef CMDEDIT_H |
2 | #define CMDEDIT_H | 2 | #define CMDEDIT_H |
3 | 3 | ||
4 | #ifdef BB_FEATURE_SH_COMMAND_EDITING | ||
4 | /* unix systems can #define POSIX to use termios, otherwise | 5 | /* unix systems can #define POSIX to use termios, otherwise |
5 | * the bsd or sysv interface will be used | 6 | * the bsd or sysv interface will be used |
6 | */ | 7 | */ |
7 | 8 | ||
8 | #ifdef __STDC__ | ||
9 | #include <stddef.h> | 9 | #include <stddef.h> |
10 | 10 | ||
11 | typedef size_t (*cmdedit_strwidth_proc)(char *); | 11 | typedef size_t (*cmdedit_strwidth_proc)(char *); |
@@ -21,18 +21,6 @@ extern int (*cmdedit_in_hook)(char *); | |||
21 | extern int (*cmdedit_out_hook)(char *); | 21 | extern int (*cmdedit_out_hook)(char *); |
22 | extern int (*cmdedit_tab_hook)(char *, int, int *); | 22 | extern int (*cmdedit_tab_hook)(char *, int, int *); |
23 | 23 | ||
24 | #else /* not __STDC__ */ | 24 | #endif /* BB_FEATURE_SH_COMMAND_EDITING */ |
25 | |||
26 | void cmdedit_init(void); | ||
27 | void cmdedit_read_input(char* promptStr, char* command); | ||
28 | void cmdedit_setwidth(); | ||
29 | void cmdedit_histadd(); | ||
30 | void cmdedit_strwidth(); | ||
31 | |||
32 | extern int (*cmdedit_in_hook)(); | ||
33 | extern int (*cmdedit_out_hook)(); | ||
34 | extern int (*cmdedit_tab_hook)(); | ||
35 | |||
36 | #endif /* __STDC__ */ | ||
37 | 25 | ||
38 | #endif /* CMDEDIT_H */ | 26 | #endif /* CMDEDIT_H */ |
diff --git a/util-linux/nfsmount.h b/util-linux/nfsmount.h index a12de50a1..4f39ff2a8 100644 --- a/util-linux/nfsmount.h +++ b/util-linux/nfsmount.h | |||
@@ -150,7 +150,6 @@ typedef struct ppathcnf ppathcnf; | |||
150 | #define MOUNTPROG 100005 | 150 | #define MOUNTPROG 100005 |
151 | #define MOUNTVERS 1 | 151 | #define MOUNTVERS 1 |
152 | 152 | ||
153 | #if defined(__STDC__) || defined(__cplusplus) | ||
154 | #define MOUNTPROC_NULL 0 | 153 | #define MOUNTPROC_NULL 0 |
155 | extern void * mountproc_null_1(void *, CLIENT *); | 154 | extern void * mountproc_null_1(void *, CLIENT *); |
156 | extern void * mountproc_null_1_svc(void *, struct svc_req *); | 155 | extern void * mountproc_null_1_svc(void *, struct svc_req *); |
@@ -174,33 +173,8 @@ extern exports * mountproc_exportall_1(void *, CLIENT *); | |||
174 | extern exports * mountproc_exportall_1_svc(void *, struct svc_req *); | 173 | extern exports * mountproc_exportall_1_svc(void *, struct svc_req *); |
175 | extern int mountprog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t); | 174 | extern int mountprog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t); |
176 | 175 | ||
177 | #else /* K&R C */ | ||
178 | #define MOUNTPROC_NULL 0 | ||
179 | extern void * mountproc_null_1(); | ||
180 | extern void * mountproc_null_1_svc(); | ||
181 | #define MOUNTPROC_MNT 1 | ||
182 | extern fhstatus * mountproc_mnt_1(); | ||
183 | extern fhstatus * mountproc_mnt_1_svc(); | ||
184 | #define MOUNTPROC_DUMP 2 | ||
185 | extern mountlist * mountproc_dump_1(); | ||
186 | extern mountlist * mountproc_dump_1_svc(); | ||
187 | #define MOUNTPROC_UMNT 3 | ||
188 | extern void * mountproc_umnt_1(); | ||
189 | extern void * mountproc_umnt_1_svc(); | ||
190 | #define MOUNTPROC_UMNTALL 4 | ||
191 | extern void * mountproc_umntall_1(); | ||
192 | extern void * mountproc_umntall_1_svc(); | ||
193 | #define MOUNTPROC_EXPORT 5 | ||
194 | extern exports * mountproc_export_1(); | ||
195 | extern exports * mountproc_export_1_svc(); | ||
196 | #define MOUNTPROC_EXPORTALL 6 | ||
197 | extern exports * mountproc_exportall_1(); | ||
198 | extern exports * mountproc_exportall_1_svc(); | ||
199 | extern int mountprog_1_freeresult (); | ||
200 | #endif /* K&R C */ | ||
201 | #define MOUNTVERS_POSIX 2 | 176 | #define MOUNTVERS_POSIX 2 |
202 | 177 | ||
203 | #if defined(__STDC__) || defined(__cplusplus) | ||
204 | extern void * mountproc_null_2(void *, CLIENT *); | 178 | extern void * mountproc_null_2(void *, CLIENT *); |
205 | extern void * mountproc_null_2_svc(void *, struct svc_req *); | 179 | extern void * mountproc_null_2_svc(void *, struct svc_req *); |
206 | extern fhstatus * mountproc_mnt_2(dirpath *, CLIENT *); | 180 | extern fhstatus * mountproc_mnt_2(dirpath *, CLIENT *); |
@@ -220,29 +194,8 @@ extern ppathcnf * mountproc_pathconf_2(dirpath *, CLIENT *); | |||
220 | extern ppathcnf * mountproc_pathconf_2_svc(dirpath *, struct svc_req *); | 194 | extern ppathcnf * mountproc_pathconf_2_svc(dirpath *, struct svc_req *); |
221 | extern int mountprog_2_freeresult (SVCXPRT *, xdrproc_t, caddr_t); | 195 | extern int mountprog_2_freeresult (SVCXPRT *, xdrproc_t, caddr_t); |
222 | 196 | ||
223 | #else /* K&R C */ | ||
224 | extern void * mountproc_null_2(); | ||
225 | extern void * mountproc_null_2_svc(); | ||
226 | extern fhstatus * mountproc_mnt_2(); | ||
227 | extern fhstatus * mountproc_mnt_2_svc(); | ||
228 | extern mountlist * mountproc_dump_2(); | ||
229 | extern mountlist * mountproc_dump_2_svc(); | ||
230 | extern void * mountproc_umnt_2(); | ||
231 | extern void * mountproc_umnt_2_svc(); | ||
232 | extern void * mountproc_umntall_2(); | ||
233 | extern void * mountproc_umntall_2_svc(); | ||
234 | extern exports * mountproc_export_2(); | ||
235 | extern exports * mountproc_export_2_svc(); | ||
236 | extern exports * mountproc_exportall_2(); | ||
237 | extern exports * mountproc_exportall_2_svc(); | ||
238 | #define MOUNTPROC_PATHCONF 7 | ||
239 | extern ppathcnf * mountproc_pathconf_2(); | ||
240 | extern ppathcnf * mountproc_pathconf_2_svc(); | ||
241 | extern int mountprog_2_freeresult (); | ||
242 | #endif /* K&R C */ | ||
243 | #define MOUNT_V3 3 | 197 | #define MOUNT_V3 3 |
244 | 198 | ||
245 | #if defined(__STDC__) || defined(__cplusplus) | ||
246 | #define MOUNTPROC3_NULL 0 | 199 | #define MOUNTPROC3_NULL 0 |
247 | extern void * mountproc3_null_3(void *, CLIENT *); | 200 | extern void * mountproc3_null_3(void *, CLIENT *); |
248 | extern void * mountproc3_null_3_svc(void *, struct svc_req *); | 201 | extern void * mountproc3_null_3_svc(void *, struct svc_req *); |
@@ -263,31 +216,8 @@ extern exports * mountproc3_export_3(void *, CLIENT *); | |||
263 | extern exports * mountproc3_export_3_svc(void *, struct svc_req *); | 216 | extern exports * mountproc3_export_3_svc(void *, struct svc_req *); |
264 | extern int mountprog_3_freeresult (SVCXPRT *, xdrproc_t, caddr_t); | 217 | extern int mountprog_3_freeresult (SVCXPRT *, xdrproc_t, caddr_t); |
265 | 218 | ||
266 | #else /* K&R C */ | ||
267 | #define MOUNTPROC3_NULL 0 | ||
268 | extern void * mountproc3_null_3(); | ||
269 | extern void * mountproc3_null_3_svc(); | ||
270 | #define MOUNTPROC3_MNT 1 | ||
271 | extern mountres3 * mountproc3_mnt_3(); | ||
272 | extern mountres3 * mountproc3_mnt_3_svc(); | ||
273 | #define MOUNTPROC3_DUMP 2 | ||
274 | extern mountlist * mountproc3_dump_3(); | ||
275 | extern mountlist * mountproc3_dump_3_svc(); | ||
276 | #define MOUNTPROC3_UMNT 3 | ||
277 | extern void * mountproc3_umnt_3(); | ||
278 | extern void * mountproc3_umnt_3_svc(); | ||
279 | #define MOUNTPROC3_UMNTALL 4 | ||
280 | extern void * mountproc3_umntall_3(); | ||
281 | extern void * mountproc3_umntall_3_svc(); | ||
282 | #define MOUNTPROC3_EXPORT 5 | ||
283 | extern exports * mountproc3_export_3(); | ||
284 | extern exports * mountproc3_export_3_svc(); | ||
285 | extern int mountprog_3_freeresult (); | ||
286 | #endif /* K&R C */ | ||
287 | |||
288 | /* the xdr functions */ | 219 | /* the xdr functions */ |
289 | 220 | ||
290 | #if defined(__STDC__) || defined(__cplusplus) | ||
291 | extern bool_t xdr_fhandle (XDR *, fhandle); | 221 | extern bool_t xdr_fhandle (XDR *, fhandle); |
292 | extern bool_t xdr_fhandle3 (XDR *, fhandle3*); | 222 | extern bool_t xdr_fhandle3 (XDR *, fhandle3*); |
293 | extern bool_t xdr_mountstat3 (XDR *, mountstat3*); | 223 | extern bool_t xdr_mountstat3 (XDR *, mountstat3*); |
@@ -304,25 +234,6 @@ extern bool_t xdr_exports (XDR *, exports*); | |||
304 | extern bool_t xdr_exportnode (XDR *, exportnode*); | 234 | extern bool_t xdr_exportnode (XDR *, exportnode*); |
305 | extern bool_t xdr_ppathcnf (XDR *, ppathcnf*); | 235 | extern bool_t xdr_ppathcnf (XDR *, ppathcnf*); |
306 | 236 | ||
307 | #else /* K&R C */ | ||
308 | extern bool_t xdr_fhandle (); | ||
309 | extern bool_t xdr_fhandle3 (); | ||
310 | extern bool_t xdr_mountstat3 (); | ||
311 | extern bool_t xdr_fhstatus (); | ||
312 | extern bool_t xdr_mountres3_ok (); | ||
313 | extern bool_t xdr_mountres3 (); | ||
314 | extern bool_t xdr_dirpath (); | ||
315 | extern bool_t xdr_name (); | ||
316 | extern bool_t xdr_mountlist (); | ||
317 | extern bool_t xdr_mountbody (); | ||
318 | extern bool_t xdr_groups (); | ||
319 | extern bool_t xdr_groupnode (); | ||
320 | extern bool_t xdr_exports (); | ||
321 | extern bool_t xdr_exportnode (); | ||
322 | extern bool_t xdr_ppathcnf (); | ||
323 | |||
324 | #endif /* K&R C */ | ||
325 | |||
326 | #ifdef __cplusplus | 237 | #ifdef __cplusplus |
327 | } | 238 | } |
328 | #endif | 239 | #endif |