]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
posix: Add sync, fsync, and fdatasync bindings
authorEvan Nemerson <evan@polussystems.com>
Sun, 2 Aug 2009 21:40:16 +0000 (14:40 -0700)
committerJürg Billeter <j@bitron.ch>
Sun, 16 Aug 2009 20:25:20 +0000 (22:25 +0200)
Fixes bug 590550.

vapi/posix.vapi

index e210311d01e7232341809952055f383802f417f5..3a8dd317fe0859d63c9598402d6d06d01c660c5b 100644 (file)
@@ -1569,6 +1569,12 @@ namespace Posix {
        [CCode (cheader_filename = "unistd.h")]
        public pid_t tcgetsid (int fd);
 
+       [CCode (cheader_filename = "unistd.h")]
+       public int fsync (int fd);
+       [CCode (cheader_filename = "unistd.h")]
+       public int fdatasync (int fd);
+       [CCode (cheader_filename = "unistd.h")]
+       public int sync ();
 
        [SimpleType]
        [CCode (cname = "cc_t", cheader_filename = "termios.h")]