- Clean up free/
- gary: Add automatic zeroing
+- Remove sighandler.[ch]
bit-ffs bit-fls \
url \
mainloop main-block main-rec \
- proctitle exitstatus runcmd sighandler \
- lizard lizard-safe adler32 \
+ proctitle exitstatus runcmd \
+ lizard lizard-safe adler32 sighandler \
md5 sha1 sha1-hmac \
base64 base224 \
io-careful io-sync io-mmap io-size \
url.h \
mainloop.h \
process.h \
- lizard.h \
+ lizard.h sighandler.h \
md5.h sha1.h \
base64.h base224.h \
qache.h \
u64 random_u64(void); /** Return a pseudorandom 64-bit number. **/
u64 random_max_u64(u64 max); /** Return a pseudorandom 64-bit number in range [0,@max). **/
-/* sighandler.c */
-
-typedef int (*ucw_sighandler_t)(int); // gets signum, returns nonzero if abort() should be called
-
-void handle_signal(int signum);
-void unhandle_signal(int signum);
-ucw_sighandler_t set_signal_handler(int signum, ucw_sighandler_t newh);
-
/* bigalloc.c */
void *page_alloc(u64 len) LIKE_MALLOC; // allocates a multiple of CPU_PAGE_SIZE bytes with mmap
#include "ucw/lib.h"
#include "ucw/threads.h"
+#include "ucw/sighandler.h"
#include "ucw/lizard.h"
#include <sys/mman.h>
#include "ucw/lib.h"
#include "ucw/threads.h"
+#include "ucw/sighandler.h"
#include <stdlib.h>
#include <string.h>
#ifndef _UCW_THREADS_H
#define _UCW_THREADS_H
+#include "ucw/sighandler.h"
+
/* This structure holds per-thread data */
struct ucwlib_context {