diff options
| author | Jason Evans <jasone@FreeBSD.org> | 2000-01-12 09:23:48 +0000 |
|---|---|---|
| committer | Jason Evans <jasone@FreeBSD.org> | 2000-01-12 09:23:48 +0000 |
| commit | 929273386f6e688c008b15fd24932df2ed7e7172 (patch) | |
| tree | b3edfb3b0b6bdadce3b9cf019cabf1218f08038d /lib/libc/net/res_send.c | |
| parent | f3d5d34b459fcd295a618227c37e2bacae1cdf67 (diff) | |
Notes
Diffstat (limited to 'lib/libc/net/res_send.c')
| -rw-r--r-- | lib/libc/net/res_send.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/net/res_send.c b/lib/libc/net/res_send.c index 15f2a13b8ffa..b57b8db497a4 100644 --- a/lib/libc/net/res_send.c +++ b/lib/libc/net/res_send.c @@ -428,7 +428,7 @@ res_send(buf, buflen, ans, anssiz) read_len: cp = ans; len = INT16SZ; - while ((n = read(s, (char *)cp, (int)len)) > 0) { + while ((n = _libc_read(s, (char *)cp, (int)len)) > 0) { cp += n; if ((len -= n) <= 0) break; @@ -476,7 +476,7 @@ read_len: } cp = ans; while (len != 0 && - (n = read(s, (char *)cp, (int)len)) > 0) { + (n = _libc_read(s, (char *)cp, (int)len)) > 0) { cp += n; len -= n; } @@ -499,7 +499,7 @@ read_len: n = (len > sizeof(junk) ? sizeof(junk) : len); - if ((n = read(s, junk, n)) > 0) + if ((n = _libc_read(s, junk, n)) > 0) len -= n; else break; @@ -607,8 +607,8 @@ read_len: int s1 = socket(PF_INET, SOCK_DGRAM,0); if (s1 < 0) goto bad_dg_sock; - (void) dup2(s1, s); - (void) close(s1); + (void)dup2(s1, s); + (void)_libc_close(s1); Dprint(_res.options & RES_DEBUG, (stdout, ";; new DG socket\n")) #endif /* CAN_RECONNECT */ @@ -893,7 +893,7 @@ void res_close() { if (s >= 0) { - (void) close(s); + (void)_libc_close(s); s = -1; connected = 0; vc = 0; |
