[vala] linux: Add mremap(2) call



commit 8b7b9eb85d9fd8aa74b45440821b34d90dca60c0
Author: Julian Andres Klode <jak jak-linux org>
Date:   Wed Sep 16 19:13:32 2009 +0200

    linux: Add mremap(2) call
    
    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..525d80b 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
      */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]