projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
compat: remove unused `addr` parameter from bt_mmap
[babeltrace.git]
/
src
/
compat
/
mman.h
diff --git
a/src/compat/mman.h
b/src/compat/mman.h
index a9568c6bc99729ddf831a20660ba24777beea2b4..33febccbb1c1e760c601a821ed6d3522e9e2bebe 100644
(file)
--- a/
src/compat/mman.h
+++ b/
src/compat/mman.h
@@
-10,6
+10,7
@@
#ifdef __MINGW32__
#include <sys/types.h>
#ifdef __MINGW32__
#include <sys/types.h>
+#include "common/macros.h"
#define PROT_NONE 0x0
#define PROT_READ 0x1
#define PROT_NONE 0x0
#define PROT_READ 0x1
@@
-29,7
+30,7
@@
* Note that some platforms (e.g. Windows) do not allow read-only
* mappings to exceed the file's size (even within a page).
*/
* Note that some platforms (e.g. Windows) do not allow read-only
* mappings to exceed the file's size (even within a page).
*/
-BT_EXTERN_C void *bt_mmap(
void *addr,
size_t length, int prot, int flags, int fd,
+BT_EXTERN_C void *bt_mmap(size_t length, int prot, int flags, int fd,
off_t offset, int log_level);
BT_EXTERN_C int bt_munmap(void *addr, size_t length);
off_t offset, int log_level);
BT_EXTERN_C int bt_munmap(void *addr, size_t length);
@@
-46,10
+47,10
@@
BT_EXTERN_C size_t bt_mmap_get_offset_align_size(int log_level);
#include "common/common.h"
static inline
#include "common/common.h"
static inline
-void *bt_mmap(
void *addr,
size_t length, int prot, int flags, int fd,
- off_t offset, int log_level)
+void *bt_mmap(size_t length, int prot, int flags, int fd,
+ off_t offset, int log_level
__attribute__((unused))
)
{
{
- return (void *) mmap(
addr
, length, prot, flags, fd, offset);
+ return (void *) mmap(
NULL
, length, prot, flags, fd, offset);
}
static inline
}
static inline
This page took
0.023876 seconds
and
4
git commands to generate.