]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
linux: add non-posix fcntl constants
authorDr. Michael Lauer <mickey@vanille-media.de>
Sat, 18 Feb 2017 16:29:39 +0000 (17:29 +0100)
committerDr. Michael Lauer <mickey@vanille-media.de>
Sat, 18 Feb 2017 16:29:39 +0000 (17:29 +0100)
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

index a2a504d71af6b339cb36da9066a069ca88a3c55e..3c4c7381f78dde3cba9c202e12fdf39c0c94e3c7 100644 (file)
@@ -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
      */