+3276. [bug] win32: isc_socket_dup is not implemented. [RT #27696]
+
+3276. [bug] win32: ns_os_openfile failed to return NULL on
+ safe_open failure. [RT #27696]
+
3271. [port] darwin: mksymtbl is not always stable, loop several
times before giving up. mksymtbl was using non
portable perl to covert 64 bit hex strings. [RT #27653]
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: main.c,v 1.185 2011/11/09 18:44:03 each Exp $ */
+/* $Id: main.c,v 1.185.64.1 2012/02/06 04:23:44 marka Exp $ */
/*! \file */
#else
ns_g_cpus = 1;
#endif
+#ifdef WIN32
+ ns_g_udpdisp = 1;
+#else
if (ns_g_udpdisp == 0 || ns_g_udpdisp > ns_g_cpus)
ns_g_udpdisp = ns_g_cpus;
+#endif
isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_SERVER,
ISC_LOG_INFO, "using %u UDP listener%s per interface",
ns_g_udpdisp, ns_g_udpdisp == 1 ? "" : "s");
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: os.c,v 1.37 2009/08/05 18:43:37 each Exp $ */
+/* $Id: os.c,v 1.37.746.1 2012/02/06 04:23:43 marka Exp $ */
#include <config.h>
#include <stdarg.h>
isc__strerror(errno, strbuf, sizeof(strbuf));
ns_main_earlywarning("could not open file '%s': %s",
filename, strbuf);
+ return (NULL);
}
fp = fdopen(fd, "w");
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: socket.c,v 1.93 2011/11/29 01:03:47 marka Exp $ */
+/* $Id: socket.c,v 1.93.52.1 2012/02/06 04:23:43 marka Exp $ */
/* This code uses functions which are only available on Server 2003 and
* higher, and Windows XP and higher.
REQUIRE(socketp != NULL && *socketp == NULL);
REQUIRE(type != isc_sockettype_fdwatch);
+ if (dup_socket != NULL)
+ return (ISC_R_NOTIMPLEMENTED);
+
result = allocate_socket(manager, type, &sock);
if (result != ISC_R_SUCCESS)
return (result);
sock->pf = pf;
+#if 0
if (dup_socket == NULL) {
+#endif
switch (type) {
case isc_sockettype_udp:
sock->fd = socket(pf, SOCK_DGRAM, IPPROTO_UDP);
sock->fd = socket(pf, SOCK_STREAM, IPPROTO_TCP);
break;
}
+#if 0
} else {
/*
* XXX: dup() is deprecated in windows, use _dup()
sock->dupped = 1;
sock->bound = dup_socket->bound;
}
+#endif
if (sock->fd == INVALID_SOCKET) {
socket_errno = WSAGetLastError();
REQUIRE(VALID_SOCKET(sock));
REQUIRE(socketp != NULL && *socketp == NULL);
+#if 1
+ return (ISC_R_NOTIMPLEMENTED);
+#else
return (socket_create(sock->manager, sock->pf, sock->type,
socketp, sock));
+#endif
}
isc_result_t