it seems that gethostent(3) is no longer supplied in libc.

couple of wording corrections.
From: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
This commit is contained in:
itojun 2001-02-28 02:30:31 +00:00
parent 163eba47d8
commit dea3f7103b
4 changed files with 49 additions and 64 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: mi,v 1.315 2001/02/27 14:41:52 wiz Exp $
# $NetBSD: mi,v 1.316 2001/02/28 02:30:31 itojun Exp $
./sys comp-sysutil-root
./usr/bin/addr2line comp-debug-bin
./usr/bin/ar comp-util-bin
@ -2164,7 +2164,6 @@
./usr/share/man/cat3/gethostbyaddr.0 comp-c-catman
./usr/share/man/cat3/gethostbyname.0 comp-c-catman
./usr/share/man/cat3/gethostbyname2.0 comp-c-catman
./usr/share/man/cat3/gethostent.0 comp-c-catman
./usr/share/man/cat3/gethostid.0 comp-c-catman
./usr/share/man/cat3/gethostname.0 comp-c-catman
./usr/share/man/cat3/getifaddrs.0 comp-c-catman
@ -4011,7 +4010,6 @@
./usr/share/man/man3/gethostbyaddr.3 comp-c-man
./usr/share/man/man3/gethostbyname.3 comp-c-man
./usr/share/man/man3/gethostbyname2.3 comp-c-man
./usr/share/man/man3/gethostent.3 comp-c-man
./usr/share/man/man3/gethostid.3 comp-c-man
./usr/share/man/man3/gethostname.3 comp-c-man
./usr/share/man/man3/getifaddrs.3 comp-c-man

View File

@ -1,4 +1,4 @@
# $NetBSD: obsolete.mi,v 1.36 2001/02/25 16:15:09 ad Exp $
# $NetBSD: obsolete.mi,v 1.37 2001/02/28 02:30:32 itojun Exp $
/usr/bin/genclass
/usr/bin/gettextize
/usr/include/bfd
@ -348,38 +348,6 @@
/usr/share/ldscripts/m68kelf.xr
/usr/share/ldscripts/m68kelf.xs
/usr/share/ldscripts/m68kelf.xu
/usr/share/man/cat1/flexdoc.0
/usr/share/man/cat1/lexdoc.0
/usr/share/man/cat2/getdirentries.0
/usr/share/man/cat2/swapon.0
/usr/share/man/cat3/getpw.0
/usr/share/man/cat3/regsterrpc.0
/usr/share/man/cat3/securepath.0
/usr/share/man/cat3/setgrfile.0
/usr/share/man/cat3/setpwfile.0
/usr/share/man/cat3/setregid.0
/usr/share/man/cat3/setreuid.0
/usr/share/man/cat3/svc_getreg.0
/usr/share/man/cat3/svc_getregset.0
/usr/share/man/cat3/vlimit.0
/usr/share/man/cat3/vtimes.0
/usr/share/man/cat8/config.new.0
/usr/share/man/cat9/vslock.0
/usr/share/man/cat9/vsunlock.0
/usr/share/man/man3/getpw.3
/usr/share/man/man3/regsterrpc.3
/usr/share/man/man3/securepath.3
/usr/share/man/man3/svc_getreg.3
/usr/share/man/man3/svc_getregset.3
/usr/share/man/man3/vlimit.3
/usr/share/man/man3/vtimes.3
/usr/share/man/man9/vslock.9
/usr/share/man/man9/vsunlock.9
/usr/share/misc/gprof.callg
/usr/share/misc/gprof.flat
/usr/share/mk/bsd.crypto.mk
/usr/share/mk/bsd.port.mk
/usr/share/mk/bsd.port.subdir.mk
/usr/share/lkm
/usr/share/lkm/README
/usr/share/lkm/misc
@ -406,3 +374,37 @@
/usr/share/lkm/vfs/module
/usr/share/lkm/vfs/module/Makefile
/usr/share/lkm/vfs/module/kernfsmod.c
/usr/share/man/cat1/flexdoc.0
/usr/share/man/cat1/lexdoc.0
/usr/share/man/cat2/getdirentries.0
/usr/share/man/cat2/swapon.0
/usr/share/man/cat3/gethostent.0
/usr/share/man/cat3/getpw.0
/usr/share/man/cat3/regsterrpc.0
/usr/share/man/cat3/securepath.0
/usr/share/man/cat3/setgrfile.0
/usr/share/man/cat3/setpwfile.0
/usr/share/man/cat3/setregid.0
/usr/share/man/cat3/setreuid.0
/usr/share/man/cat3/svc_getreg.0
/usr/share/man/cat3/svc_getregset.0
/usr/share/man/cat3/vlimit.0
/usr/share/man/cat3/vtimes.0
/usr/share/man/cat8/config.new.0
/usr/share/man/cat9/vslock.0
/usr/share/man/cat9/vsunlock.0
/usr/share/man/man3/gethostent.3
/usr/share/man/man3/getpw.3
/usr/share/man/man3/regsterrpc.3
/usr/share/man/man3/securepath.3
/usr/share/man/man3/svc_getreg.3
/usr/share/man/man3/svc_getregset.3
/usr/share/man/man3/vlimit.3
/usr/share/man/man3/vtimes.3
/usr/share/man/man9/vslock.9
/usr/share/man/man9/vsunlock.9
/usr/share/misc/gprof.callg
/usr/share/misc/gprof.flat
/usr/share/mk/bsd.crypto.mk
/usr/share/mk/bsd.port.mk
/usr/share/mk/bsd.port.subdir.mk

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.55 2000/07/07 05:30:58 cgd Exp $
# $NetBSD: Makefile.inc,v 1.56 2001/02/28 02:30:31 itojun Exp $
# @(#)Makefile.inc 8.2 (Berkeley) 9/5/93
# net sources
@ -46,7 +46,7 @@ MLINKS+=byteorder.3 htonl.3 byteorder.3 htons.3 byteorder.3 ntohl.3 \
MLINKS+=ethers.3 ether_aton.3 ethers.3 ether_hostton.3 ethers.3 ether_line.3 \
ethers.3 ether_ntoa.3 ethers.3 ether_ntohost.3
MLINKS+=gethostbyname.3 endhostent.3 gethostbyname.3 gethostbyaddr.3 \
gethostbyname.3 sethostent.3 gethostbyname.3 gethostent.3 \
gethostbyname.3 sethostent.3 \
gethostbyname.3 herror.3 gethostbyname.3 hstrerror.3 \
gethostbyname.3 gethostbyname2.3
MLINKS+=getnetent.3 endnetent.3 getnetent.3 getnetbyaddr.3 \

View File

@ -1,4 +1,4 @@
.\" $NetBSD: gethostbyname.3,v 1.17 2000/04/24 16:17:07 itojun Exp $
.\" $NetBSD: gethostbyname.3,v 1.18 2001/02/28 02:30:31 itojun Exp $
.\"
.\" Copyright (c) 1983, 1987, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@ -40,7 +40,6 @@
.Nm gethostbyname ,
.Nm gethostbyname2 ,
.Nm gethostbyaddr ,
.Nm gethostent ,
.Nm sethostent ,
.Nm endhostent ,
.Nm herror ,
@ -57,8 +56,6 @@
.Fn gethostbyname2 "const char *name" "int af"
.Ft struct hostent *
.Fn gethostbyaddr "const char *addr" "int len" "int type"
.Ft struct hostent *
.Fn gethostent void
.Ft void
.Fn sethostent "int stayopen"
.Ft void
@ -83,7 +80,7 @@ broken-out fields from a line in
.Pa /etc/hosts ,
or database entries supplied by the
.Xr yp 8
system .
system.
The order of the lookups is controlled by the
.Sq hosts
entry in
@ -250,25 +247,15 @@ for example, a mail-forwarder may be registered for this domain.
.Xr hostname 7 ,
.Xr named 8
.Sh CAVEAT
The
.Fn gethostent
function is defined, and
.Fn sethostent
and
.Fn endhostent
are redefined,
when
.Xr libc 3
is built to use only the routines to lookup in
If the search routines specified in
.Xr nsswitch.conf 5
decide to read the
.Pa /etc/hosts
and not the name server.
.Pp
The
.Fn gethostent
function
reads the next line of
.Pa /etc/hosts ,
opening the file if necessary.
file,
.Fn gethostbyname
and other functions will
read the next line of the file,
re-opening the file if necessary.
.Pp
The
.Fn sethostent
@ -286,8 +273,7 @@ or
.Pp
The
.Fn endhostent
function
closes the file.
function closes the file.
.Sh HISTORY
The
.Fn herror
@ -297,7 +283,6 @@ The
.Fn endhostent ,
.Fn gethostbyaddr ,
.Fn gethostbyname ,
.Fn gethostent ,
and
.Fn sethostent
functions appeared in