From: Pavel Charvat Date: Tue, 2 Jan 2007 14:12:35 +0000 (+0100) Subject: Partial merge with dev-async-shep: X-Git-Tag: holmes-import~506^2~116 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=557fc017e622c4bd2a8e2e6bd3051f17c91ed867;p=libucw.git Partial merge with dev-async-shep: - added routines for allocation of large alligned buffers - improved random-access utility --- diff --git a/lib/Makefile b/lib/Makefile index 14018b1c..f815f3b6 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -8,7 +8,7 @@ endif LIBUCW_MODS= \ threads \ - alloc alloc_str realloc mempool mempool-str mempool-fmt \ + alloc alloc_str realloc bigalloc mempool mempool-str mempool-fmt \ mmap pagecache partmap hashfunc \ lists slists simple-lists sorter bitsig \ log log-file proctitle \ diff --git a/lib/lib.h b/lib/lib.h index 4a6b9d81..27a7511b 100644 --- a/lib/lib.h +++ b/lib/lib.h @@ -269,4 +269,9 @@ sh_sighandler_t set_signal_handler(int signum, sh_sighandler_t new); byte *str_unesc(byte *dest, byte *src); +/* bigalloc.c */ + +void *big_alloc(unsigned int len); +void big_free(void *start, unsigned int len); + #endif