[Vala] [PATCH] vapi/linux.vapi: Add mremap(2) call.
- From: Julian Andres Klode <jak jak-linux org>
- To: vala-list gnome org
- Subject: [Vala] [PATCH] vapi/linux.vapi: Add mremap(2) call.
- Date: Wed, 16 Sep 2009 19:13:32 +0200
This is a Linux-specific enhancement to the mmap() function
set implemented in posix.vapi.
Signed-off-by: Julian Andres Klode <jak jak-linux org>
---
vapi/linux.vapi | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/vapi/linux.vapi b/vapi/linux.vapi
index c293c13..3ea4544 100644
--- a/vapi/linux.vapi
+++ b/vapi/linux.vapi
@@ -109,6 +109,17 @@ namespace Linux {
[CCode (cheader_filename = "time.h")]
public time_t timegm (GLib.Time t);
+ // mremap(2)
+ [CCode (cprefix = "MREMAP_", cheader_filename = "sys/mman.h")]
+ public enum MremapFlags {
+ MAYMOVE,
+ FIXED
+ }
+
+ [CCode (cheader_filename = "sys/mman.h")]
+ public void *mremap(void *old_address, size_t old_size, size_t new_size,
+ MRemapFlags flags);
+
/*
* Network
*/
--
1.6.3.3
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]