Author: zoltan
Date: 2005-05-03 11:05:33 -0400 (Tue, 03 May 2005)
New Revision: 43933
Modified:
trunk/mono/ikvm-native/ChangeLog
trunk/mono/ikvm-native/os.c
Log:
2005-05-03 Zoltan Varga <[EMAIL PROTECTED]>
* os.c: Update from the official version.
Modified: trunk/mono/ikvm-native/ChangeLog
===================================================================
--- trunk/mono/ikvm-native/ChangeLog 2005-05-03 15:02:55 UTC (rev 43932)
+++ trunk/mono/ikvm-native/ChangeLog 2005-05-03 15:05:33 UTC (rev 43933)
@@ -1,3 +1,7 @@
+2005-05-03 Zoltan Varga <[EMAIL PROTECTED]>
+
+ * os.c: Update from the official version.
+
2005-04-11 Zoltan Varga <[EMAIL PROTECTED]>
* jni.c: Applied some freebsd patches from Bill Middleton <[EMAIL
PROTECTED]>.
Modified: trunk/mono/ikvm-native/os.c
===================================================================
--- trunk/mono/ikvm-native/os.c 2005-05-03 15:02:55 UTC (rev 43932)
+++ trunk/mono/ikvm-native/os.c 2005-05-03 15:05:33 UTC (rev 43933)
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2004 Jeroen Frijters
+ Copyright (C) 2004, 2005 Jeroen Frijters
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
@@ -57,6 +57,7 @@
}
#else
#include <gmodule.h>
+ #include <sys/mman.h>
#include "jni.h"
JNIEXPORT void* JNICALL ikvm_LoadLibrary(char* psz)
@@ -80,4 +81,19 @@
else
return NULL;
}
+
+ JNIEXPORT void* JNICALL ikvm_mmap(int fd, jboolean writeable, jboolean
copy_on_write, jlong position, jint size)
+ {
+ return mmap(0, size, writeable ? PROT_WRITE | PROT_READ :
PROT_READ, copy_on_write ? MAP_PRIVATE : MAP_SHARED, fd, position);
+ }
+
+ JNIEXPORT int JNICALL ikvm_munmap(void* address, jint size)
+ {
+ return munmap(address, size);
+ }
+
+ JNIEXPORT int JNICALL ikvm_msync(void* address, jint size)
+ {
+ return msync(address, size, MS_SYNC);
+ }
#endif
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches