/*
- * Sherlock Library -- Fast Buffered I/O on Memory-Mapped Files
+ * UCW Library -- Fast Buffered I/O on Memory-Mapped Files
*
* (c) 2002 Martin Mares <mj@ucw.cz>
*
#include "lib/lfs.h"
#include "lib/conf.h"
-#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
static uns mmap_window_size = 16*PAGE_SIZE;
static uns mmap_extend_size = 4*PAGE_SIZE;
-static struct cfitem obuck_config[] = {
- { "FBMMap", CT_SECTION, NULL },
- { "WindowSize", CT_INT, &mmap_window_size },
- { "ExtendSize", CT_INT, &mmap_extend_size },
- { NULL, CT_STOP, NULL }
+static struct cf_section fbmm_config = {
+ CF_ITEMS {
+ CF_UNS("WindowSize", &mmap_window_size),
+ CF_UNS("ExtendSize", &mmap_extend_size),
+ CF_END
+ }
};
-static void CONSTRUCTOR obuck_init_config(void)
+static void CONSTRUCTOR fbmm_init_config(void)
{
- cf_register(obuck_config);
+ cf_declare_section("FBMMap", &fbmm_config, 0);
}
struct fb_mmap {