chiark / gitweb /
REORG Delete everything that's not innduct or build system or changed for innduct
[inn-innduct.git] / lib / mmap.c
diff --git a/lib/mmap.c b/lib/mmap.c
deleted file mode 100644 (file)
index 3eaacc6..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-/*  $Id: mmap.c 7598 2007-02-09 02:40:51Z eagle $
-**
-**  MMap manipulation routines
-**
-**  Written by Alex Kiernan (alex.kiernan@thus.net)
-**
-**  These routines work with mmap()ed memory
-*/
-
-#include "config.h"
-#include "clibrary.h"
-#include "portable/mmap.h"
-
-#include "inn/messages.h"
-#include "inn/mmap.h"
-
-/*
-**  Figure out what page an address is in and flush those pages
-*/
-void
-inn__mapcntl(void *p, size_t length, int flags)
-{
-    int pagesize;
-
-    pagesize = getpagesize();
-    if (pagesize == -1)
-        syswarn("getpagesize failed");
-    else {
-       char *start, *end;
-
-       start = (char *)((size_t)p & ~(size_t)(pagesize - 1));
-       end = (char *)((size_t)((char *)p + length + pagesize) &
-                      ~(size_t)(pagesize - 1));
-       msync(start, end - start, flags);
-    }
-}