| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 11/11] xfsprogs: add dummy mremap for OS X |
| From: | Jan Tulak <jtulak@xxxxxxxxxx> |
| Date: | Wed, 26 Aug 2015 14:02:35 +0200 |
| Cc: | david@xxxxxxxxxxxxx, hch@xxxxxxxxxxxxx, Jan Tulak <jtulak@xxxxxxxxxx> |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <1440590555-20463-1-git-send-email-jtulak@xxxxxxxxxx> |
| References: | <1440590449-20372-1-git-send-email-jtulak@xxxxxxxxxx> <1440590555-20463-1-git-send-email-jtulak@xxxxxxxxxx> |
Signed-off-by: Jan Tulak <jtulak@xxxxxxxxxx>
---
include/darwin.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/include/darwin.h b/include/darwin.h
index d47c96c..2e16f65 100644
--- a/include/darwin.h
+++ b/include/darwin.h
@@ -33,6 +33,7 @@
#include <mach/mach_time.h>
#include <inttypes.h>
#include <stdio.h>
+#include <sys/mman.h>
#include <machine/endian.h>
#define __BYTE_ORDER BYTE_ORDER
@@ -217,6 +218,14 @@ static inline int timer_gettime (timer_t timerid, struct
itimerspec *value)
return getitimer(ITIMER_REAL, value);
}
+#define MREMAP_FIXED 1
+#define MREMAP_MAYMOVE 2
+static inline void *mremap(void *old_address, size_t old_size,
+ size_t new_size, int flags, ...)
+{
+ return MAP_FAILED;
+}
+
/* FSR */
//#define statvfs64 statfs
--
2.4.5
|
| Previous by Date: | [PATCH 08/11] xfsprogs: Add a timer implementation for OS X, Jan Tulak |
|---|---|
| Next by Date: | [PATCH] xfsdump: prevent segfault in cb_add_inogrp, rjohnston |
| Previous by Thread: | Re: [PATCH 08/11] xfsprogs: Add a timer implementation for OS X, Christoph Hellwig |
| Next by Thread: | Re: [PATCH 11/11] xfsprogs: add dummy mremap for OS X, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |