summaryrefslogtreecommitdiffstats
path: root/include/rpc
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2002-02-16 21:27:05 +0000
committermillert <millert@openbsd.org>2002-02-16 21:27:05 +0000
commitc72b5b24e14c03dd8b22104fbae0d3921fa2aa37 (patch)
tree1ac67aab11df5f96856c0e3015d691db7dc9e811 /include/rpc
parentdefault to rsa keyfile path for non key generation operations where (diff)
downloadwireguard-openbsd-c72b5b24e14c03dd8b22104fbae0d3921fa2aa37.tar.xz
wireguard-openbsd-c72b5b24e14c03dd8b22104fbae0d3921fa2aa37.zip
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
Diffstat (limited to 'include/rpc')
-rw-r--r--include/rpc/auth.h18
-rw-r--r--include/rpc/auth_unix.h4
-rw-r--r--include/rpc/clnt.h22
-rw-r--r--include/rpc/pmap_clnt.h8
-rw-r--r--include/rpc/pmap_prot.h6
-rw-r--r--include/rpc/pmap_rmt.h6
-rw-r--r--include/rpc/rpc.h24
-rw-r--r--include/rpc/rpc_msg.h10
-rw-r--r--include/rpc/svc.h50
-rw-r--r--include/rpc/svc_auth.h4
-rw-r--r--include/rpc/xdr.h90
11 files changed, 121 insertions, 121 deletions
diff --git a/include/rpc/auth.h b/include/rpc/auth.h
index df6ab831ebf..7787659b9d0 100644
--- a/include/rpc/auth.h
+++ b/include/rpc/auth.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth.h,v 1.2 1997/09/21 10:46:09 niklas Exp $ */
+/* $OpenBSD: auth.h,v 1.3 2002/02/16 21:27:18 millert Exp $ */
/* $NetBSD: auth.h,v 1.7 1995/04/29 05:27:55 cgd Exp $ */
/*
@@ -81,7 +81,7 @@ union des_block {
};
typedef union des_block des_block;
__BEGIN_DECLS
-extern bool_t xdr_des_block __P((XDR *, des_block *));
+extern bool_t xdr_des_block(XDR *, des_block *);
__END_DECLS
/*
@@ -102,16 +102,16 @@ typedef struct __rpc_auth {
struct opaque_auth ah_verf;
union des_block ah_key;
struct auth_ops {
- void (*ah_nextverf) __P((struct __rpc_auth *));
+ void (*ah_nextverf)(struct __rpc_auth *);
/* nextverf & serialize */
- int (*ah_marshal) __P((struct __rpc_auth *, XDR *));
+ int (*ah_marshal)(struct __rpc_auth *, XDR *);
/* validate varifier */
int (*ah_validate) __P((struct __rpc_auth *,
struct opaque_auth *));
/* refresh credentials */
- int (*ah_refresh) __P((struct __rpc_auth *));
+ int (*ah_refresh)(struct __rpc_auth *);
/* destroy this structure */
- void (*ah_destroy) __P((struct __rpc_auth *));
+ void (*ah_destroy)(struct __rpc_auth *);
} *ah_ops;
caddr_t ah_private;
} AUTH;
@@ -169,9 +169,9 @@ extern struct opaque_auth _null_auth;
*/
__BEGIN_DECLS
struct sockaddr_in;
-extern AUTH *authunix_create __P((char *, int, int, int, int *));
-extern AUTH *authunix_create_default __P((void));
-extern AUTH *authnone_create __P((void));
+extern AUTH *authunix_create(char *, int, int, int, int *);
+extern AUTH *authunix_create_default(void);
+extern AUTH *authnone_create(void);
extern AUTH *authdes_create __P((char *, u_int,
struct sockaddr_in *, des_block *));
__END_DECLS
diff --git a/include/rpc/auth_unix.h b/include/rpc/auth_unix.h
index 8d146d5dee5..e65f224fe62 100644
--- a/include/rpc/auth_unix.h
+++ b/include/rpc/auth_unix.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth_unix.h,v 1.2 1997/09/21 10:46:09 niklas Exp $ */
+/* $OpenBSD: auth_unix.h,v 1.3 2002/02/16 21:27:18 millert Exp $ */
/* $NetBSD: auth_unix.h,v 1.4 1994/10/26 00:56:56 cgd Exp $ */
/*
@@ -69,7 +69,7 @@ struct authunix_parms {
};
__BEGIN_DECLS
-extern bool_t xdr_authunix_parms __P((XDR *, struct authunix_parms *));
+extern bool_t xdr_authunix_parms(XDR *, struct authunix_parms *);
__END_DECLS
/*
diff --git a/include/rpc/clnt.h b/include/rpc/clnt.h
index 0c28612cb5a..93c9b78350a 100644
--- a/include/rpc/clnt.h
+++ b/include/rpc/clnt.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: clnt.h,v 1.5 2001/09/15 13:51:00 deraadt Exp $ */
+/* $OpenBSD: clnt.h,v 1.6 2002/02/16 21:27:18 millert Exp $ */
/* $NetBSD: clnt.h,v 1.6 1995/04/29 05:27:58 cgd Exp $ */
/*
@@ -124,7 +124,7 @@ typedef struct __rpc_client {
u_long, xdrproc_t, caddr_t, xdrproc_t,
caddr_t, struct timeval));
/* abort a call */
- void (*cl_abort) __P((struct __rpc_client *));
+ void (*cl_abort)(struct __rpc_client *);
/* get specific error code */
void (*cl_geterr) __P((struct __rpc_client *,
struct rpc_err *));
@@ -132,7 +132,7 @@ typedef struct __rpc_client {
bool_t (*cl_freeres) __P((struct __rpc_client *,
xdrproc_t, caddr_t));
/* destroy this structure */
- void (*cl_destroy) __P((struct __rpc_client *));
+ void (*cl_destroy)(struct __rpc_client *);
/* the ioctl() of rpc */
bool_t (*cl_control) __P((struct __rpc_client *, u_int,
void *));
@@ -255,7 +255,7 @@ typedef struct __rpc_client {
* u_long vers;
*/
__BEGIN_DECLS
-extern CLIENT *clntraw_create __P((u_long, u_long));
+extern CLIENT *clntraw_create(u_long, u_long);
__END_DECLS
@@ -269,7 +269,7 @@ __END_DECLS
* char *prot; -- protocol
*/
__BEGIN_DECLS
-extern CLIENT *clnt_create __P((char *, u_long, u_long, char *));
+extern CLIENT *clnt_create(char *, u_long, u_long, char *);
__END_DECLS
@@ -335,24 +335,24 @@ __END_DECLS
* Print why creation failed
*/
__BEGIN_DECLS
-extern void clnt_pcreateerror __P((char *)); /* stderr */
-extern char *clnt_spcreateerror __P((char *)); /* string */
+extern void clnt_pcreateerror(char *); /* stderr */
+extern char *clnt_spcreateerror(char *); /* string */
__END_DECLS
/*
* Like clnt_perror(), but is more verbose in its output
*/
__BEGIN_DECLS
-extern void clnt_perrno __P((enum clnt_stat)); /* stderr */
-extern char *clnt_sperrno __P((enum clnt_stat)); /* string */
+extern void clnt_perrno(enum clnt_stat); /* stderr */
+extern char *clnt_sperrno(enum clnt_stat); /* string */
__END_DECLS
/*
* Print an English error message, given the client error code
*/
__BEGIN_DECLS
-extern void clnt_perror __P((CLIENT *, char *)); /* stderr */
-extern char *clnt_sperror __P((CLIENT *, char *)); /* string */
+extern void clnt_perror(CLIENT *, char *); /* stderr */
+extern char *clnt_sperror(CLIENT *, char *); /* string */
__END_DECLS
diff --git a/include/rpc/pmap_clnt.h b/include/rpc/pmap_clnt.h
index d3b5883f690..9e54c50243e 100644
--- a/include/rpc/pmap_clnt.h
+++ b/include/rpc/pmap_clnt.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap_clnt.h,v 1.3 1998/08/29 18:57:14 deraadt Exp $ */
+/* $OpenBSD: pmap_clnt.h,v 1.4 2002/02/16 21:27:18 millert Exp $ */
/* $NetBSD: pmap_clnt.h,v 1.5 1994/12/04 01:12:42 cgd Exp $ */
/*
@@ -67,9 +67,9 @@
#include <sys/cdefs.h>
__BEGIN_DECLS
-extern bool_t pmap_set __P((u_long, u_long, u_int, int));
-extern bool_t pmap_unset __P((u_long, u_long));
-extern struct pmaplist *pmap_getmaps __P((struct sockaddr_in *));
+extern bool_t pmap_set(u_long, u_long, u_int, int);
+extern bool_t pmap_unset(u_long, u_long);
+extern struct pmaplist *pmap_getmaps(struct sockaddr_in *);
extern enum clnt_stat pmap_rmtcall __P((struct sockaddr_in *,
u_long, u_long, u_long,
xdrproc_t, caddr_t,
diff --git a/include/rpc/pmap_prot.h b/include/rpc/pmap_prot.h
index 4b96be75714..32e88323b2f 100644
--- a/include/rpc/pmap_prot.h
+++ b/include/rpc/pmap_prot.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap_prot.h,v 1.3 1998/02/10 06:25:32 deraadt Exp $ */
+/* $OpenBSD: pmap_prot.h,v 1.4 2002/02/16 21:27:18 millert Exp $ */
/* $NetBSD: pmap_prot.h,v 1.4 1994/10/26 00:57:00 cgd Exp $ */
/*
@@ -99,8 +99,8 @@ struct pmaplist {
};
__BEGIN_DECLS
-extern bool_t xdr_pmap __P((XDR *, struct pmap *));
-extern bool_t xdr_pmaplist __P((XDR *, struct pmaplist **));
+extern bool_t xdr_pmap(XDR *, struct pmap *);
+extern bool_t xdr_pmaplist(XDR *, struct pmaplist **);
__END_DECLS
#endif /* !_RPC_PMAPPROT_H */
diff --git a/include/rpc/pmap_rmt.h b/include/rpc/pmap_rmt.h
index ad5021df85e..ca3a4d66457 100644
--- a/include/rpc/pmap_rmt.h
+++ b/include/rpc/pmap_rmt.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap_rmt.h,v 1.2 1997/09/21 10:46:13 niklas Exp $ */
+/* $OpenBSD: pmap_rmt.h,v 1.3 2002/02/16 21:27:18 millert Exp $ */
/* $NetBSD: pmap_rmt.h,v 1.4 1994/10/26 00:57:01 cgd Exp $ */
/*
@@ -58,8 +58,8 @@ struct rmtcallres {
};
__BEGIN_DECLS
-extern bool_t xdr_rmtcall_args __P((XDR *, struct rmtcallargs *));
-extern bool_t xdr_rmtcallres __P((XDR *, struct rmtcallres *));
+extern bool_t xdr_rmtcall_args(XDR *, struct rmtcallargs *);
+extern bool_t xdr_rmtcallres(XDR *, struct rmtcallres *);
__END_DECLS
#endif /* !_RPC_PMAPRMT_H */
diff --git a/include/rpc/rpc.h b/include/rpc/rpc.h
index 52efff1ddc7..1d929e86a8c 100644
--- a/include/rpc/rpc.h
+++ b/include/rpc/rpc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rpc.h,v 1.8 2000/10/12 09:44:26 deraadt Exp $ */
+/* $OpenBSD: rpc.h,v 1.9 2002/02/16 21:27:18 millert Exp $ */
/* $NetBSD: rpc.h,v 1.5 1994/12/04 01:15:30 cgd Exp $ */
/*
@@ -86,22 +86,22 @@ struct rpcent {
};
__BEGIN_DECLS
-extern struct rpcent *getrpcbyname __P((char *));
-extern struct rpcent *getrpcbynumber __P((int));
-extern struct rpcent *getrpcent __P((void));
-extern void setrpcent __P((int));
-extern void endrpcent __P((void));
-
-extern int get_myaddress __P((struct sockaddr_in *));
-extern int registerrpc __P((int, int, int, char *(*) __P((char [UDPMSGSIZE])),
+extern struct rpcent *getrpcbyname(char *);
+extern struct rpcent *getrpcbynumber(int);
+extern struct rpcent *getrpcent(void);
+extern void setrpcent(int);
+extern void endrpcent(void);
+
+extern int get_myaddress(struct sockaddr_in *);
+extern int registerrpc __P((int, int, int, char *(*)(char [UDPMSGSIZE]),
xdrproc_t, xdrproc_t));
extern int callrpc __P((char *, int, int, int, xdrproc_t, char *,
xdrproc_t , char *));
-extern int getrpcport __P((char *, int, int, int));
+extern int getrpcport(char *, int, int, int);
-extern bool_t xdr_opaque_auth __P((XDR *, struct opaque_auth *));
+extern bool_t xdr_opaque_auth(XDR *, struct opaque_auth *);
-extern int _rpc_dtablesize __P((void));
+extern int _rpc_dtablesize(void);
__END_DECLS
diff --git a/include/rpc/rpc_msg.h b/include/rpc/rpc_msg.h
index d4e4d89f85a..1305959c8f7 100644
--- a/include/rpc/rpc_msg.h
+++ b/include/rpc/rpc_msg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rpc_msg.h,v 1.2 1997/09/21 10:46:15 niklas Exp $ */
+/* $OpenBSD: rpc_msg.h,v 1.3 2002/02/16 21:27:18 millert Exp $ */
/* $NetBSD: rpc_msg.h,v 1.5 1995/04/29 05:28:00 cgd Exp $ */
/*
@@ -167,7 +167,7 @@ __BEGIN_DECLS
* XDR *xdrs;
* struct rpc_msg *cmsg;
*/
-extern bool_t xdr_callmsg __P((XDR *, struct rpc_msg *));
+extern bool_t xdr_callmsg(XDR *, struct rpc_msg *);
/*
* XDR routine to pre-serialize the static part of a rpc message.
@@ -175,7 +175,7 @@ extern bool_t xdr_callmsg __P((XDR *, struct rpc_msg *));
* XDR *xdrs;
* struct rpc_msg *cmsg;
*/
-extern bool_t xdr_callhdr __P((XDR *, struct rpc_msg *));
+extern bool_t xdr_callhdr(XDR *, struct rpc_msg *);
/*
* XDR routine to handle a rpc reply.
@@ -183,7 +183,7 @@ extern bool_t xdr_callhdr __P((XDR *, struct rpc_msg *));
* XDR *xdrs;
* struct rpc_msg *rmsg;
*/
-extern bool_t xdr_replymsg __P((XDR *, struct rpc_msg *));
+extern bool_t xdr_replymsg(XDR *, struct rpc_msg *);
/*
* Fills in the error part of a reply message.
@@ -191,7 +191,7 @@ extern bool_t xdr_replymsg __P((XDR *, struct rpc_msg *));
* struct rpc_msg *msg;
* struct rpc_err *error;
*/
-extern void _seterr_reply __P((struct rpc_msg *, struct rpc_err *));
+extern void _seterr_reply(struct rpc_msg *, struct rpc_err *);
__END_DECLS
#endif /* !_RPC_RPCMSG_H */
diff --git a/include/rpc/svc.h b/include/rpc/svc.h
index 0ade6063889..be428e2f4ef 100644
--- a/include/rpc/svc.h
+++ b/include/rpc/svc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: svc.h,v 1.5 2001/09/15 13:51:00 deraadt Exp $ */
+/* $OpenBSD: svc.h,v 1.6 2002/02/16 21:27:18 millert Exp $ */
/* $NetBSD: svc.h,v 1.9 1995/04/29 05:28:01 cgd Exp $ */
/*
@@ -82,7 +82,7 @@ typedef struct __rpc_svcxprt {
bool_t (*xp_recv) __P((struct __rpc_svcxprt *,
struct rpc_msg *));
/* get transport status */
- enum xprt_stat (*xp_stat) __P((struct __rpc_svcxprt *));
+ enum xprt_stat (*xp_stat)(struct __rpc_svcxprt *);
/* get arguments */
bool_t (*xp_getargs) __P((struct __rpc_svcxprt *, xdrproc_t,
caddr_t));
@@ -93,7 +93,7 @@ typedef struct __rpc_svcxprt {
bool_t (*xp_freeargs) __P((struct __rpc_svcxprt *, xdrproc_t,
caddr_t));
/* destroy this struct */
- void (*xp_destroy) __P((struct __rpc_svcxprt *));
+ void (*xp_destroy)(struct __rpc_svcxprt *);
} *xp_ops;
socklen_t xp_addrlen; /* length of remote address */
struct sockaddr_in xp_raddr; /* remote address */
@@ -171,7 +171,7 @@ struct svc_req {
*/
__BEGIN_DECLS
extern bool_t svc_register __P((SVCXPRT *, u_long, u_long,
- void (*) __P((struct svc_req *, SVCXPRT *)), int));
+ void (*)(struct svc_req *, SVCXPRT *), int));
__END_DECLS
/*
@@ -182,7 +182,7 @@ __END_DECLS
* u_long vers;
*/
__BEGIN_DECLS
-extern void svc_unregister __P((u_long, u_long));
+extern void svc_unregister(u_long, u_long);
__END_DECLS
/*
@@ -192,8 +192,8 @@ __END_DECLS
* SVCXPRT *xprt;
*/
__BEGIN_DECLS
-extern void xprt_register __P((SVCXPRT *));
-extern int __xprt_register __P((SVCXPRT *));
+extern void xprt_register(SVCXPRT *);
+extern int __xprt_register(SVCXPRT *);
__END_DECLS
/*
@@ -203,7 +203,7 @@ __END_DECLS
* SVCXPRT *xprt;
*/
__BEGIN_DECLS
-extern void xprt_unregister __P((SVCXPRT *));
+extern void xprt_unregister(SVCXPRT *);
__END_DECLS
@@ -236,14 +236,14 @@ __END_DECLS
*/
__BEGIN_DECLS
-extern bool_t svc_sendreply __P((SVCXPRT *, xdrproc_t, char *));
-extern void svcerr_decode __P((SVCXPRT *));
-extern void svcerr_weakauth __P((SVCXPRT *));
-extern void svcerr_noproc __P((SVCXPRT *));
-extern void svcerr_progvers __P((SVCXPRT *, u_long, u_long));
-extern void svcerr_auth __P((SVCXPRT *, enum auth_stat));
-extern void svcerr_noprog __P((SVCXPRT *));
-extern void svcerr_systemerr __P((SVCXPRT *));
+extern bool_t svc_sendreply(SVCXPRT *, xdrproc_t, char *);
+extern void svcerr_decode(SVCXPRT *);
+extern void svcerr_weakauth(SVCXPRT *);
+extern void svcerr_noproc(SVCXPRT *);
+extern void svcerr_progvers(SVCXPRT *, u_long, u_long);
+extern void svcerr_auth(SVCXPRT *, enum auth_stat);
+extern void svcerr_noprog(SVCXPRT *);
+extern void svcerr_systemerr(SVCXPRT *);
__END_DECLS
/*
@@ -276,10 +276,10 @@ extern int svc_fds;
extern void rpctest_service(); /* XXX relic? */
__BEGIN_DECLS
-extern void svc_getreq __P((int));
-extern void svc_getreqset __P((fd_set *));
-extern void svc_getreqset2 __P((fd_set *, int));
-extern void svc_run __P((void));
+extern void svc_getreq(int);
+extern void svc_getreqset(fd_set *);
+extern void svc_getreqset2(fd_set *, int);
+extern void svc_run(void);
__END_DECLS
/*
@@ -295,7 +295,7 @@ __END_DECLS
* Memory based rpc for testing and timing.
*/
__BEGIN_DECLS
-extern SVCXPRT *svcraw_create __P((void));
+extern SVCXPRT *svcraw_create(void);
__END_DECLS
@@ -303,8 +303,8 @@ __END_DECLS
* Udp based rpc.
*/
__BEGIN_DECLS
-extern SVCXPRT *svcudp_create __P((int));
-extern SVCXPRT *svcudp_bufcreate __P((int, u_int, u_int));
+extern SVCXPRT *svcudp_create(int);
+extern SVCXPRT *svcudp_bufcreate(int, u_int, u_int);
__END_DECLS
@@ -312,14 +312,14 @@ __END_DECLS
* Tcp based rpc.
*/
__BEGIN_DECLS
-extern SVCXPRT *svctcp_create __P((int, u_int, u_int));
+extern SVCXPRT *svctcp_create(int, u_int, u_int);
__END_DECLS
/*
* Fd based rpc.
*/
__BEGIN_DECLS
-extern SVCXPRT *svcfd_create __P((int, u_int, u_int));
+extern SVCXPRT *svcfd_create(int, u_int, u_int);
__END_DECLS
#endif /* !_RPC_SVC_H */
diff --git a/include/rpc/svc_auth.h b/include/rpc/svc_auth.h
index d775ae8772a..89f96ce5a8d 100644
--- a/include/rpc/svc_auth.h
+++ b/include/rpc/svc_auth.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: svc_auth.h,v 1.2 1997/09/21 10:46:16 niklas Exp $ */
+/* $OpenBSD: svc_auth.h,v 1.3 2002/02/16 21:27:18 millert Exp $ */
/* $NetBSD: svc_auth.h,v 1.4 1994/10/26 00:57:07 cgd Exp $ */
/*
@@ -46,7 +46,7 @@
* Server side authenticator
*/
__BEGIN_DECLS
-extern enum auth_stat _authenticate __P((struct svc_req *, struct rpc_msg *));
+extern enum auth_stat _authenticate(struct svc_req *, struct rpc_msg *);
__END_DECLS
#endif /* !_RPC_SVCAUTH_H */
diff --git a/include/rpc/xdr.h b/include/rpc/xdr.h
index abbfb341a25..3b9076ea4ca 100644
--- a/include/rpc/xdr.h
+++ b/include/rpc/xdr.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: xdr.h,v 1.2 1997/09/21 10:46:18 niklas Exp $ */
+/* $OpenBSD: xdr.h,v 1.3 2002/02/16 21:27:18 millert Exp $ */
/* $NetBSD: xdr.h,v 1.7 1995/04/29 05:28:06 cgd Exp $ */
/*
@@ -101,21 +101,21 @@ typedef struct __rpc_xdr {
enum xdr_op x_op; /* operation; fast additional param */
struct xdr_ops {
/* get a long from underlying stream */
- bool_t (*x_getlong) __P((struct __rpc_xdr *, long *));
+ bool_t (*x_getlong)(struct __rpc_xdr *, long *);
/* put a long to " */
- bool_t (*x_putlong) __P((struct __rpc_xdr *, long *));
+ bool_t (*x_putlong)(struct __rpc_xdr *, long *);
/* get some bytes from " */
- bool_t (*x_getbytes) __P((struct __rpc_xdr *, caddr_t, u_int));
+ bool_t (*x_getbytes)(struct __rpc_xdr *, caddr_t, u_int);
/* put some bytes to " */
- bool_t (*x_putbytes) __P((struct __rpc_xdr *, caddr_t, u_int));
+ bool_t (*x_putbytes)(struct __rpc_xdr *, caddr_t, u_int);
/* returns bytes off from beginning */
- u_int (*x_getpostn) __P((struct __rpc_xdr *));
+ u_int (*x_getpostn)(struct __rpc_xdr *);
/* lets you reposition the stream */
- bool_t (*x_setpostn) __P((struct __rpc_xdr *, u_int));
+ bool_t (*x_setpostn)(struct __rpc_xdr *, u_int);
/* buf quick ptr to buffered data */
- int32_t *(*x_inline) __P((struct __rpc_xdr *, u_int));
+ int32_t *(*x_inline)(struct __rpc_xdr *, u_int);
/* free privates of this xdr_stream */
- void (*x_destroy) __P((struct __rpc_xdr *));
+ void (*x_destroy)(struct __rpc_xdr *);
} *x_ops;
caddr_t x_public; /* users' data */
caddr_t x_private; /* pointer to private data */
@@ -133,7 +133,7 @@ typedef struct __rpc_xdr {
*
* XXX can't actually prototype it, because some take three args!!!
*/
-typedef bool_t (*xdrproc_t) __P((/* XDR *, void *, u_int */));
+typedef bool_t (*xdrproc_t)(/* XDR *, void *, u_int */);
/*
* Operations defined on a XDR handle
@@ -236,33 +236,33 @@ struct xdr_discrim {
* These are the "generic" xdr routines.
*/
__BEGIN_DECLS
-extern bool_t xdr_void __P((void));
-extern bool_t xdr_int __P((XDR *, int *));
-extern bool_t xdr_u_int __P((XDR *, u_int *));
-extern bool_t xdr_long __P((XDR *, long *));
-extern bool_t xdr_u_long __P((XDR *, u_long *));
-extern bool_t xdr_short __P((XDR *, short *));
-extern bool_t xdr_u_short __P((XDR *, u_short *));
-extern bool_t xdr_int16_t __P((XDR *, int16_t *));
-extern bool_t xdr_u_int16_t __P((XDR *, u_int16_t *));
-extern bool_t xdr_int32_t __P((XDR *, int32_t *));
-extern bool_t xdr_u_int32_t __P((XDR *, u_int32_t *));
-extern bool_t xdr_bool __P((XDR *, bool_t *));
-extern bool_t xdr_enum __P((XDR *, enum_t *));
-extern bool_t xdr_array __P((XDR *, char **, u_int *, u_int, u_int, xdrproc_t));
-extern bool_t xdr_bytes __P((XDR *, char **, u_int *, u_int));
-extern bool_t xdr_opaque __P((XDR *, caddr_t, u_int));
-extern bool_t xdr_string __P((XDR *, char **, u_int));
-extern bool_t xdr_union __P((XDR *, enum_t *, char *, struct xdr_discrim *, xdrproc_t));
-extern bool_t xdr_char __P((XDR *, char *));
-extern bool_t xdr_u_char __P((XDR *, u_char *));
-extern bool_t xdr_vector __P((XDR *, char *, u_int, u_int, xdrproc_t));
-extern bool_t xdr_float __P((XDR *, float *));
-extern bool_t xdr_double __P((XDR *, double *));
-extern bool_t xdr_reference __P((XDR *, caddr_t *, u_int, xdrproc_t));
-extern bool_t xdr_pointer __P((XDR *, caddr_t *, u_int, xdrproc_t));
-extern bool_t xdr_wrapstring __P((XDR *, char **));
-extern void xdr_free __P((xdrproc_t, char *));
+extern bool_t xdr_void(void);
+extern bool_t xdr_int(XDR *, int *);
+extern bool_t xdr_u_int(XDR *, u_int *);
+extern bool_t xdr_long(XDR *, long *);
+extern bool_t xdr_u_long(XDR *, u_long *);
+extern bool_t xdr_short(XDR *, short *);
+extern bool_t xdr_u_short(XDR *, u_short *);
+extern bool_t xdr_int16_t(XDR *, int16_t *);
+extern bool_t xdr_u_int16_t(XDR *, u_int16_t *);
+extern bool_t xdr_int32_t(XDR *, int32_t *);
+extern bool_t xdr_u_int32_t(XDR *, u_int32_t *);
+extern bool_t xdr_bool(XDR *, bool_t *);
+extern bool_t xdr_enum(XDR *, enum_t *);
+extern bool_t xdr_array(XDR *, char **, u_int *, u_int, u_int, xdrproc_t);
+extern bool_t xdr_bytes(XDR *, char **, u_int *, u_int);
+extern bool_t xdr_opaque(XDR *, caddr_t, u_int);
+extern bool_t xdr_string(XDR *, char **, u_int);
+extern bool_t xdr_union(XDR *, enum_t *, char *, struct xdr_discrim *, xdrproc_t);
+extern bool_t xdr_char(XDR *, char *);
+extern bool_t xdr_u_char(XDR *, u_char *);
+extern bool_t xdr_vector(XDR *, char *, u_int, u_int, xdrproc_t);
+extern bool_t xdr_float(XDR *, float *);
+extern bool_t xdr_double(XDR *, double *);
+extern bool_t xdr_reference(XDR *, caddr_t *, u_int, xdrproc_t);
+extern bool_t xdr_pointer(XDR *, caddr_t *, u_int, xdrproc_t);
+extern bool_t xdr_wrapstring(XDR *, char **);
+extern void xdr_free(xdrproc_t, char *);
__END_DECLS
/*
@@ -275,7 +275,7 @@ struct netobj {
char *n_bytes;
};
typedef struct netobj netobj;
-extern bool_t xdr_netobj __P((XDR *, struct netobj *));
+extern bool_t xdr_netobj(XDR *, struct netobj *);
/*
* These are the public routines for the various implementations of
@@ -283,26 +283,26 @@ extern bool_t xdr_netobj __P((XDR *, struct netobj *));
*/
__BEGIN_DECLS
/* XDR using memory buffers */
-extern void xdrmem_create __P((XDR *, char *, u_int, enum xdr_op));
+extern void xdrmem_create(XDR *, char *, u_int, enum xdr_op);
#ifdef _STDIO_H_
/* XDR using stdio library */
-extern void xdrstdio_create __P((XDR *, FILE *, enum xdr_op));
+extern void xdrstdio_create(XDR *, FILE *, enum xdr_op);
#endif
/* XDR pseudo records for tcp */
extern void xdrrec_create __P((XDR *, u_int, u_int, char *,
- int (*) __P((caddr_t, caddr_t, int)),
- int (*) __P((caddr_t, caddr_t, int))));
+ int (*)(caddr_t, caddr_t, int),
+ int (*)(caddr_t, caddr_t, int)));
/* make end of xdr record */
-extern bool_t xdrrec_endofrecord __P((XDR *, int));
+extern bool_t xdrrec_endofrecord(XDR *, int);
/* move to beginning of next record */
-extern bool_t xdrrec_skiprecord __P((XDR *));
+extern bool_t xdrrec_skiprecord(XDR *);
/* true if no more input */
-extern bool_t xdrrec_eof __P((XDR *));
+extern bool_t xdrrec_eof(XDR *);
__END_DECLS
#endif /* !_RPC_XDR_H */