summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/gethostbynis.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix the style of the SCM ID's.obrien2002-03-221-4/+2
| | | | I believe have made all of libc .c's as consistent as possible.
* Remove 'register' keyword.obrien2002-03-211-1/+1
|
* Removed duplicate VCS ID tags, as per style(9).ru2001-08-131-2/+2
|
* Set h_errno when an error is encountered.nectar2000-09-101-2/+9
| | | | | PR: bin/21092 Submitted by: Alexander Kabaev <ak03@gte.com>
* Add nsswitch support. By creating an /etc/nsswitch.conf file, you cannectar2000-09-061-11/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | configure FreeBSD so that various databases such as passwd and group can be looked up using flat files, NIS, or Hesiod. = Hesiod has been added to libc (see hesiod(3)). = A library routine for parsing nsswitch.conf and invoking callback functions as specified has been added to libc (see nsdispatch(3)). = The following C library functions have been modified to use nsdispatch: . getgrent, getgrnam, getgrgid . getpwent, getpwnam, getpwuid . getusershell . getaddrinfo . gethostbyname, gethostbyname2, gethostbyaddr . getnetbyname, getnetbyaddr . getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr = host.conf has been removed from src/etc. rc.network has been modified to warn that host.conf is no longer used at boot time. In addition, if there is a host.conf but no nsswitch.conf, the latter is created at boot time from the former. Obtained from: NetBSD
* $Id$ -> $FreeBSD$peter1999-08-281-2/+2
|
* gethostbyname2() was broken for lookups via NIS on FreeBSD/alphagallatin1999-01-251-4/+7
| | | | | due to _gethostbynis() setting h.h_length to sizeof(u_long), which works out to 8 on alphas. And 8!= NS_INADDRSZ.
* Revert $FreeBSD$ to $Id$peter1997-02-221-2/+2
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-2/+2
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Small yet significant tweaks/cleanups:wpaul1996-12-271-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | - getservent: o put _yp_check() proto under #ifdef YP where it belongs o local YP buffers should be YPMAXRECORD + 2 bytes long and should be NUL terminated after copying - gethostbynis: o local YP buffer should be YPMAXRECORD + 2 bytes long - getnetbynis: o local YP buffer should be YPMAXRECORD + 2 bytes long and should be NUL terminated after copying - ether_addr: o local YP buffers should be YPMAXRECORD + 2 bytes long and should be NUL terminated after copying (in this case it's BUFSIZ + 2 bytes, but it happens that BUFSIZ == YPMAXRECORD. - gethostbydns: o nuke stray 'return(NULL)' in __dns_getanswer() (harmless but looks silly) These are 2.2 candidates. I will wait a few days to make sure these don't break anything and then, if there are no objections, move them to the 2.2 branch.
* Another one-liner: remember to NUL terminate local copy of NIS hostwpaul1996-12-241-2/+3
| | | | | | | | | | lookup results. Without this, doing multiple host/addr lookups in a single process yeilds strange results (the buffer is static, and garbage may be left behind from previous lookups). I just noticed this in 2.2-BETA. Unless somebody threatens to chop my hands off with an axe, I'm going to move this to the 2.2-RELENG branch shortly.
* Merge in bind-4.9.4-P1 resolver...peter1996-08-291-11/+23
|
* General -Wall warning cleanup, part I.jkh1996-07-121-2/+3
| | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu>
* gethostbynis.c:wpaul1996-03-161-5/+18
| | | | | | | | | | | | | | | | | | - Fix problem described in PR #1079: _gethostbynisaddr() doesn't work. Make it accept the same arguments as all the other gethostby*addr() functions and properly convert the supplied IP address into a text string so that yp_match() can find it in the hosts.byaddr map. - Also fix potential memory leak: copy the results of yp_match() to a static buffer and free the result (yp_match() returns dynamically allocated memory). ether_addr.c: - Since I was in the neighborhood, fix ether_ntohost() and ether_hostton() so that they don't bogusly for a free(result) when yp_match() fails.
* get* rework and new bind codepst1994-09-251-0/+115
OpenPOWER on IntegriCloud