[vala] linux: add non-posix fcntl constants



commit e9faa44b6a457d1d2eab82cce9962e58ee5bdba7
Author: Dr. Michael Lauer <mickey vanille-media de>
Date:   Sat Feb 18 17:29:39 2017 +0100

    linux: add non-posix fcntl constants
    
    Fixes bugs 729804 and 729805
    
    https://bugzilla.gnome.org/show_bug.cgi?id=729804
    https://bugzilla.gnome.org/show_bug.cgi?id=729805

 vapi/linux.vapi |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/vapi/linux.vapi b/vapi/linux.vapi
index a2a504d..3c4c738 100644
--- a/vapi/linux.vapi
+++ b/vapi/linux.vapi
@@ -832,6 +832,16 @@ namespace Linux {
         }
     }
 
+    // Non-Posix file control constants, -D _GNU_SOURCE
+    [CCode (cheader_filename = "fcntl.h")]
+    public const int O_DIRECT;
+    [CCode (cheader_filename = "fcntl.h")]
+    public const int O_NOATIME;
+    [CCode (cheader_filename = "fcntl.h")]
+    public const int O_PATH;
+    [CCode (cheader_filename = "fcntl.h")]
+    public const int O_TMPFILE;
+
     /*
      * Gsm
      */


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