]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
posix.vapi: open has two forms, one with a mode_t, one without
authorMichael 'Mickey' Lauer <mickey@vanille-media.de>
Sun, 1 Mar 2009 15:44:35 +0000 (16:44 +0100)
committerJürg Billeter <j@bitron.ch>
Mon, 2 Mar 2009 10:28:04 +0000 (11:28 +0100)
Signed-off-by: Michael 'Mickey' Lauer <mlauer@vanille-media.de>
vapi/posix.vapi

index b3c2b9aa021a8b335663f65603e33cdc2f69f009..6c2142315d97ffd127fa723b149fcead1187a598 100644 (file)
@@ -288,7 +288,7 @@ namespace Posix {
        [CCode (cheader_filename = "fcntl.h")]
        public int fcntl (int fd, int cmd, ...);
        [CCode (cheader_filename = "fcntl.h")]
-       public int open (string path, int oflag);
+       public int open (string path, int oflag, mode_t mode=0);
        [CCode (cheader_filename = "fcntl.h")]
        public int posix_fadvice (int fd, long offset, long len, int advice);
        [CCode (cheader_filename = "fcntl.h")]