#include #include #include "bindings.apr.ring.h" module Bindings.APR.MMap where #strict_import import Bindings.APR import Bindings.APR.ErrNo import Bindings.APR.Pools import Bindings.APR.File.Types #num APR_MMAP_READ #num APR_MMAP_WRITE #starttype struct apr_mmap_t # field cntxt , Ptr # field mm , Ptr () # field size , # apr_ring_entry_field link, #stoptype #if APR_HAS_MMAP #num APR_MMAP_THRESHOLD #num APR_MMAP_LIMIT #cinline APR_MMAP_CANDIDATE, -> IO CInt #ccall apr_mmap_create, Ptr (Ptr ) -> Ptr -> -> -> -> Ptr -> IO #ccall apr_mmap_dup , Ptr (Ptr ) -> Ptr -> Ptr -> IO #ccall apr_mmap_delete, Ptr -> IO #ccall apr_mmap_offset, Ptr (Ptr ()) -> Ptr -> -> IO #endif