summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/res_send.c
diff options
context:
space:
mode:
authorjasone <jasone@FreeBSD.org>2000-01-27 23:07:25 +0000
committerjasone <jasone@FreeBSD.org>2000-01-27 23:07:25 +0000
commit8abe2a2d86ee5f72093b3feeabf05c9f6f963576 (patch)
tree2ebe01199c17764ebcd26435b5ce1c06ebb67ad5 /lib/libc/net/res_send.c
parent1731b249ccd9d7586d511eda8756f5c6b57b871c (diff)
downloadFreeBSD-src-8abe2a2d86ee5f72093b3feeabf05c9f6f963576.zip
FreeBSD-src-8abe2a2d86ee5f72093b3feeabf05c9f6f963576.tar.gz
Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(),
just use _foo() <-- foo(). In the case of a libpthread that doesn't do call conversion (such as linuxthreads and our upcoming libpthread), this is adequate. In the case of libc_r, we still need three names, which are now _thread_sys_foo() <-- _foo() <-- foo(). Convert all internal libc usage of: aio_suspend(), close(), fsync(), msync(), nanosleep(), open(), fcntl(), read(), and write() to _foo() instead of foo(). Remove all internal libc usage of: creat(), pause(), sleep(), system(), tcdrain(), wait(), and waitpid(). Make thread cancellation fully POSIX-compliant. Suggested by: deischen
Diffstat (limited to 'lib/libc/net/res_send.c')
-rw-r--r--lib/libc/net/res_send.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/net/res_send.c b/lib/libc/net/res_send.c
index b57b8db..68a7c60 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 = _libc_read(s, (char *)cp, (int)len)) > 0) {
+ while ((n = _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 = _libc_read(s, (char *)cp, (int)len)) > 0) {
+ (n = _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 = _libc_read(s, junk, n)) > 0)
+ if ((n = _read(s, junk, n)) > 0)
len -= n;
else
break;
@@ -608,7 +608,7 @@ read_len:
if (s1 < 0)
goto bad_dg_sock;
(void)dup2(s1, s);
- (void)_libc_close(s1);
+ (void)_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)_libc_close(s);
+ (void)_close(s);
s = -1;
connected = 0;
vc = 0;
OpenPOWER on IntegriCloud