Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jun 2003 01:37:32 -0700
From:      Kris Kennaway <kris@obsecurity.org>
To:        threads@FreeBSD.org
Subject:   Removal of bogus gethostbyaddr_r()
Message-ID:  <20030618083732.GA8907@rot13.obsecurity.org>

next in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030618083732.GA8907>