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/name6.c | |
parent | f3d5d34b459fcd295a618227c37e2bacae1cdf67 (diff) | |
download | src-929273386f6e688c008b15fd24932df2ed7e7172.tar.gz src-929273386f6e688c008b15fd24932df2ed7e7172.zip |
Add three-tier symbol naming in support of POSIX thread cancellation
points. For library functions, the pattern is __sleep() <--
_libc_sleep() <-- sleep(). The arrows represent weak aliases. For
system calls, the pattern is _read() <-- _libc_read() <-- read().
Notes
Notes:
svn path=/head/; revision=55837
Diffstat (limited to 'lib/libc/net/name6.c')
-rw-r--r-- | lib/libc/net/name6.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/net/name6.c b/lib/libc/net/name6.c index 668345149c9e..2f83d1c070d0 100644 --- a/lib/libc/net/name6.c +++ b/lib/libc/net/name6.c @@ -257,7 +257,7 @@ _ghbyname(const char *name, int af, int flags, int *errp) * (or apropriate interval), * because addresses will be dynamically assigned or deleted. */ - close(s); + _libc_close(s); } for (i = 0; i < MAXHOSTCONF; i++) { @@ -1182,21 +1182,21 @@ _icmp_fqdn_query(const struct in6_addr *addr, int ifindex) (char *)&filter, sizeof(filter)); cc = sendmsg(s, &msg, 0); if (cc < 0) { - close(s); + _libc_close(s); return NULL; } FD_SET(s, &s_fds); for (;;) { fds = s_fds; if (select(s + 1, &fds, NULL, NULL, &tout) <= 0) { - close(s); + _libc_close(s); return NULL; } len = sizeof(sin6); cc = recvfrom(s, buf, sizeof(buf), 0, (struct sockaddr *)&sin6, &len); if (cc <= 0) { - close(s); + _libc_close(s); return NULL; } if (cc < sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr)) @@ -1207,7 +1207,7 @@ _icmp_fqdn_query(const struct in6_addr *addr, int ifindex) if (fr->icmp6_fqdn_type == ICMP6_FQDN_REPLY) break; } - close(s); + _libc_close(s); if (fr->icmp6_fqdn_cookie[1] != 0) { /* rfc1788 type */ name = buf + sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr) + 4; |