From: Mark Andrews Date: Thu, 5 Jan 2006 03:42:53 +0000 (+0000) Subject: 1963. [port] Tru64 4.0E doesn't support send() and recv(). X-Git-Tag: v9.2.7b1~91^2~33 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=94b58e01ae98764a045e18581d7aaf05d2889e60;p=thirdparty%2Fbind9.git 1963. [port] Tru64 4.0E doesn't support send() and recv(). [RT #15586] --- diff --git a/CHANGES b/CHANGES index f99d495694b..c405df69ae9 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +1963. [port] Tru64 4.0E doesn't support send() and recv(). + [RT #15586] + 1962. [bug] Named failed to clear old update-policy when it was removed. [RT #15491] diff --git a/lib/isc/unix/entropy.c b/lib/isc/unix/entropy.c index c63d5fd0ff0..05d5d8816da 100644 --- a/lib/isc/unix/entropy.c +++ b/lib/isc/unix/entropy.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: entropy.c,v 1.74 2005/07/08 04:30:22 marka Exp $ */ +/* $Id: entropy.c,v 1.75 2006/01/05 03:42:53 marka Exp $ */ /* \file unix/entropy.c * \brief @@ -128,7 +128,7 @@ get_from_usocketsource(isc_entropysource_t *source, isc_uint32_t desired) { switch ( source->sources.usocket.status ) { case isc_usocketsource_ndesired: buf[0] = ndesired; - if ((n = send(fd, buf, 1, 0)) < 0) { + if ((n = sendto(fd, buf, 1, 0, NULL, 0)) < 0) { if (errno == EWOULDBLOCK || errno == EINTR || errno == ECONNRESET) goto out; @@ -143,7 +143,7 @@ get_from_usocketsource(isc_entropysource_t *source, isc_uint32_t desired) { case isc_usocketsource_connected: buf[0] = 1; buf[1] = ndesired; - if ((n = send(fd, buf, 2, 0)) < 0) { + if ((n = sendto(fd, buf, 2, 0, NULL, 0)) < 0) { if (errno == EWOULDBLOCK || errno == EINTR || errno == ECONNRESET) goto out; @@ -160,12 +160,12 @@ get_from_usocketsource(isc_entropysource_t *source, isc_uint32_t desired) { /*FALLTHROUGH*/ case isc_usocketsource_wrote: - if (recv(fd, buf, 1, 0) != 1) { + if (recvfrom(fd, buf, 1, 0, NULL, NULL) != 1) { if (errno == EAGAIN) { /* * The problem of EAGAIN (try again * later) is a major issue on HP-UX. - * Solaris actually tries the recv + * Solaris actually tries the recvfrom * call again, while HP-UX just dies. * This code is an attempt to let the * entropy pool fill back up (at least