Port fix: Windows does not allow read-only mappings > file's size
[babeltrace.git] / include / babeltrace / compat / mman-internal.h
index 5e4ac9231cb7f5ae7c7e5adbfa55edc6bcd7f6ab..fdbfd2cf0844cc22f256d07a296be034b86d9379 100644 (file)
 #define MAP_ANON       MAP_ANONYMOUS
 #define MAP_FAILED     ((void *) -1)
 
+/*
+ * Note that some platforms (e.g. Windows) do not allow read-only
+ * mappings to exceed the file's size (even within a page).
+ */
 void *bt_mmap(void *addr, size_t length, int prot, int flags, int fd,
        off_t offset);
 
This page took 0.024208 seconds and 4 git commands to generate.