diff options
author | wpaul <wpaul@FreeBSD.org> | 2001-10-04 21:03:17 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 2001-10-04 21:03:17 +0000 |
commit | 6c9e575b196d51cc925335b293fd6b2b5c65741c (patch) | |
tree | f04cd3fc84edc685f5914bdfc6a024dc824eea72 /include/rpc | |
parent | 17c13225904c1761505c467deec9ae5ce1e4c53b (diff) | |
download | FreeBSD-src-6c9e575b196d51cc925335b293fd6b2b5c65741c.zip FreeBSD-src-6c9e575b196d51cc925335b293fd6b2b5c65741c.tar.gz |
Add compatibility functions for the AF_LOCAL RPC transport stuff
that used to live in RPC 4.0. This is needed for yppasswd and
rpc.yppasswdd to work correctly. Patch supplied by Martin Blapp.
Diffstat (limited to 'include/rpc')
-rw-r--r-- | include/rpc/clnt.h | 5 | ||||
-rw-r--r-- | include/rpc/svc.h | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/include/rpc/clnt.h b/include/rpc/clnt.h index 1303690..f8af9a2 100644 --- a/include/rpc/clnt.h +++ b/include/rpc/clnt.h @@ -338,6 +338,11 @@ extern CLIENT *clnt_vc_create __P((const int, const struct netbuf *, const rpcprog_t, const rpcvers_t, const u_int, const u_int)); /* + * Added for compatibility to old rpc 4.0. Obsoleted by clnt_vc_create(). + */ +extern CLIENT *clntunix_create __P((struct sockaddr_un *, + u_long, u_long, int *, u_int, u_int)); +/* * const int fd; -- open file descriptor * const struct netbuf *svcaddr; -- servers address * const rpcprog_t prog; -- program number diff --git a/include/rpc/svc.h b/include/rpc/svc.h index 1f3c725..f779646 100644 --- a/include/rpc/svc.h +++ b/include/rpc/svc.h @@ -381,6 +381,11 @@ extern SVCXPRT *svc_vc_create __P((const int, const u_int, const u_int)); * const u_int recvsize; -- max recv size */ +/* + * Added for compatibility to old rpc 4.0. Obsoleted by svc_vc_create(). + */ +extern SVCXPRT *svcunix_create __P((int, u_int, u_int, char *)); + extern SVCXPRT *svc_dg_create __P((const int, const u_int, const u_int)); /* * const int fd; -- open connection @@ -401,6 +406,11 @@ extern SVCXPRT *svc_fd_create __P((const int, const u_int, const u_int)); */ /* + * Added for compatibility to old rpc 4.0. Obsoleted by svc_fd_create(). + */ +extern SVCXPRT *svcunixfd_create __P((int, u_int, u_int)); + +/* * Memory based rpc (for speed check and testing) */ extern SVCXPRT *svc_raw_create __P((void)); |