summaryrefslogtreecommitdiff
path: root/resolv
diff options
context:
space:
mode:
Diffstat (limited to 'resolv')
-rw-r--r--resolv/herror.c2
-rw-r--r--resolv/res_init.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/resolv/herror.c b/resolv/herror.c
index 571d1a0478..95cf4164b0 100644
--- a/resolv/herror.c
+++ b/resolv/herror.c
@@ -106,7 +106,7 @@ herror(s)
v++;
v->iov_base = "\n";
v->iov_len = 1;
- writev(STDERR_FILENO, iov, (v - iov) + 1);
+ __writev(STDERR_FILENO, iov, (v - iov) + 1);
}
const char *
diff --git a/resolv/res_init.c b/resolv/res_init.c
index b22611b087..906a2b1571 100644
--- a/resolv/res_init.c
+++ b/resolv/res_init.c
@@ -386,7 +386,7 @@ res_init()
(void) fclose(fp);
}
if (_res.defdname[0] == 0 &&
- gethostname(buf, sizeof(_res.defdname) - 1) == 0 &&
+ __gethostname(buf, sizeof(_res.defdname) - 1) == 0 &&
(cp = strchr(buf, '.')) != NULL)
strcpy(_res.defdname, cp + 1);
@@ -651,6 +651,6 @@ res_randomid()
{
struct timeval now;
- gettimeofday(&now, NULL);
- return (0xffff & (now.tv_sec ^ now.tv_usec ^ getpid()));
+ __gettimeofday(&now, NULL);
+ return (0xffff & (now.tv_sec ^ now.tv_usec ^ __getpid()));
}