aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libc/net/gethostbyname.3
diff options
context:
space:
mode:
authorSam Lawrance <lawrance@FreeBSD.org>2006-11-04 09:42:22 +0000
committerSam Lawrance <lawrance@FreeBSD.org>2006-11-04 09:42:22 +0000
commit6b0a380f6db92d5712ca10b064e14abf1b0e9f4c (patch)
tree4c7eef5d972524a326285db5d5bc7de060c35bfe /lib/libc/net/gethostbyname.3
parent137e54d3db759a6983d71e1ded4277aecdb6a4d1 (diff)
downloadsrc-6b0a380f6db92d5712ca10b064e14abf1b0e9f4c.tar.gz
src-6b0a380f6db92d5712ca10b064e14abf1b0e9f4c.zip
Document return values for res_query and res_search.
h_errno is not an extern int, just a macro providing an integer lvalue. PR: doc/50573 Submitted by: Ronald F.Guilmette <rfg@monkeys.com> Reviewed by: trhodes MFC after: 3 days
Notes
Notes: svn path=/head/; revision=163982
Diffstat (limited to 'lib/libc/net/gethostbyname.3')
-rw-r--r--lib/libc/net/gethostbyname.34
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/net/gethostbyname.3 b/lib/libc/net/gethostbyname.3
index afd01b0ccbce..ef7d55ae59a0 100644
--- a/lib/libc/net/gethostbyname.3
+++ b/lib/libc/net/gethostbyname.3
@@ -49,7 +49,7 @@
.Lb libc
.Sh SYNOPSIS
.In netdb.h
-.Vt extern int h_errno ;
+.Vt int h_errno ;
.Ft struct hostent *
.Fn gethostbyname "const char *name"
.Ft struct hostent *
@@ -261,7 +261,7 @@ and
is indicated by return of a
.Dv NULL
pointer.
-The external integer
+The integer
.Va h_errno
may then be checked to see whether this is a temporary failure
or an invalid or unknown host.