Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 530080 | Differences between
and this patch

Collapse All | Expand All

(-)./tirpc/rpc/xdr.h (+16 lines)
Lines 287-293 struct xdr_discrim { Link Here
287
/*
287
/*
288
 * These are the "generic" xdr routines.
288
 * These are the "generic" xdr routines.
289
 */
289
 */
290
#ifdef __GLIBC__
290
__BEGIN_DECLS
291
__BEGIN_DECLS
292
#elif defined(__cplusplus)
293
extern "C" {
294
#endif
291
extern bool_t	xdr_void(void);
295
extern bool_t	xdr_void(void);
292
extern bool_t	xdr_int(XDR *, int *);
296
extern bool_t	xdr_int(XDR *, int *);
293
extern bool_t	xdr_u_int(XDR *, u_int *);
297
extern bool_t	xdr_u_int(XDR *, u_int *);
Lines 330-336 extern bool_t xdr_hyper(XDR *, quad_t *) Link Here
330
extern bool_t	xdr_u_hyper(XDR *, u_quad_t *);
334
extern bool_t	xdr_u_hyper(XDR *, u_quad_t *);
331
extern bool_t	xdr_longlong_t(XDR *, quad_t *);
335
extern bool_t	xdr_longlong_t(XDR *, quad_t *);
332
extern bool_t	xdr_u_longlong_t(XDR *, u_quad_t *);
336
extern bool_t	xdr_u_longlong_t(XDR *, u_quad_t *);
337
#ifdef __GLIBC__
333
__END_DECLS
338
__END_DECLS
339
#elif defined(__cplusplus)
340
}
341
#endif
334
342
335
/*
343
/*
336
 * Common opaque bytes objects used by many rpc protocols;
344
 * Common opaque bytes objects used by many rpc protocols;
Lines 348-354 extern bool_t xdr_netobj(XDR *, struct Link Here
348
 * These are the public routines for the various implementations of
356
 * These are the public routines for the various implementations of
349
 * xdr streams.
357
 * xdr streams.
350
 */
358
 */
359
#ifdef __GLIBC__
351
__BEGIN_DECLS
360
__BEGIN_DECLS
361
#elif defined(__cplusplus)
362
extern "C" {
363
#endif
352
/* XDR using memory buffers */
364
/* XDR using memory buffers */
353
extern void   xdrmem_create(XDR *, char *, u_int, enum xdr_op);
365
extern void   xdrmem_create(XDR *, char *, u_int, enum xdr_op);
354
366
Lines 369-374 extern bool_t xdrrec_skiprecord(XDR *); Link Here
369
/* true if no more input */
381
/* true if no more input */
370
extern bool_t xdrrec_eof(XDR *);
382
extern bool_t xdrrec_eof(XDR *);
371
extern u_int xdrrec_readbytes(XDR *, caddr_t, u_int);
383
extern u_int xdrrec_readbytes(XDR *, caddr_t, u_int);
384
#ifdef __GLIBC__
372
__END_DECLS
385
__END_DECLS
386
#elif defined(__cplusplus)
387
}
388
#endif
373
389
374
#endif /* !_TIRPC_XDR_H */
390
#endif /* !_TIRPC_XDR_H */
(-)./tirpc/rpc/auth_des.h (+16 lines)
Lines 114-130 struct authdes_verf { Link Here
114
 * Map a des credential into a unix cred.
114
 * Map a des credential into a unix cred.
115
 *
115
 *
116
 */
116
 */
117
#ifdef __GLIBC__
117
__BEGIN_DECLS
118
__BEGIN_DECLS
119
#elif defined(__cplusplus)
120
extern "C" {
121
#endif
118
extern int authdes_getucred( struct authdes_cred *, uid_t *, gid_t *, int *, gid_t * );
122
extern int authdes_getucred( struct authdes_cred *, uid_t *, gid_t *, int *, gid_t * );
123
#ifdef __GLIBC__
119
__END_DECLS
124
__END_DECLS
125
#elif defined(__cplusplus)
126
}
127
#endif
120
128
129
#ifdef __GLIBC__
121
__BEGIN_DECLS
130
__BEGIN_DECLS
131
#elif defined(__cplusplus)
132
extern "C" {
133
#endif
122
extern bool_t	xdr_authdes_cred(XDR *, struct authdes_cred *);
134
extern bool_t	xdr_authdes_cred(XDR *, struct authdes_cred *);
123
extern bool_t	xdr_authdes_verf(XDR *, struct authdes_verf *);
135
extern bool_t	xdr_authdes_verf(XDR *, struct authdes_verf *);
124
extern int	rtime(dev_t, struct netbuf *, int, struct timeval *,
136
extern int	rtime(dev_t, struct netbuf *, int, struct timeval *,
125
		    struct timeval *);
137
		    struct timeval *);
126
extern void	kgetnetname(char *);
138
extern void	kgetnetname(char *);
127
extern enum auth_stat _svcauth_des(struct svc_req *, struct rpc_msg *);
139
extern enum auth_stat _svcauth_des(struct svc_req *, struct rpc_msg *);
140
#ifdef __GLIBC__
128
__END_DECLS
141
__END_DECLS
142
#elif defined(__cplusplus)
143
}
144
#endif
129
145
130
#endif /* ndef _TI_AUTH_DES_ */
146
#endif /* ndef _TI_AUTH_DES_ */
(-)./tirpc/rpc/pmap_prot.h (+8 lines)
Lines 97-106 struct pmaplist { Link Here
97
	struct pmaplist *pml_next;
97
	struct pmaplist *pml_next;
98
};
98
};
99
99
100
#ifdef __GLIBC__
100
__BEGIN_DECLS
101
__BEGIN_DECLS
102
#elif defined(__cplusplus)
103
extern "C" {
104
#endif
101
extern bool_t xdr_pmap(XDR *, struct pmap *);
105
extern bool_t xdr_pmap(XDR *, struct pmap *);
102
extern bool_t xdr_pmaplist(XDR *, struct pmaplist **);
106
extern bool_t xdr_pmaplist(XDR *, struct pmaplist **);
103
extern bool_t xdr_pmaplist_ptr(XDR *, struct pmaplist *);
107
extern bool_t xdr_pmaplist_ptr(XDR *, struct pmaplist *);
108
#ifdef __GLIBC__
104
__END_DECLS
109
__END_DECLS
110
#elif defined(__cplusplus)
111
}
112
#endif
105
113
106
#endif /* !_RPC_PMAP_PROT_H */
114
#endif /* !_RPC_PMAP_PROT_H */
(-)./tirpc/rpc/auth.h (+88 lines)
Lines 164-172 union des_block { Link Here
164
	char c[8];
164
	char c[8];
165
};
165
};
166
typedef union des_block des_block;
166
typedef union des_block des_block;
167
#ifdef __GLIBC__
167
__BEGIN_DECLS
168
__BEGIN_DECLS
169
#elif defined(__cplusplus)
170
extern "C" {
171
#endif
168
extern bool_t xdr_des_block(XDR *, des_block *);
172
extern bool_t xdr_des_block(XDR *, des_block *);
173
#ifdef __GLIBC__
169
__END_DECLS
174
__END_DECLS
175
#elif defined(__cplusplus)
176
}
177
#endif
170
178
171
/*
179
/*
172
 * Authentication info.  Opaque to client.
180
 * Authentication info.  Opaque to client.
Lines 277-285 auth_put(AUTH *auth) Link Here
277
		xfunc, xwhere))
285
		xfunc, xwhere))
278
286
279
287
288
#ifdef __GLIBC__
280
__BEGIN_DECLS
289
__BEGIN_DECLS
290
#elif defined(__cplusplus)
291
extern "C" {
292
#endif
281
extern struct opaque_auth _null_auth;
293
extern struct opaque_auth _null_auth;
294
#ifdef __GLIBC__
282
__END_DECLS
295
__END_DECLS
296
#elif defined(__cplusplus)
297
}
298
#endif
283
299
284
/*
300
/*
285
 * Any style authentication.  These routines can be used by any
301
 * Any style authentication.  These routines can be used by any
Lines 300-310 int authany_wrap(void), authany_unwrap(v Link Here
300
 *	int len;
316
 *	int len;
301
 *	int *aup_gids;
317
 *	int *aup_gids;
302
 */
318
 */
319
#ifdef __GLIBC__
303
__BEGIN_DECLS
320
__BEGIN_DECLS
321
#elif defined(__cplusplus)
322
extern "C" {
323
#endif
304
extern AUTH *authunix_create(char *, uid_t, uid_t, int, uid_t *);
324
extern AUTH *authunix_create(char *, uid_t, uid_t, int, uid_t *);
305
extern AUTH *authunix_create_default(void);	/* takes no parameters */
325
extern AUTH *authunix_create_default(void);	/* takes no parameters */
306
extern AUTH *authnone_create(void);		/* takes no parameters */
326
extern AUTH *authnone_create(void);		/* takes no parameters */
327
#ifdef __GLIBC__
307
__END_DECLS
328
__END_DECLS
329
#elif defined(__cplusplus)
330
}
331
#endif
308
/*
332
/*
309
 * DES style authentication
333
 * DES style authentication
310
 * AUTH *authsecdes_create(servername, window, timehost, ckey)
334
 * AUTH *authsecdes_create(servername, window, timehost, ckey)
Lines 313-327 __END_DECLS Link Here
313
 * 	const char *timehost;			- optional hostname to sync with
337
 * 	const char *timehost;			- optional hostname to sync with
314
 * 	des_block *ckey;		- optional conversation key to use
338
 * 	des_block *ckey;		- optional conversation key to use
315
 */
339
 */
340
#ifdef __GLIBC__
316
__BEGIN_DECLS
341
__BEGIN_DECLS
342
#elif defined(__cplusplus)
343
extern "C" {
344
#endif
317
extern AUTH *authdes_create (char *, u_int, struct sockaddr *, des_block *);
345
extern AUTH *authdes_create (char *, u_int, struct sockaddr *, des_block *);
318
extern AUTH *authdes_seccreate (const char *, const u_int, const  char *,
346
extern AUTH *authdes_seccreate (const char *, const u_int, const  char *,
319
    const  des_block *);
347
    const  des_block *);
348
#ifdef __GLIBC__
320
__END_DECLS
349
__END_DECLS
350
#elif defined(__cplusplus)
351
}
352
#endif
321
353
354
#ifdef __GLIBC__
322
__BEGIN_DECLS
355
__BEGIN_DECLS
356
#elif defined(__cplusplus)
357
extern "C" {
358
#endif
323
extern bool_t xdr_opaque_auth		(XDR *, struct opaque_auth *);
359
extern bool_t xdr_opaque_auth		(XDR *, struct opaque_auth *);
360
#ifdef __GLIBC__
324
__END_DECLS
361
__END_DECLS
362
#elif defined(__cplusplus)
363
}
364
#endif
325
365
326
#define authsys_create(c,i1,i2,i3,ip) authunix_create((c),(i1),(i2),(i3),(ip))
366
#define authsys_create(c,i1,i2,i3,ip) authunix_create((c),(i1),(i2),(i3),(ip))
327
#define authsys_create_default() authunix_create_default()
367
#define authsys_create_default() authunix_create_default()
Lines 329-364 __END_DECLS Link Here
329
/*
369
/*
330
 * Netname manipulation routines.
370
 * Netname manipulation routines.
331
 */
371
 */
372
#ifdef __GLIBC__
332
__BEGIN_DECLS
373
__BEGIN_DECLS
374
#elif defined(__cplusplus)
375
extern "C" {
376
#endif
333
extern int getnetname(char *);
377
extern int getnetname(char *);
334
extern int host2netname(char *, const char *, const char *);
378
extern int host2netname(char *, const char *, const char *);
335
extern int user2netname(char *, const uid_t, const char *);
379
extern int user2netname(char *, const uid_t, const char *);
336
extern int netname2user(char *, uid_t *, gid_t *, int *, gid_t *);
380
extern int netname2user(char *, uid_t *, gid_t *, int *, gid_t *);
337
extern int netname2host(char *, char *, const int);
381
extern int netname2host(char *, char *, const int);
338
extern void passwd2des ( char *, char * );
382
extern void passwd2des ( char *, char * );
383
#ifdef __GLIBC__
339
__END_DECLS
384
__END_DECLS
385
#elif defined(__cplusplus)
386
}
387
#endif
340
388
341
/*
389
/*
342
 *
390
 *
343
 * These routines interface to the keyserv daemon
391
 * These routines interface to the keyserv daemon
344
 *
392
 *
345
 */
393
 */
394
#ifdef __GLIBC__
346
__BEGIN_DECLS
395
__BEGIN_DECLS
396
#elif defined(__cplusplus)
397
extern "C" {
398
#endif
347
extern int key_decryptsession(const char *, des_block *);
399
extern int key_decryptsession(const char *, des_block *);
348
extern int key_encryptsession(const char *, des_block *);
400
extern int key_encryptsession(const char *, des_block *);
349
extern int key_gendes(des_block *);
401
extern int key_gendes(des_block *);
350
extern int key_setsecret(const char *);
402
extern int key_setsecret(const char *);
351
extern int key_secretkey_is_set(void);
403
extern int key_secretkey_is_set(void);
404
#ifdef __GLIBC__
352
__END_DECLS
405
__END_DECLS
406
#elif defined(__cplusplus)
407
}
408
#endif
353
409
354
/*
410
/*
355
 * Publickey routines.
411
 * Publickey routines.
356
 */
412
 */
413
#ifdef __GLIBC__
357
__BEGIN_DECLS
414
__BEGIN_DECLS
415
#elif defined(__cplusplus)
416
extern "C" {
417
#endif
358
extern int getpublickey (const char *, char *);
418
extern int getpublickey (const char *, char *);
359
extern int getpublicandprivatekey (char *, char *);
419
extern int getpublicandprivatekey (char *, char *);
360
extern int getsecretkey (char *, char *, char *);
420
extern int getsecretkey (char *, char *, char *);
421
#ifdef __GLIBC__
361
__END_DECLS
422
__END_DECLS
423
#elif defined(__cplusplus)
424
}
425
#endif
362
426
363
#ifdef KERBEROS
427
#ifdef KERBEROS
364
/*
428
/*
Lines 371-380 __END_DECLS Link Here
371
 *	const char *timehost;			- optional hostname to sync with
435
 *	const char *timehost;			- optional hostname to sync with
372
 *	int *status;				- kerberos status returned
436
 *	int *status;				- kerberos status returned
373
 */
437
 */
438
#ifdef __GLIBC__
374
__BEGIN_DECLS
439
__BEGIN_DECLS
440
#elif defined(__cplusplus)
441
extern "C" {
442
#endif
375
extern AUTH	*authkerb_seccreate(const char *, const char *, const  char *,
443
extern AUTH	*authkerb_seccreate(const char *, const char *, const  char *,
376
		    const u_int, const char *, int *);
444
		    const u_int, const char *, int *);
445
#ifdef __GLIBC__
377
__END_DECLS
446
__END_DECLS
447
#elif defined(__cplusplus)
448
}
449
#endif
378
450
379
/*
451
/*
380
 * Map a kerberos credential into a unix cred.
452
 * Map a kerberos credential into a unix cred.
Lines 387-405 __END_DECLS Link Here
387
 *	int *groups;
459
 *	int *groups;
388
 *
460
 *
389
 */
461
 */
462
#ifdef __GLIBC__
390
__BEGIN_DECLS
463
__BEGIN_DECLS
464
#elif defined(__cplusplus)
465
extern "C" {
466
#endif
391
extern int	authkerb_getucred(/* struct svc_req *, uid_t *, gid_t *,
467
extern int	authkerb_getucred(/* struct svc_req *, uid_t *, gid_t *,
392
		    short *, int * */);
468
		    short *, int * */);
469
#ifdef __GLIBC__
393
__END_DECLS
470
__END_DECLS
471
#elif defined(__cplusplus)
472
}
473
#endif
394
#endif /* KERBEROS */
474
#endif /* KERBEROS */
395
475
476
#ifdef __GLIBC__
396
__BEGIN_DECLS
477
__BEGIN_DECLS
478
#elif defined(__cplusplus)
479
extern "C" {
480
#endif
397
struct svc_req;
481
struct svc_req;
398
struct rpc_msg;
482
struct rpc_msg;
399
enum auth_stat _svcauth_none (struct svc_req *, struct rpc_msg *);
483
enum auth_stat _svcauth_none (struct svc_req *, struct rpc_msg *);
400
enum auth_stat _svcauth_short (struct svc_req *, struct rpc_msg *);
484
enum auth_stat _svcauth_short (struct svc_req *, struct rpc_msg *);
401
enum auth_stat _svcauth_unix (struct svc_req *, struct rpc_msg *);
485
enum auth_stat _svcauth_unix (struct svc_req *, struct rpc_msg *);
486
#ifdef __GLIBC__
402
__END_DECLS
487
__END_DECLS
488
#elif defined(__cplusplus)
489
}
490
#endif
403
491
404
#define AUTH_NONE	0		/* no authentication */
492
#define AUTH_NONE	0		/* no authentication */
405
#define	AUTH_NULL	0		/* backward compatibility */
493
#define	AUTH_NULL	0		/* backward compatibility */
(-)./tirpc/rpc/svc.h (+64 lines)
Lines 200-210 struct svc_req { Link Here
200
 *	const struct netconfig *nconf;
200
 *	const struct netconfig *nconf;
201
 */
201
 */
202
202
203
#ifdef __GLIBC__
203
__BEGIN_DECLS
204
__BEGIN_DECLS
205
#elif defined(__cplusplus)
206
extern "C" {
207
#endif
204
extern bool_t	svc_reg(SVCXPRT *, const rpcprog_t, const rpcvers_t,
208
extern bool_t	svc_reg(SVCXPRT *, const rpcprog_t, const rpcvers_t,
205
			void (*)(struct svc_req *, SVCXPRT *),
209
			void (*)(struct svc_req *, SVCXPRT *),
206
			const struct netconfig *);
210
			const struct netconfig *);
211
#ifdef __GLIBC__
207
__END_DECLS
212
__END_DECLS
213
#elif defined(__cplusplus)
214
}
215
#endif
208
216
209
/*
217
/*
210
 * Service un-registration
218
 * Service un-registration
Lines 214-222 __END_DECLS Link Here
214
 *	const rpcvers_t vers;
222
 *	const rpcvers_t vers;
215
 */
223
 */
216
224
225
#ifdef __GLIBC__
217
__BEGIN_DECLS
226
__BEGIN_DECLS
227
#elif defined(__cplusplus)
228
extern "C" {
229
#endif
218
extern void	svc_unreg(const rpcprog_t, const rpcvers_t);
230
extern void	svc_unreg(const rpcprog_t, const rpcvers_t);
231
#ifdef __GLIBC__
219
__END_DECLS
232
__END_DECLS
233
#elif defined(__cplusplus)
234
}
235
#endif
220
236
221
/*
237
/*
222
 * Transport registration.
238
 * Transport registration.
Lines 224-232 __END_DECLS Link Here
224
 * xprt_register(xprt)
240
 * xprt_register(xprt)
225
 *	SVCXPRT *xprt;
241
 *	SVCXPRT *xprt;
226
 */
242
 */
243
#ifdef __GLIBC__
227
__BEGIN_DECLS
244
__BEGIN_DECLS
245
#elif defined(__cplusplus)
246
extern "C" {
247
#endif
228
extern void	xprt_register(SVCXPRT *);
248
extern void	xprt_register(SVCXPRT *);
249
#ifdef __GLIBC__
229
__END_DECLS
250
__END_DECLS
251
#elif defined(__cplusplus)
252
}
253
#endif
230
254
231
/*
255
/*
232
 * Transport un-register
256
 * Transport un-register
Lines 234-242 __END_DECLS Link Here
234
 * xprt_unregister(xprt)
258
 * xprt_unregister(xprt)
235
 *	SVCXPRT *xprt;
259
 *	SVCXPRT *xprt;
236
 */
260
 */
261
#ifdef __GLIBC__
237
__BEGIN_DECLS
262
__BEGIN_DECLS
263
#elif defined(__cplusplus)
264
extern "C" {
265
#endif
238
extern void	xprt_unregister(SVCXPRT *);
266
extern void	xprt_unregister(SVCXPRT *);
267
#ifdef __GLIBC__
239
__END_DECLS
268
__END_DECLS
269
#elif defined(__cplusplus)
270
}
271
#endif
240
272
241
273
242
/*
274
/*
Lines 265-271 __END_DECLS Link Here
265
 * deadlock the caller and server processes!
297
 * deadlock the caller and server processes!
266
 */
298
 */
267
299
300
#ifdef __GLIBC__
268
__BEGIN_DECLS
301
__BEGIN_DECLS
302
#elif defined(__cplusplus)
303
extern "C" {
304
#endif
269
extern bool_t	svc_sendreply(SVCXPRT *, xdrproc_t, void *);
305
extern bool_t	svc_sendreply(SVCXPRT *, xdrproc_t, void *);
270
extern void	svcerr_decode(SVCXPRT *);
306
extern void	svcerr_decode(SVCXPRT *);
271
extern void	svcerr_weakauth(SVCXPRT *);
307
extern void	svcerr_weakauth(SVCXPRT *);
Lines 277-283 extern void svcerr_systemerr(SVCXPRT *); Link Here
277
extern int	rpc_reg(rpcprog_t, rpcvers_t, rpcproc_t,
313
extern int	rpc_reg(rpcprog_t, rpcvers_t, rpcproc_t,
278
			char *(*)(char *), xdrproc_t, xdrproc_t,
314
			char *(*)(char *), xdrproc_t, xdrproc_t,
279
			char *);
315
			char *);
316
#ifdef __GLIBC__
280
__END_DECLS
317
__END_DECLS
318
#elif defined(__cplusplus)
319
}
320
#endif
281
321
282
/*
322
/*
283
 * Lowest level dispatching -OR- who owns this process anyway.
323
 * Lowest level dispatching -OR- who owns this process anyway.
Lines 306-316 extern int svc_fds; Link Here
306
 * a small program implemented by the svc_rpc implementation itself;
346
 * a small program implemented by the svc_rpc implementation itself;
307
 * also see clnt.h for protocol numbers.
347
 * also see clnt.h for protocol numbers.
308
 */
348
 */
349
#ifdef __GLIBC__
309
__BEGIN_DECLS
350
__BEGIN_DECLS
351
#elif defined(__cplusplus)
352
extern "C" {
353
#endif
310
extern void rpctest_service(void);
354
extern void rpctest_service(void);
355
#ifdef __GLIBC__
311
__END_DECLS
356
__END_DECLS
357
#elif defined(__cplusplus)
358
}
359
#endif
312
360
361
#ifdef __GLIBC__
313
__BEGIN_DECLS
362
__BEGIN_DECLS
363
#elif defined(__cplusplus)
364
extern "C" {
365
#endif
314
extern void	svc_getreq(int);
366
extern void	svc_getreq(int);
315
extern void	svc_getreqset(fd_set *);
367
extern void	svc_getreqset(fd_set *);
316
extern void	svc_getreq_common(int);
368
extern void	svc_getreq_common(int);
Lines 319-325 extern void svc_getreq_poll(struct pollf Link Here
319
371
320
extern void	svc_run(void);
372
extern void	svc_run(void);
321
extern void	svc_exit(void);
373
extern void	svc_exit(void);
374
#ifdef __GLIBC__
322
__END_DECLS
375
__END_DECLS
376
#elif defined(__cplusplus)
377
}
378
#endif
323
379
324
/*
380
/*
325
 * Socket to use on svcxxx_create call to get default socket
381
 * Socket to use on svcxxx_create call to get default socket
Lines 331-337 __END_DECLS Link Here
331
 * These are the existing service side transport implementations
387
 * These are the existing service side transport implementations
332
 */
388
 */
333
389
390
#ifdef __GLIBC__
334
__BEGIN_DECLS
391
__BEGIN_DECLS
392
#elif defined(__cplusplus)
393
extern "C" {
394
#endif
335
/*
395
/*
336
 * Transport independent svc_create routine.
396
 * Transport independent svc_create routine.
337
 */
397
 */
Lines 427-433 int svc_dg_enablecache(SVCXPRT *, const Link Here
427
487
428
int __rpc_get_local_uid(SVCXPRT *_transp, uid_t *_uid);
488
int __rpc_get_local_uid(SVCXPRT *_transp, uid_t *_uid);
429
489
490
#ifdef __GLIBC__
430
__END_DECLS
491
__END_DECLS
492
#elif defined(__cplusplus)
493
}
494
#endif
431
495
432
496
433
/* for backward compatibility */
497
/* for backward compatibility */
(-)./tirpc/rpc/rpc.h (+16 lines)
Lines 79-85 Link Here
79
#define UDPMSGSIZE 8800
79
#define UDPMSGSIZE 8800
80
#endif
80
#endif
81
81
82
#ifdef __GLIBC__
82
__BEGIN_DECLS
83
__BEGIN_DECLS
84
#elif defined(__cplusplus)
85
extern "C" {
86
#endif
83
extern int get_myaddress(struct sockaddr_in *);
87
extern int get_myaddress(struct sockaddr_in *);
84
extern int bindresvport(int, struct sockaddr_in *) __THROW;
88
extern int bindresvport(int, struct sockaddr_in *) __THROW;
85
extern int registerrpc(int, int, int, char *(*)(char [UDPMSGSIZE]),
89
extern int registerrpc(int, int, int, char *(*)(char [UDPMSGSIZE]),
Lines 93-110 struct netbuf *uaddr2taddr(const struct Link Here
93
97
94
struct sockaddr;
98
struct sockaddr;
95
extern int bindresvport_sa(int, struct sockaddr *);
99
extern int bindresvport_sa(int, struct sockaddr *);
100
#ifdef __GLIBC__
96
__END_DECLS
101
__END_DECLS
102
#elif defined(__cplusplus)
103
}
104
#endif
97
105
98
/*
106
/*
99
 * The following are not exported interfaces, they are for internal library
107
 * The following are not exported interfaces, they are for internal library
100
 * and rpcbind use only. Do not use, they may change without notice.
108
 * and rpcbind use only. Do not use, they may change without notice.
101
 */
109
 */
110
#ifdef __GLIBC__
102
__BEGIN_DECLS
111
__BEGIN_DECLS
112
#elif defined(__cplusplus)
113
extern "C" {
114
#endif
103
int __rpc_nconf2fd(const struct netconfig *);
115
int __rpc_nconf2fd(const struct netconfig *);
104
int __rpc_nconf2fd_flags(const struct netconfig *, int);
116
int __rpc_nconf2fd_flags(const struct netconfig *, int);
105
int __rpc_nconf2sockinfo(const struct netconfig *, struct __rpc_sockinfo *);
117
int __rpc_nconf2sockinfo(const struct netconfig *, struct __rpc_sockinfo *);
106
int __rpc_fd2sockinfo(int, struct __rpc_sockinfo *);
118
int __rpc_fd2sockinfo(int, struct __rpc_sockinfo *);
107
u_int __rpc_get_t_size(int, int, int);
119
u_int __rpc_get_t_size(int, int, int);
120
#ifdef __GLIBC__
108
__END_DECLS
121
__END_DECLS
122
#elif defined(__cplusplus)
123
}
124
#endif
109
125
110
#endif /* !_RPC_RPC_H */
126
#endif /* !_RPC_RPC_H */
(-)./tirpc/rpc/svc_soc.h (+48 lines)
Lines 64-73 Link Here
64
 *	void (*dispatch)();
64
 *	void (*dispatch)();
65
 *	int protocol;    like TCP or UDP, zero means do not register 
65
 *	int protocol;    like TCP or UDP, zero means do not register 
66
 */
66
 */
67
#ifdef __GLIBC__
67
__BEGIN_DECLS
68
__BEGIN_DECLS
69
#elif defined(__cplusplus)
70
extern "C" {
71
#endif
68
extern bool_t	svc_register(SVCXPRT *, u_long, u_long,
72
extern bool_t	svc_register(SVCXPRT *, u_long, u_long,
69
		    void (*)(struct svc_req *, SVCXPRT *), int);
73
		    void (*)(struct svc_req *, SVCXPRT *), int);
74
#ifdef __GLIBC__
70
__END_DECLS
75
__END_DECLS
76
#elif defined(__cplusplus)
77
}
78
#endif
71
79
72
/*
80
/*
73
 * Service un-registration
81
 * Service un-registration
Lines 76-119 __END_DECLS Link Here
76
 *	u_long prog;
84
 *	u_long prog;
77
 *	u_long vers;
85
 *	u_long vers;
78
 */
86
 */
87
#ifdef __GLIBC__
79
__BEGIN_DECLS
88
__BEGIN_DECLS
89
#elif defined(__cplusplus)
90
extern "C" {
91
#endif
80
extern void	svc_unregister(u_long, u_long);
92
extern void	svc_unregister(u_long, u_long);
93
#ifdef __GLIBC__
81
__END_DECLS
94
__END_DECLS
95
#elif defined(__cplusplus)
96
}
97
#endif
82
98
83
99
84
/*
100
/*
85
 * Memory based rpc for testing and timing.
101
 * Memory based rpc for testing and timing.
86
 */
102
 */
103
#ifdef __GLIBC__
87
__BEGIN_DECLS
104
__BEGIN_DECLS
105
#elif defined(__cplusplus)
106
extern "C" {
107
#endif
88
extern SVCXPRT *svcraw_create(void);
108
extern SVCXPRT *svcraw_create(void);
109
#ifdef __GLIBC__
89
__END_DECLS
110
__END_DECLS
111
#elif defined(__cplusplus)
112
}
113
#endif
90
114
91
115
92
/*
116
/*
93
 * Udp based rpc.
117
 * Udp based rpc.
94
 */
118
 */
119
#ifdef __GLIBC__
95
__BEGIN_DECLS
120
__BEGIN_DECLS
121
#elif defined(__cplusplus)
122
extern "C" {
123
#endif
96
extern SVCXPRT *svcudp_create(int);
124
extern SVCXPRT *svcudp_create(int);
97
extern SVCXPRT *svcudp_bufcreate(int, u_int, u_int);
125
extern SVCXPRT *svcudp_bufcreate(int, u_int, u_int);
98
extern int svcudp_enablecache(SVCXPRT *, u_long);
126
extern int svcudp_enablecache(SVCXPRT *, u_long);
99
extern SVCXPRT *svcudp6_create(int);
127
extern SVCXPRT *svcudp6_create(int);
100
extern SVCXPRT *svcudp6_bufcreate(int, u_int, u_int);
128
extern SVCXPRT *svcudp6_bufcreate(int, u_int, u_int);
129
#ifdef __GLIBC__
101
__END_DECLS
130
__END_DECLS
131
#elif defined(__cplusplus)
132
}
133
#endif
102
134
103
135
104
/*
136
/*
105
 * Tcp based rpc.
137
 * Tcp based rpc.
106
 */
138
 */
139
#ifdef __GLIBC__
107
__BEGIN_DECLS
140
__BEGIN_DECLS
141
#elif defined(__cplusplus)
142
extern "C" {
143
#endif
108
extern SVCXPRT *svctcp_create(int, u_int, u_int);
144
extern SVCXPRT *svctcp_create(int, u_int, u_int);
109
extern SVCXPRT *svctcp6_create(int, u_int, u_int);
145
extern SVCXPRT *svctcp6_create(int, u_int, u_int);
146
#ifdef __GLIBC__
110
__END_DECLS
147
__END_DECLS
148
#elif defined(__cplusplus)
149
}
150
#endif
111
151
112
/*
152
/*
113
 * Fd based rpc.
153
 * Fd based rpc.
114
 */
154
 */
155
#ifdef __GLIBC__
115
__BEGIN_DECLS
156
__BEGIN_DECLS
157
#elif defined(__cplusplus)
158
extern "C" {
159
#endif
116
extern SVCXPRT *svcfd_create(int, u_int, u_int);
160
extern SVCXPRT *svcfd_create(int, u_int, u_int);
161
#ifdef __GLIBC__
117
__END_DECLS
162
__END_DECLS
163
#elif defined(__cplusplus)
164
}
165
#endif
118
166
119
#endif /* !_RPC_SVC_SOC_H */
167
#endif /* !_RPC_SVC_SOC_H */
(-)./tirpc/rpc/clnt_soc.h (+32 lines)
Lines 61-87 Link Here
61
 *	u_int sendsz;
61
 *	u_int sendsz;
62
 *	u_int recvsz;
62
 *	u_int recvsz;
63
 */
63
 */
64
#ifdef __GLIBC__
64
__BEGIN_DECLS
65
__BEGIN_DECLS
66
#elif defined(__cplusplus)
67
extern "C" {
68
#endif
65
extern CLIENT *clnttcp_create(struct sockaddr_in *, u_long, u_long, int *,
69
extern CLIENT *clnttcp_create(struct sockaddr_in *, u_long, u_long, int *,
66
			      u_int, u_int);
70
			      u_int, u_int);
71
#ifdef __GLIBC__
67
__END_DECLS
72
__END_DECLS
73
#elif defined(__cplusplus)
74
}
75
#endif
68
76
69
/*
77
/*
70
 * Raw (memory) rpc.
78
 * Raw (memory) rpc.
71
 */
79
 */
80
#ifdef __GLIBC__
72
__BEGIN_DECLS
81
__BEGIN_DECLS
82
#elif defined(__cplusplus)
83
extern "C" {
84
#endif
73
extern CLIENT *clntraw_create(u_long, u_long);
85
extern CLIENT *clntraw_create(u_long, u_long);
86
#ifdef __GLIBC__
74
__END_DECLS
87
__END_DECLS
88
#elif defined(__cplusplus)
89
}
90
#endif
75
91
76
92
77
/*
93
/*
78
IPv6 socket version 
94
IPv6 socket version 
79
*/
95
*/
80
#ifdef INET6
96
#ifdef INET6
97
#ifdef __GLIBC__
81
__BEGIN_DECLS
98
__BEGIN_DECLS
99
#elif defined(__cplusplus)
100
extern "C" {
101
#endif
82
extern CLIENT *clnttcp6_create(struct sockaddr_in6 *, u_long, u_long, int *,
102
extern CLIENT *clnttcp6_create(struct sockaddr_in6 *, u_long, u_long, int *,
83
			      u_int, u_int);
103
			      u_int, u_int);
104
#ifdef __GLIBC__
84
__END_DECLS
105
__END_DECLS
106
#elif defined(__cplusplus)
107
}
108
#endif
85
#endif
109
#endif
86
110
87
/*
111
/*
Lines 105-111 __END_DECLS Link Here
105
 *	u_int sendsz;
129
 *	u_int sendsz;
106
 *	u_int recvsz;
130
 *	u_int recvsz;
107
 */
131
 */
132
#ifdef __GLIBC__
108
__BEGIN_DECLS
133
__BEGIN_DECLS
134
#elif defined(__cplusplus)
135
extern "C" {
136
#endif
109
extern CLIENT *clntudp_create(struct sockaddr_in *, u_long, u_long, 
137
extern CLIENT *clntudp_create(struct sockaddr_in *, u_long, u_long, 
110
			      struct timeval, int *);
138
			      struct timeval, int *);
111
extern CLIENT *clntudp_bufcreate(struct sockaddr_in *, u_long, u_long,
139
extern CLIENT *clntudp_bufcreate(struct sockaddr_in *, u_long, u_long,
Lines 116-122 extern CLIENT *clntudp6_create(struct so Link Here
116
extern CLIENT *clntudp6_bufcreate(struct sockaddr_in6 *, u_long, u_long,
144
extern CLIENT *clntudp6_bufcreate(struct sockaddr_in6 *, u_long, u_long,
117
				 struct timeval, int *, u_int, u_int);
145
				 struct timeval, int *, u_int, u_int);
118
#endif
146
#endif
147
#ifdef __GLIBC__
119
__END_DECLS
148
__END_DECLS
149
#elif defined(__cplusplus)
150
}
151
#endif
120
152
121
153
122
#endif /* _RPC_CLNT_SOC_H */
154
#endif /* _RPC_CLNT_SOC_H */
(-)./tirpc/rpc/rpc_com.h (+8 lines)
Lines 55-61 Link Here
55
#define __RPC_GETXID(now) ((u_int32_t)getpid() ^ (u_int32_t)(now)->tv_sec ^ \
55
#define __RPC_GETXID(now) ((u_int32_t)getpid() ^ (u_int32_t)(now)->tv_sec ^ \
56
    (u_int32_t)(now)->tv_usec)
56
    (u_int32_t)(now)->tv_usec)
57
57
58
#ifdef __GLIBC__
58
__BEGIN_DECLS
59
__BEGIN_DECLS
60
#elif defined(__cplusplus)
61
extern "C" {
62
#endif
59
extern u_int __rpc_get_a_size(int);
63
extern u_int __rpc_get_a_size(int);
60
extern int __rpc_dtbsize(void);
64
extern int __rpc_dtbsize(void);
61
extern int _rpc_dtablesize(void);
65
extern int _rpc_dtablesize(void);
Lines 77-82 bool_t rpc_control(int,void *); Link Here
77
81
78
char *_get_next_token(char *, int);
82
char *_get_next_token(char *, int);
79
83
84
#ifdef __GLIBC__
80
__END_DECLS
85
__END_DECLS
86
#elif defined(__cplusplus)
87
}
88
#endif
81
89
82
#endif /* _RPC_RPCCOM_H */
90
#endif /* _RPC_RPCCOM_H */
(-)./tirpc/rpc/auth_unix.h (+8 lines)
Lines 67-75 struct authunix_parms { Link Here
67
67
68
#define authsys_parms authunix_parms
68
#define authsys_parms authunix_parms
69
69
70
#ifdef __GLIBC__
70
__BEGIN_DECLS
71
__BEGIN_DECLS
72
#elif defined(__cplusplus)
73
extern "C" {
74
#endif
71
extern bool_t xdr_authunix_parms(XDR *, struct authunix_parms *);
75
extern bool_t xdr_authunix_parms(XDR *, struct authunix_parms *);
76
#ifdef __GLIBC__
72
__END_DECLS
77
__END_DECLS
78
#elif defined(__cplusplus)
79
}
80
#endif
73
81
74
/*
82
/*
75
 * If a response verifier has flavor AUTH_SHORT,
83
 * If a response verifier has flavor AUTH_SHORT,
(-)./tirpc/rpc/pmap_rmt.h (+8 lines)
Lines 56-64 struct rmtcallres { Link Here
56
	xdrproc_t xdr_results;
56
	xdrproc_t xdr_results;
57
};
57
};
58
58
59
#ifdef __GLIBC__
59
__BEGIN_DECLS
60
__BEGIN_DECLS
61
#elif defined(__cplusplus)
62
extern "C" {
63
#endif
60
extern bool_t xdr_rmtcall_args(XDR *, struct rmtcallargs *);
64
extern bool_t xdr_rmtcall_args(XDR *, struct rmtcallargs *);
61
extern bool_t xdr_rmtcallres(XDR *, struct rmtcallres *);
65
extern bool_t xdr_rmtcallres(XDR *, struct rmtcallres *);
66
#ifdef __GLIBC__
62
__END_DECLS
67
__END_DECLS
68
#elif defined(__cplusplus)
69
}
70
#endif
63
71
64
#endif /* !_RPC_PMAP_RMT_H */
72
#endif /* !_RPC_PMAP_RMT_H */
(-)./tirpc/rpc/des_crypt.h (+24 lines)
Lines 83-105 Link Here
83
/*
83
/*
84
 * Cipher Block Chaining mode
84
 * Cipher Block Chaining mode
85
 */
85
 */
86
#ifdef __GLIBC__
86
__BEGIN_DECLS
87
__BEGIN_DECLS
88
#elif defined(__cplusplus)
89
extern "C" {
90
#endif
87
int cbc_crypt( char *, char *, unsigned int, unsigned int, char *);
91
int cbc_crypt( char *, char *, unsigned int, unsigned int, char *);
92
#ifdef __GLIBC__
88
__END_DECLS
93
__END_DECLS
94
#elif defined(__cplusplus)
95
}
96
#endif
89
97
90
/*
98
/*
91
 * Electronic Code Book mode
99
 * Electronic Code Book mode
92
 */
100
 */
101
#ifdef __GLIBC__
93
__BEGIN_DECLS
102
__BEGIN_DECLS
103
#elif defined(__cplusplus)
104
extern "C" {
105
#endif
94
int ecb_crypt( char *, char *, unsigned int, unsigned int );
106
int ecb_crypt( char *, char *, unsigned int, unsigned int );
107
#ifdef __GLIBC__
95
__END_DECLS
108
__END_DECLS
109
#elif defined(__cplusplus)
110
}
111
#endif
96
112
97
/* 
113
/* 
98
 * Set des parity for a key.
114
 * Set des parity for a key.
99
 * DES parity is odd and in the low bit of each byte
115
 * DES parity is odd and in the low bit of each byte
100
 */
116
 */
117
#ifdef __GLIBC__
101
__BEGIN_DECLS
118
__BEGIN_DECLS
119
#elif defined(__cplusplus)
120
extern "C" {
121
#endif
102
void des_setparity( char *);
122
void des_setparity( char *);
123
#ifdef __GLIBC__
103
__END_DECLS
124
__END_DECLS
125
#elif defined(__cplusplus)
126
}
127
#endif
104
128
105
#endif  /* _DES_DES_CRYPT_H */
129
#endif  /* _DES_DES_CRYPT_H */
(-)./tirpc/rpc/rpcb_clnt.h (+8 lines)
Lines 59-65 Link Here
59
59
60
#include <rpc/types.h>
60
#include <rpc/types.h>
61
#include <rpc/rpcb_prot.h>
61
#include <rpc/rpcb_prot.h>
62
#ifdef __GLIBC__
62
__BEGIN_DECLS
63
__BEGIN_DECLS
64
#elif defined(__cplusplus)
65
extern "C" {
66
#endif
63
extern bool_t rpcb_set(const rpcprog_t, const rpcvers_t,
67
extern bool_t rpcb_set(const rpcprog_t, const rpcvers_t,
64
		       const struct netconfig  *, const struct netbuf *);
68
		       const struct netconfig  *, const struct netbuf *);
65
extern bool_t rpcb_unset(const rpcprog_t, const rpcvers_t,
69
extern bool_t rpcb_unset(const rpcprog_t, const rpcvers_t,
Lines 78-83 extern bool_t rpcb_getaddr(const rpcprog Link Here
78
extern bool_t rpcb_gettime(const char *, time_t *);
82
extern bool_t rpcb_gettime(const char *, time_t *);
79
extern char *rpcb_taddr2uaddr(struct netconfig *, struct netbuf *);
83
extern char *rpcb_taddr2uaddr(struct netconfig *, struct netbuf *);
80
extern struct netbuf *rpcb_uaddr2taddr(struct netconfig *, char *);
84
extern struct netbuf *rpcb_uaddr2taddr(struct netconfig *, char *);
85
#ifdef __GLIBC__
81
__END_DECLS
86
__END_DECLS
87
#elif defined(__cplusplus)
88
}
89
#endif
82
90
83
#endif	/* !_RPC_RPCB_CLNT_H */
91
#endif	/* !_RPC_RPCB_CLNT_H */
(-)./tirpc/rpc/clnt.h (+56 lines)
Lines 267-273 struct rpc_timers { Link Here
267
 * Generic client creation routine. Supported protocols are those that
267
 * Generic client creation routine. Supported protocols are those that
268
 * belong to the nettype namespace (/etc/netconfig).
268
 * belong to the nettype namespace (/etc/netconfig).
269
 */
269
 */
270
#ifdef __GLIBC__
270
__BEGIN_DECLS
271
__BEGIN_DECLS
272
#elif defined(__cplusplus)
273
extern "C" {
274
#endif
271
extern CLIENT *clnt_create(const char *, const rpcprog_t, const rpcvers_t,
275
extern CLIENT *clnt_create(const char *, const rpcprog_t, const rpcvers_t,
272
			   const char *);
276
			   const char *);
273
/*
277
/*
Lines 414-445 extern CLIENT *clnt_dg_create(const int, Link Here
414
 */
418
 */
415
extern CLIENT *clnt_raw_create(rpcprog_t, rpcvers_t);
419
extern CLIENT *clnt_raw_create(rpcprog_t, rpcvers_t);
416
420
421
#ifdef __GLIBC__
417
__END_DECLS
422
__END_DECLS
423
#elif defined(__cplusplus)
424
}
425
#endif
418
426
419
427
420
/*
428
/*
421
 * Print why creation failed
429
 * Print why creation failed
422
 */
430
 */
431
#ifdef __GLIBC__
423
__BEGIN_DECLS
432
__BEGIN_DECLS
433
#elif defined(__cplusplus)
434
extern "C" {
435
#endif
424
extern void clnt_pcreateerror(const char *);			/* stderr */
436
extern void clnt_pcreateerror(const char *);			/* stderr */
425
extern char *clnt_spcreateerror(const char *);			/* string */
437
extern char *clnt_spcreateerror(const char *);			/* string */
438
#ifdef __GLIBC__
426
__END_DECLS
439
__END_DECLS
440
#elif defined(__cplusplus)
441
}
442
#endif
427
443
428
/*
444
/*
429
 * Like clnt_perror(), but is more verbose in its output
445
 * Like clnt_perror(), but is more verbose in its output
430
 */
446
 */
447
#ifdef __GLIBC__
431
__BEGIN_DECLS
448
__BEGIN_DECLS
449
#elif defined(__cplusplus)
450
extern "C" {
451
#endif
432
extern void clnt_perrno(enum clnt_stat);		/* stderr */
452
extern void clnt_perrno(enum clnt_stat);		/* stderr */
433
extern char *clnt_sperrno(enum clnt_stat);		/* string */
453
extern char *clnt_sperrno(enum clnt_stat);		/* string */
454
#ifdef __GLIBC__
434
__END_DECLS
455
__END_DECLS
456
#elif defined(__cplusplus)
457
}
458
#endif
435
459
436
/*
460
/*
437
 * Print an English error message, given the client error code
461
 * Print an English error message, given the client error code
438
 */
462
 */
463
#ifdef __GLIBC__
439
__BEGIN_DECLS
464
__BEGIN_DECLS
465
#elif defined(__cplusplus)
466
extern "C" {
467
#endif
440
extern void clnt_perror(CLIENT *, const char *);	 	/* stderr */
468
extern void clnt_perror(CLIENT *, const char *);	 	/* stderr */
441
extern char *clnt_sperror(CLIENT *, const char *);		/* string */
469
extern char *clnt_sperror(CLIENT *, const char *);		/* string */
470
#ifdef __GLIBC__
442
__END_DECLS
471
__END_DECLS
472
#elif defined(__cplusplus)
473
}
474
#endif
443
475
444
476
445
/*
477
/*
Lines 450-458 struct rpc_createerr { Link Here
450
	struct rpc_err cf_error; /* useful when cf_stat == RPC_PMAPFAILURE */
482
	struct rpc_err cf_error; /* useful when cf_stat == RPC_PMAPFAILURE */
451
};
483
};
452
484
485
#ifdef __GLIBC__
453
__BEGIN_DECLS
486
__BEGIN_DECLS
487
#elif defined(__cplusplus)
488
extern "C" {
489
#endif
454
extern struct rpc_createerr	*__rpc_createerr(void);
490
extern struct rpc_createerr	*__rpc_createerr(void);
491
#ifdef __GLIBC__
455
__END_DECLS
492
__END_DECLS
493
#elif defined(__cplusplus)
494
}
495
#endif
456
#define get_rpc_createerr()	(*(__rpc_createerr()))
496
#define get_rpc_createerr()	(*(__rpc_createerr()))
457
#define rpc_createerr		(*(__rpc_createerr()))
497
#define rpc_createerr		(*(__rpc_createerr()))
458
498
Lines 469-480 __END_DECLS Link Here
469
 *	char *out;
509
 *	char *out;
470
 *	const char *nettype;
510
 *	const char *nettype;
471
 */
511
 */
512
#ifdef __GLIBC__
472
__BEGIN_DECLS
513
__BEGIN_DECLS
514
#elif defined(__cplusplus)
515
extern "C" {
516
#endif
473
extern enum clnt_stat rpc_call(const char *, const rpcprog_t,
517
extern enum clnt_stat rpc_call(const char *, const rpcprog_t,
474
			       const rpcvers_t, const rpcproc_t,
518
			       const rpcvers_t, const rpcproc_t,
475
			       const xdrproc_t, const char *,
519
			       const xdrproc_t, const char *,
476
			       const xdrproc_t, char *, const char *);
520
			       const xdrproc_t, char *, const char *);
521
#ifdef __GLIBC__
477
__END_DECLS
522
__END_DECLS
523
#elif defined(__cplusplus)
524
}
525
#endif
478
526
479
/*
527
/*
480
 * RPC broadcast interface
528
 * RPC broadcast interface
Lines 522-528 __END_DECLS Link Here
522
570
523
typedef bool_t (*resultproc_t)(caddr_t, ...);
571
typedef bool_t (*resultproc_t)(caddr_t, ...);
524
572
573
#ifdef __GLIBC__
525
__BEGIN_DECLS
574
__BEGIN_DECLS
575
#elif defined(__cplusplus)
576
extern "C" {
577
#endif
526
extern enum clnt_stat rpc_broadcast(const rpcprog_t, const rpcvers_t,
578
extern enum clnt_stat rpc_broadcast(const rpcprog_t, const rpcvers_t,
527
				    const rpcproc_t, const xdrproc_t,
579
				    const rpcproc_t, const xdrproc_t,
528
				    caddr_t, const xdrproc_t, caddr_t,
580
				    caddr_t, const xdrproc_t, caddr_t,
Lines 532-538 extern enum clnt_stat rpc_broadcast_exp( Link Here
532
					caddr_t, const xdrproc_t, caddr_t,
584
					caddr_t, const xdrproc_t, caddr_t,
533
					const resultproc_t, const int,
585
					const resultproc_t, const int,
534
					const int, const char *);
586
					const int, const char *);
587
#ifdef __GLIBC__
535
__END_DECLS
588
__END_DECLS
589
#elif defined(__cplusplus)
590
}
591
#endif
536
592
537
/* For backward compatibility */
593
/* For backward compatibility */
538
#include <rpc/clnt_soc.h>
594
#include <rpc/clnt_soc.h>
(-)./tirpc/rpc/rpcent.h (+8 lines)
Lines 44-50 Link Here
44
/*	#pragma ident "@(#)rpcent.h   1.13    94/04/25 SMI"	*/
44
/*	#pragma ident "@(#)rpcent.h   1.13    94/04/25 SMI"	*/
45
/*      @(#)rpcent.h 1.1 88/12/06 SMI   */
45
/*      @(#)rpcent.h 1.1 88/12/06 SMI   */
46
46
47
#ifdef __GLIBC__
47
__BEGIN_DECLS
48
__BEGIN_DECLS
49
#elif defined(__cplusplus)
50
extern "C" {
51
#endif
48
52
49
/* These are defined in /usr/include/rpc/netdb.h */
53
/* These are defined in /usr/include/rpc/netdb.h */
50
#if 0
54
#if 0
Lines 62-67 extern struct rpcent *getrpcent(void); Link Here
62
66
63
extern void setrpcent(int) __THROW;
67
extern void setrpcent(int) __THROW;
64
extern void endrpcent(void) __THROW;
68
extern void endrpcent(void) __THROW;
69
#ifdef __GLIBC__
65
__END_DECLS
70
__END_DECLS
71
#elif defined(__cplusplus)
72
}
73
#endif
66
74
67
#endif /* !_RPC_CENT_H */
75
#endif /* !_RPC_CENT_H */
(-)./tirpc/rpc/pmap_clnt.h (+8 lines)
Lines 65-71 Link Here
65
#define _RPC_PMAP_CLNT_H_
65
#define _RPC_PMAP_CLNT_H_
66
#include <sys/cdefs.h>
66
#include <sys/cdefs.h>
67
67
68
#ifdef __GLIBC__
68
__BEGIN_DECLS
69
__BEGIN_DECLS
70
#elif defined(__cplusplus)
71
extern "C" {
72
#endif
69
extern bool_t		pmap_set(u_long, u_long, int, int);
73
extern bool_t		pmap_set(u_long, u_long, int, int);
70
extern bool_t		pmap_unset(u_long, u_long);
74
extern bool_t		pmap_unset(u_long, u_long);
71
extern struct pmaplist	*pmap_getmaps(struct sockaddr_in *);
75
extern struct pmaplist	*pmap_getmaps(struct sockaddr_in *);
Lines 80-85 extern enum clnt_stat clnt_broadcast(u_l Link Here
80
				       resultproc_t);
84
				       resultproc_t);
81
extern u_short		pmap_getport(struct sockaddr_in *,
85
extern u_short		pmap_getport(struct sockaddr_in *,
82
				     u_long, u_long, u_int);
86
				     u_long, u_long, u_int);
87
#ifdef __GLIBC__
83
__END_DECLS
88
__END_DECLS
89
#elif defined(__cplusplus)
90
}
91
#endif
84
92
85
#endif /* !_RPC_PMAP_CLNT_H_ */
93
#endif /* !_RPC_PMAP_CLNT_H_ */
(-)./tirpc/rpc/auth_gss.h (+8 lines)
Lines 104-110 struct rpc_gss_init_res { Link Here
104
#define MAXSEQ		0x80000000
104
#define MAXSEQ		0x80000000
105
105
106
/* Prototypes. */
106
/* Prototypes. */
107
#ifdef __GLIBC__
107
__BEGIN_DECLS
108
__BEGIN_DECLS
109
#elif defined(__cplusplus)
110
extern "C" {
111
#endif
108
bool_t	xdr_rpc_gss_cred	__P((XDR *xdrs, struct rpc_gss_cred *p));
112
bool_t	xdr_rpc_gss_cred	__P((XDR *xdrs, struct rpc_gss_cred *p));
109
bool_t	xdr_rpc_gss_init_args	__P((XDR *xdrs, gss_buffer_desc *p));
113
bool_t	xdr_rpc_gss_init_args	__P((XDR *xdrs, gss_buffer_desc *p));
110
bool_t	xdr_rpc_gss_init_res	__P((XDR *xdrs, struct rpc_gss_init_res *p));
114
bool_t	xdr_rpc_gss_init_res	__P((XDR *xdrs, struct rpc_gss_init_res *p));
Lines 126-131 void gss_log_status __P((char *m, OM_ui Link Here
126
				     OM_uint32 minor));
130
				     OM_uint32 minor));
127
void	gss_log_hexdump		__P((const u_char *buf, int len, int offset));
131
void	gss_log_hexdump		__P((const u_char *buf, int len, int offset));
128
132
133
#ifdef __GLIBC__
129
__END_DECLS
134
__END_DECLS
135
#elif defined(__cplusplus)
136
}
137
#endif
130
138
131
#endif /* !_TIRPC_AUTH_GSS_H */
139
#endif /* !_TIRPC_AUTH_GSS_H */
(-)./tirpc/rpc/rpc_msg.h (+8 lines)
Lines 161-167 struct rpc_msg { Link Here
161
#define	acpted_rply	ru.RM_rmb.ru.RP_ar
161
#define	acpted_rply	ru.RM_rmb.ru.RP_ar
162
#define	rjcted_rply	ru.RM_rmb.ru.RP_dr
162
#define	rjcted_rply	ru.RM_rmb.ru.RP_dr
163
163
164
#ifdef __GLIBC__
164
__BEGIN_DECLS
165
__BEGIN_DECLS
166
#elif defined(__cplusplus)
167
extern "C" {
168
#endif
165
/*
169
/*
166
 * XDR routine to handle a rpc message.
170
 * XDR routine to handle a rpc message.
167
 * xdr_callmsg(xdrs, cmsg)
171
 * xdr_callmsg(xdrs, cmsg)
Lines 210-215 extern bool_t xdr_rejected_reply(XDR *, Link Here
210
 * 	struct rpc_err *error;
214
 * 	struct rpc_err *error;
211
 */
215
 */
212
extern void	_seterr_reply(struct rpc_msg *, struct rpc_err *);
216
extern void	_seterr_reply(struct rpc_msg *, struct rpc_err *);
217
#ifdef __GLIBC__
213
__END_DECLS
218
__END_DECLS
219
#elif defined(__cplusplus)
220
}
221
#endif
214
222
215
#endif /* !_TIRPC_RPC_MSG_H */
223
#endif /* !_TIRPC_RPC_MSG_H */
(-)./tirpc/rpc/nettype.h (+8 lines)
Lines 53-63 Link Here
53
#define	_RPC_TCP	7
53
#define	_RPC_TCP	7
54
#define	_RPC_UDP	8
54
#define	_RPC_UDP	8
55
55
56
#ifdef __GLIBC__
56
__BEGIN_DECLS
57
__BEGIN_DECLS
58
#elif defined(__cplusplus)
59
extern "C" {
60
#endif
57
extern void *__rpc_setconf(const char *);
61
extern void *__rpc_setconf(const char *);
58
extern void __rpc_endconf(void *);
62
extern void __rpc_endconf(void *);
59
extern struct netconfig *__rpc_getconf(void *);
63
extern struct netconfig *__rpc_getconf(void *);
60
extern struct netconfig *__rpc_getconfip(const char *);
64
extern struct netconfig *__rpc_getconfip(const char *);
65
#ifdef __GLIBC__
61
__END_DECLS
66
__END_DECLS
67
#elif defined(__cplusplus)
68
}
69
#endif
62
70
63
#endif	/* !_TIRPC_NETTYPE_H */
71
#endif	/* !_TIRPC_NETTYPE_H */
(-)./tirpc/rpc/svc_auth.h (+8 lines)
Lines 65-75 typedef struct SVCAUTH { Link Here
65
/*
65
/*
66
 * Server side authenticator
66
 * Server side authenticator
67
 */
67
 */
68
#ifdef __GLIBC__
68
__BEGIN_DECLS
69
__BEGIN_DECLS
70
#elif defined(__cplusplus)
71
extern "C" {
72
#endif
69
extern enum auth_stat _authenticate(struct svc_req *, struct rpc_msg *);
73
extern enum auth_stat _authenticate(struct svc_req *, struct rpc_msg *);
70
extern int svc_auth_reg(int, enum auth_stat (*)(struct svc_req *,
74
extern int svc_auth_reg(int, enum auth_stat (*)(struct svc_req *,
71
			  struct rpc_msg *));
75
			  struct rpc_msg *));
72
76
77
#ifdef __GLIBC__
73
__END_DECLS
78
__END_DECLS
79
#elif defined(__cplusplus)
80
}
81
#endif
74
82
75
#endif /* !_RPC_SVC_AUTH_H */
83
#endif /* !_RPC_SVC_AUTH_H */
(-)./tirpc/rpcsvc/nis.h (+8 lines)
Lines 36-42 Link Here
36
#include <rpc/rpc.h>
36
#include <rpc/rpc.h>
37
#include <rpcsvc/nis_tags.h>
37
#include <rpcsvc/nis_tags.h>
38
38
39
#ifdef __GLIBC__
39
__BEGIN_DECLS
40
__BEGIN_DECLS
41
#elif defined(__cplusplus)
42
extern "C" {
43
#endif
40
44
41
/*
45
/*
42
 *	nis.h
46
 *	nis.h
Lines 611-616 extern nis_error * nis_rmdir_3_svc (nis Link Here
611
extern  nis_error * nis_updkeys_3 (nis_name *, CLIENT *) __THROW;
615
extern  nis_error * nis_updkeys_3 (nis_name *, CLIENT *) __THROW;
612
extern  nis_error * nis_updkeys_3_svc (nis_name *, struct svc_req *) __THROW;
616
extern  nis_error * nis_updkeys_3_svc (nis_name *, struct svc_req *) __THROW;
613
617
618
#ifdef __GLIBC__
614
__END_DECLS
619
__END_DECLS
620
#elif defined(__cplusplus)
621
}
622
#endif
615
623
616
#endif /* ! _RPCSVC_NIS_H */
624
#endif /* ! _RPCSVC_NIS_H */
(-)./tirpc/rpcsvc/nislib.h (+8 lines)
Lines 23-29 Link Here
23
23
24
#include <features.h>
24
#include <features.h>
25
25
26
#ifdef __GLIBC__
26
__BEGIN_DECLS
27
__BEGIN_DECLS
28
#elif defined(__cplusplus)
29
extern "C" {
30
#endif
27
31
28
typedef const char *const_nis_name;
32
typedef const char *const_nis_name;
29
33
Lines 283-288 extern nis_error __nisfind_server (const Link Here
283
287
284
#endif
288
#endif
285
289
290
#ifdef __GLIBC__
286
__END_DECLS
291
__END_DECLS
292
#elif defined(__cplusplus)
293
}
294
#endif
287
295
288
#endif	/* __RPCSVC_NISLIB_H__ */
296
#endif	/* __RPCSVC_NISLIB_H__ */
(-)./tirpc/netconfig.h (+8 lines)
Lines 74-80 typedef struct { Link Here
74
#define NC_UDP		"udp"
74
#define NC_UDP		"udp"
75
#define NC_ICMP		"icmp"
75
#define NC_ICMP		"icmp"
76
76
77
#ifdef __GLIBC__
77
__BEGIN_DECLS
78
__BEGIN_DECLS
79
#elif defined(__cplusplus)
80
extern "C" {
81
#endif
78
82
79
extern void *setnetconfig (void);
83
extern void *setnetconfig (void);
80
extern struct netconfig *getnetconfig (void *);
84
extern struct netconfig *getnetconfig (void *);
Lines 89-94 extern int endnetpath (void *); Link Here
89
extern void nc_perror (const char *);
93
extern void nc_perror (const char *);
90
extern char *nc_sperror (void);
94
extern char *nc_sperror (void);
91
95
96
#ifdef __GLIBC__
92
__END_DECLS
97
__END_DECLS
98
#elif defined(__cplusplus)
99
}
100
#endif
93
101
94
#endif /* _NETCONFIG_H_ */
102
#endif /* _NETCONFIG_H_ */
(-)./src/rpc_com.h (+8 lines)
Lines 54-60 Link Here
54
#define __RPC_GETXID(now) ((u_int32_t)getpid() ^ (u_int32_t)(now)->tv_sec ^ \
54
#define __RPC_GETXID(now) ((u_int32_t)getpid() ^ (u_int32_t)(now)->tv_sec ^ \
55
    (u_int32_t)(now)->tv_usec)
55
    (u_int32_t)(now)->tv_usec)
56
56
57
#ifdef __GLIBC__
57
__BEGIN_DECLS
58
__BEGIN_DECLS
59
#elif defined(__cplusplus)
60
extern "C" {
61
#endif
58
extern u_int __rpc_get_a_size(int);
62
extern u_int __rpc_get_a_size(int);
59
extern int __rpc_dtbsize(void);
63
extern int __rpc_dtbsize(void);
60
extern struct netconfig * __rpcgettp(int);
64
extern struct netconfig * __rpcgettp(int);
Lines 90-95 void __xprt_set_raddr(SVCXPRT *, const s Link Here
90
SVCXPRT **__svc_xports;
94
SVCXPRT **__svc_xports;
91
int __svc_maxrec;
95
int __svc_maxrec;
92
96
97
#ifdef __GLIBC__
93
__END_DECLS
98
__END_DECLS
99
#elif defined(__cplusplus)
100
}
101
#endif
94
102
95
#endif /* _TIRPC_RPCCOM_H */
103
#endif /* _TIRPC_RPCCOM_H */

Return to bug 530080