#define _BABELTRACE_COMPAT_MMAN_H
/*
- * babeltrace/compat/mman.h
- *
* Copyright (C) 2015-2016 Michael Jeanson <mjeanson@efficios.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
#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);