# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.57)
-AC_INIT(unbound, 0.0, wouter@nlnetlabs.nl, unbound)
+AC_INIT(unbound, 0.1, wouter@nlnetlabs.nl, unbound)
CFLAGS=
AC_AIX
--- /dev/null
+TODO items.
+o use real entropy to make random (ID, port) numbers more random.
info "Adding libtool utils (libtoolize)."
libtoolize -c || error_cleanup "libtoolize failed"
-info "Building configure script (autoconf)."
-autoconf || error_cleanup "Autoconf failed."
-
-info "Building config.h.in (autoheader)."
-autoheader || error_cleanup "Autoheader failed."
+info "Building configure script (autoreconf)."
+autoreconf || error_cleanup "Autoconf failed."
rm -r autom4te* || error_cleanup "Failed to remove autoconf cache directory."
#include "util/locks.h"
#include <signal.h>
+/** block all signals, masks them away. */
void
ub_thread_blocksigs()
{
#endif /* HAVE_PTHREAD */
}
+/** unblock one signal, so we can catch it. */
void ub_thread_sig_unblock(int sig)
{
#ifdef HAVE_PTHREAD
vsnprintf(message, sizeof(message), format, args);
fprintf(logfile, "[%d] %s[%d:%x] %s: %s\n",
(int)time(NULL), ident, (int)getpid(),
- (int)ub_thread_self(),
+ (unsigned int)ub_thread_self(),
type, message);
fflush(logfile);
}
if((int)FD_SETSIZE < base->capfd)
base->capfd = (int)FD_SETSIZE;
#endif
- base->fds = (struct event**)calloc(base->capfd, sizeof(struct event*));
+ base->fds = (struct event**)calloc((size_t)base->capfd,
+ sizeof(struct event*));
if(!base->fds) {
event_base_free(base);
return NULL;