From owner-freebsd-threads@FreeBSD.ORG Wed Jun 18 01:37:33 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9C46737B401 for ; Wed, 18 Jun 2003 01:37:33 -0700 (PDT) Received: from obsecurity.dyndns.org (adsl-64-169-104-32.dsl.lsan03.pacbell.net [64.169.104.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0317443FA3 for ; Wed, 18 Jun 2003 01:37:33 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id C1FAB66D6A for ; Wed, 18 Jun 2003 01:37:32 -0700 (PDT) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id AAF064DA; Wed, 18 Jun 2003 01:37:32 -0700 (PDT) Date: Wed, 18 Jun 2003 01:37:32 -0700 From: Kris Kennaway To: threads@FreeBSD.org Message-ID: <20030618083732.GA8907@rot13.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="azLHFNyN32YCQGCU" Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: Removal of bogus gethostbyaddr_r() X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jun 2003 08:37:33 -0000 --azLHFNyN32YCQGCU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Any objections? Kris Index: net/gethostnamadr.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /usr/home/ncvs/src/lib/libc/net/gethostnamadr.c,v retrieving revision 1.21 diff -u -u -r1.21 gethostnamadr.c --- net/gethostnamadr.c 24 Apr 2003 18:05:48 -0000 1.21 +++ net/gethostnamadr.c 18 Jun 2003 08:19:43 -0000 @@ -116,25 +116,6 @@ return hp; } =20 -struct hostent_data; - -/* - * Temporary function (not thread safe) - */ -int gethostbyaddr_r(const char *addr, int len, int type, - struct hostent *result, struct hostent_data *buffer) -{ - struct hostent *hp; - int ret; - if ((hp =3D gethostbyaddr(addr, len, type)) =3D=3D NULL) { - ret =3D -1; - } else { - memcpy(result, hp, sizeof(struct hostent)); - ret =3D 0; - } - return(ret); -} - void sethostent(stayopen) int stayopen; --azLHFNyN32YCQGCU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE+8CTMWry0BWjoQKURArwiAJ9zzjyYyRO2E9nS2yJ8XCbGMC9jegCfYEwu miOgtcWxhukoJUdMhtCv7vo= =DVMe -----END PGP SIGNATURE----- --azLHFNyN32YCQGCU--