diff options
Diffstat (limited to 'inet')
-rw-r--r-- | inet/rcmd.c | 4 | ||||
-rw-r--r-- | inet/rexec.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/inet/rcmd.c b/inet/rcmd.c index 4010bacfb0..8ad6f31e4f 100644 --- a/inet/rcmd.c +++ b/inet/rcmd.c @@ -268,7 +268,7 @@ rcmd_af(ahost, rport, locuser, remuser, cmd, fd2p, af) if (s2 < 0) goto bad; - listen(s2, 1); + __listen(s2, 1); (void)__snprintf(num, sizeof(num), "%d", lport); if (__write(s, num, strlen(num)+1) != (ssize_t)strlen(num)+1) { char *buf = NULL; @@ -444,7 +444,7 @@ rresvport_af(alport, family) for (;;) { *sport = htons((uint16_t) *alport); - if (bind(s, (struct sockaddr *)&ss, len) >= 0) + if (__bind(s, (struct sockaddr *)&ss, len) >= 0) return s; if (errno != EADDRINUSE) { (void)__close(s); diff --git a/inet/rexec.c b/inet/rexec.c index c22e53d474..e8ecf79c54 100644 --- a/inet/rexec.c +++ b/inet/rexec.c @@ -115,9 +115,9 @@ retry: (void) __close(s); return (-1); } - listen(s2, 1); + __listen(s2, 1); sa2len = sizeof (sa2); - if (getsockname(s2, (struct sockaddr *)&sa2, &sa2len) < 0) { + if (__getsockname(s2, (struct sockaddr *)&sa2, &sa2len) < 0) { perror("getsockname"); (void) __close(s2); goto bad; |