Home | History | Annotate | Download | only in net
History log of /src/lib/libc/net/sethostent.c
RevisionDateAuthorComments
 1.21  07-Dec-2023  kre Fix a couple of (not very likely) memory leaks, reported by enh@google.com
who attributed them:

the malloc one was reported to Android (as
https://android-review.googlesource.com/c/platform/bionic/+/2856549)
by wuhaitao3 <wuhaitao3@xiaomi.corp-partner.google.com>; Chris Ferris
<cferris@google.com> then spotted the goto nospc one.
 1.20  17-Mar-2014  christos branches: 1.20.18; 1.20.28; 1.20.36;
fix memory leak
XXX: pullup 6
 1.19  27-Aug-2013  christos move the host file getbyname and getbyaddr functions to sethostent.c so
that they are in a separate file from the dns ones in order for libhack
to use them.
 1.18  16-Aug-2013  christos Add not advertised reentrant functions: {get,set,end}hostent_r,
gethostbyname{,2}_r, gethostbyaddr_r. Make getnameinfo(3) use
gethostbyaddr_r(3) so it is re-entrant (ahem __ypdomain). These
are not being advertised because there is a bunch of different
implementation of them that have a variety of type signatures.

If people want to follow someone's implementation, it is now easy.
 1.17  20-Mar-2012  matt branches: 1.17.2;
Use C89 Prototypes.
Remove use of __P
 1.16  27-Jan-2007  christos branches: 1.16.18; 1.16.36; 1.16.38;
Appropriate versions are not supplied by bind anymore.
 1.15  27-Jan-2007  christos merge in resolver portion of bind-9.4.0-rc2
 1.14  17-Aug-2004  ginsbach branches: 1.14.10; 1.14.12;
endhostent() and sethostent() should actaully do something now that
gethostent() has been restored to libc. Reviewed by <christos>.
 1.13  21-May-2004  christos Finish bind9 resolver merge.
 1.12  07-Aug-2003  agc branches: 1.12.2;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.11  22-Jan-2000  mycroft Delint.
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.
 1.10  14-Oct-1998  kleink Need internal names for {end,set}hostent().
 1.9  06-Jan-1998  perry $Id: -> Id: (to make hunting down other bad Ids easier).
 1.8  20-Jul-1997  mrg merge bind 4.9.6 resolver. still need to fix <resolv.h>
 1.7  13-Jul-1997  christos Fix RCSID's
Fix gcc warnings
Add missing prototypes
Use "namespace.h"
 1.6  13-Apr-1997  mrg merge in the bind 4.9.5-P1 resolver. we are now _mostly_ the
same as this, with our changes also included (resolv.conf and
other minor differences).
 1.5  02-Feb-1996  mrg branches: 1.5.2;
merge with the resolver in bind 4.9.3-P1.
 1.4  25-Feb-1995  cgd clean up import. also convert everything to new Id format.
 1.3  26-Aug-1993  jtc Declare rcsid strings so they are stored in text segment.
 1.2  01-Aug-1993  mycroft Add RCS identifiers.
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.5  02-Feb-1998  mrg import lite-2 libc/net sources.
 1.1.1.4  20-Jul-1997  mrg bind 4.9.6 resolver files.
 1.1.1.3  13-Apr-1997  mrg BIND 4.9.5-P1 resolver bits we use
 1.1.1.2  25-Feb-1995  cgd 4.4-Lite lib/libc/net
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.5.2.1  20-Sep-1996  jtc snapshot namespace cleanup: net, etc.
 1.12.2.1  11-Sep-2004  he Pull up revisions 1.13-1.14 (requested by ginsbach in ticket #834):
Restore gethostent() as a supported interface. Yes, it
may be obsolete, but it is specified by IEEE Std 1003.1,
2004 Edition (POSIX) and the X/Open standards (Issue 66
and XNS 5.2).
 1.14.12.1  03-Jun-2007  wrstuden Catch up with now-somewhat-dated netbsd-4. These changes took longer
than expected for me to actually get around to merging.
 1.14.10.1  17-May-2007  jdc Add missing BIND 9.4.x include file and library changes (requested by
tron in ticket #662).
 1.16.38.2  22-Apr-2014  msaitoh Pull up following revision(s) (requested by christos in ticket #1036):
lib/libc/net/sethostent.c: revision 1.20
fix memory leak
XXX: pullup 6
 1.16.38.1  18-Dec-2013  bouyer Pullup the following revisions, requested by bad in ticket 975:
lib/libc/net/gethnamaddr.c 1.79-1.81, 1.84
lib/libc/net/getnameinfo.3 1.37-1.40
lib/libc/net/getnameinfo.c 1.51, 1.52, 1.54
lib/libc/net/hostent.h 1.1, 1.2
lib/libc/net/sethostent.c 1.17-1.19

Make getnameinfo(3) re-entrant (ahem __ypdomain).
Add not advertised reentrant functions: {get,set,end}hostent_r,
gethostbyname{,2}_r, gethostbyaddr_r. Make getnameinfo(3) use
gethostbyaddr_r(3).
Implement no-check-names.
 1.16.36.2  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.16.36.1  17-Apr-2012  yamt sync with head
 1.16.18.1  18-Dec-2013  bouyer Apply patch, requested by bad in ticket #1887:
lib/libc/net/gethnamaddr.c 1.79-1.82 via patch
lib/libc/net/getnameinfo.3 1.37-1.40 via patch
lib/libc/net/getnameinfo.c 1.4 via patch
lib/libc/net/hostent.h 1.1, 1.2 via patch
lib/libc/net/sethostent.c 1.17-1.19 via patch

Make getnameinfo(3) re-entrant (ahem __ypdomain).
Add not advertised reentrant functions: {get,set,end}hostent_r,
gethostbyname{,2}_r, gethostbyaddr_r. Make getnameinfo(3) use
gethostbyaddr_r(3).
Implement no-check-names.
 1.17.2.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.20.36.1  10-Dec-2023  martin Pull up following revision(s) (requested by kre in ticket #488):

lib/libc/net/sethostent.c: revision 1.21

Fix a couple of (not very likely) memory leaks, reported by enh@google.com
who attributed them:

the malloc one was reported to Android (as
https://android-review.googlesource.com/c/platform/bionic/+/2856549)
by wuhaitao3 <wuhaitao3@xiaomi.corp-partner.google.com>; Chris Ferris
<cferris@google.com> then spotted the goto nospc one.
 1.20.28.1  10-Dec-2023  martin Pull up following revision(s) (requested by kre in ticket #1776):

lib/libc/net/sethostent.c: revision 1.21

Fix a couple of (not very likely) memory leaks, reported by enh@google.com
who attributed them:

the malloc one was reported to Android (as
https://android-review.googlesource.com/c/platform/bionic/+/2856549)
by wuhaitao3 <wuhaitao3@xiaomi.corp-partner.google.com>; Chris Ferris
<cferris@google.com> then spotted the goto nospc one.
 1.20.18.1  10-Dec-2023  martin Pull up following revision(s) (requested by kre in ticket #1925):

lib/libc/net/sethostent.c: revision 1.21

Fix a couple of (not very likely) memory leaks, reported by enh@google.com
who attributed them:

the malloc one was reported to Android (as
https://android-review.googlesource.com/c/platform/bionic/+/2856549)
by wuhaitao3 <wuhaitao3@xiaomi.corp-partner.google.com>; Chris Ferris
<cferris@google.com> then spotted the goto nospc one.

RSS XML Feed