From 557fc017e622c4bd2a8e2e6bd3051f17c91ed867 Mon Sep 17 00:00:00 2001 From: Pavel Charvat Date: Tue, 2 Jan 2007 15:12:35 +0100 Subject: [PATCH] Partial merge with dev-async-shep: - added routines for allocation of large alligned buffers - improved random-access utility --- lib/Makefile | 2 +- lib/lib.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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 -- 2.39.2