summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/svc_vc.c
diff options
context:
space:
mode:
authormbr <mbr@FreeBSD.org>2003-01-26 23:01:49 +0000
committermbr <mbr@FreeBSD.org>2003-01-26 23:01:49 +0000
commit066352b2182598104e55fbeeb7ffa08692e62cf9 (patch)
tree310ab19ddb720b408fd2f3c50866f4fd9610b0c7 /lib/libc/rpc/svc_vc.c
parent26450b90d3f662bae088bbaa836ca7baa2fe1e52 (diff)
downloadFreeBSD-src-066352b2182598104e55fbeeb7ffa08692e62cf9.zip
FreeBSD-src-066352b2182598104e55fbeeb7ffa08692e62cf9.tar.gz
Fix namespace pollution introduced in previous commit.
Reviewed by: phk
Diffstat (limited to 'lib/libc/rpc/svc_vc.c')
-rw-r--r--lib/libc/rpc/svc_vc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/rpc/svc_vc.c b/lib/libc/rpc/svc_vc.c
index ee802e2..90fb29b 100644
--- a/lib/libc/rpc/svc_vc.c
+++ b/lib/libc/rpc/svc_vc.c
@@ -357,10 +357,10 @@ again:
cd->maxrec = r->maxrec;
if (cd->maxrec != 0) {
- flags = fcntl(sock, F_GETFL, 0);
+ flags = _fcntl(sock, F_GETFL, 0);
if (flags == -1)
return (FALSE);
- if (fcntl(sock, F_SETFL, flags | O_NONBLOCK) == -1)
+ if (_fcntl(sock, F_SETFL, flags | O_NONBLOCK) == -1)
return (FALSE);
if (cd->recvsize > cd->maxrec)
cd->recvsize = cd->maxrec;
@@ -488,7 +488,7 @@ read_vc(xprtp, buf, len)
cfp = (struct cf_conn *)xprt->xp_p1;
if (cfp->nonblock) {
- len = read(sock, buf, (size_t)len);
+ len = _read(sock, buf, (size_t)len);
if (len < 0) {
if (errno == EAGAIN)
len = 0;
@@ -527,7 +527,7 @@ read_vc(xprtp, buf, len)
} else
goto fatal_err;
} else {
- if ((len = read(sock, buf, (size_t)len)) > 0) {
+ if ((len = _read(sock, buf, (size_t)len)) > 0) {
gettimeofday(&cfp->last_recv_time, NULL);
return (len);
}
OpenPOWER on IntegriCloud