diff options
author | Ulrich Drepper <drepper@gmail.com> | 2011-04-16 21:59:36 -0400 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2011-04-16 21:59:36 -0400 |
commit | 7b57bfe5988e476ea40934457dfd1c8a231e2391 (patch) | |
tree | 33dbec2b9a1a8fd8472a214945090f31d5372a8e /sunrpc/svc_tcp.c | |
parent | e6c61494125126d2ba77e5d99f83887a2ed49783 (diff) | |
download | glibc-7b57bfe5988e476ea40934457dfd1c8a231e2391.tar.gz glibc-7b57bfe5988e476ea40934457dfd1c8a231e2391.tar.xz glibc-7b57bfe5988e476ea40934457dfd1c8a231e2391.zip |
Obsolete RPC implementation in libc.
Diffstat (limited to 'sunrpc/svc_tcp.c')
-rw-r--r-- | sunrpc/svc_tcp.c | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/sunrpc/svc_tcp.c b/sunrpc/svc_tcp.c index dd6648504b..74f2cd9cf3 100644 --- a/sunrpc/svc_tcp.c +++ b/sunrpc/svc_tcp.c @@ -186,6 +186,11 @@ svctcp_create (int sock, u_int sendsize, u_int recvsize) xprt_register (xprt); return xprt; } +#ifdef EXPORT_RPC_SYMBOLS +libc_hidden_def (svctcp_create) +#else +libc_hidden_nolink (svctcp_create, GLIBC_2_0) +#endif /* * Like svtcp_create(), except the routine takes any *open* UNIX file @@ -196,6 +201,7 @@ svcfd_create (int fd, u_int sendsize, u_int recvsize) { return makefd_xprt (fd, sendsize, recvsize); } +libc_hidden_nolink (svcfd_create, GLIBC_2_0) static SVCXPRT * internal_function @@ -215,8 +221,8 @@ makefd_xprt (int fd, u_int sendsize, u_int recvsize) return NULL; } cd->strm_stat = XPRT_IDLE; - INTUSE(xdrrec_create) (&(cd->xdrs), sendsize, recvsize, - (caddr_t) xprt, readtcp, writetcp); + xdrrec_create (&(cd->xdrs), sendsize, recvsize, + (caddr_t) xprt, readtcp, writetcp); xprt->xp_p2 = NULL; xprt->xp_p1 = (caddr_t) cd; xprt->xp_verf.oa_base = cd->verf_body; @@ -308,9 +314,9 @@ readtcp (char *xprtptr, char *buf, int len) case 0: goto fatal_err; default: - if ((pollfd.revents & POLLERR) || (pollfd.revents & POLLHUP) - || (pollfd.revents & POLLNVAL)) - goto fatal_err; + if ((pollfd.revents & POLLERR) || (pollfd.revents & POLLHUP) + || (pollfd.revents & POLLNVAL)) + goto fatal_err; break; } } @@ -353,7 +359,7 @@ svctcp_stat (SVCXPRT *xprt) if (cd->strm_stat == XPRT_DIED) return XPRT_DIED; - if (!INTUSE(xdrrec_eof) (&(cd->xdrs))) + if (!xdrrec_eof (&(cd->xdrs))) return XPRT_MOREREQS; return XPRT_IDLE; } @@ -365,8 +371,8 @@ svctcp_recv (SVCXPRT *xprt, struct rpc_msg *msg) XDR *xdrs = &(cd->xdrs); xdrs->x_op = XDR_DECODE; - (void) INTUSE(xdrrec_skiprecord) (xdrs); - if (INTUSE(xdr_callmsg) (xdrs, msg)) + (void) xdrrec_skiprecord (xdrs); + if (xdr_callmsg (xdrs, msg)) { cd->x_id = msg->rm_xid; return TRUE; @@ -400,7 +406,7 @@ svctcp_reply (SVCXPRT *xprt, struct rpc_msg *msg) xdrs->x_op = XDR_ENCODE; msg->rm_xid = cd->x_id; - stat = INTUSE(xdr_replymsg) (xdrs, msg); - (void) INTUSE(xdrrec_endofrecord) (xdrs, TRUE); + stat = xdr_replymsg (xdrs, msg); + (void) xdrrec_endofrecord (xdrs, TRUE); return stat; } |