mmap-util.c revision 61fb6ead42247d9bf7e2521ab1e0902c76fccff1
/* Copyright (c) 2002-2003 Timo Sirainen */
#include "lib.h"
#include "mmap-util.h"
{
return MAP_FAILED;
/* too large file to map into memory */
return MAP_FAILED;
}
if (*length == 0)
return NULL;
}
{
}
{
}
#ifndef HAVE_MADVISE
int advice __attr_unused__)
{
return 0;
}
#endif
size_t mmap_get_page_size(void)
{
if (size != 0)
return size;
size = getpagesize();
return size;
}