summaryrefslogtreecommitdiff
path: root/lib/libc/net/gethostnamadr.c
AgeCommit message (Collapse)Author
1998-03-16Use fgetln(3) instead of fgets(3) so we can easily recognize linesTodd C. Miller
that are too long and ignore them instead of corrupting later entries.
1998-01-20for YP lookups, avoid names longer than MAXHOSTNAMELENTheo de Raadt
1998-01-11Add gethostent(), as some LEGACY code wants it. If you write newTobias Weingartner
code, PLEASE don't use this. Currently only iterates through the local /etc/hosts file.
1997-11-08do not call abort()Theo de Raadt
1997-07-09Clean up some -Wall flowers.Todd C. Miller
1997-04-29oopsTheo de Raadt
1997-04-29careful buffer handlingTheo de Raadt
1997-04-27handle hex-like hostnamesTheo de Raadt
1997-04-15correct the paranoia checkTheo de Raadt
1997-04-14with this here commit i label myself not the swiftestTheo de Raadt
1997-04-13repair _hokcharTheo de Raadt
1997-04-03hokchar -> _hokchar, and make it non-static. Use it in getnetnamadr.c asJason Downs
well.
1997-04-03another lookup[] loop accidentTheo de Raadt
1997-04-03if dns lookup fails, still honour _res.lookups[]Theo de Raadt
1997-04-03ensure host_addr[] remains nicely aligned; pr#145, grr@shandakor.tharsis.comTheo de Raadt
1997-04-02spelling errorTheo de Raadt
1997-03-13Integrate BIND 4.9.5 resolver and associated routines.Jason Downs
Includes the DNS aware getnetby*() routines and IPv6 support.
1997-01-30careful about MAXADDRS, abrown@eecs.harvard.eduTheo de Raadt
1996-09-28bzzztTheo de Raadt
1996-09-27more INADDRSZ pedantryTheo de Raadt
1996-09-27use INADDRSZ, more careful length checkingTheo de Raadt
1996-09-26be safer about spoofed hostnames; thanks to bitblt and oliver for help with ↵Theo de Raadt
these ideas
1996-09-15Add a couple of syscalls; bring more prototypes into scopeThorsten Lockert
1996-08-19Fix RCS idsThorsten Lockert
Make sure everything uses {SYS,}LIBC_SCCS properly
1996-08-05truncate h_name and h_aliases[] to MAXHOSTNAMELENTheo de Raadt
1996-04-24yp_prot.h lies -> use yp.h (from yp.x) instead, change lots of structureTheo de Raadt
accesses to match. change xdr_domainname() and some other functions to take "char **" instead of "char *", as rpcgen intended -- helps programs linking against rpcgen output of yp.x. yp_all() should not free it's return value. split xdryp.c and yplib.c into ~20 files so binaries like "csh" need not link in functions like yp_maplist(). NIS+'s YP emulation code lacks YPPROC_ORDER... attempt to deal nicely.
1996-03-25Pull in prototypesThorsten Lockert
Do the right thing in presense of __STDC__
1996-02-19netbsd: bind 4.9.3dm
1995-11-20gethostbyname("#.#.#.#") should fail; not return an incompletely andTheo de Raadt
incorrectly initialized hostent. in particular, h_name is supposed to be `an official name', and gethostbyname() wasn't even trying to meet that requirement.
1995-10-18initial import of NetBSD treeTheo de Raadt