]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
posix: add statvfs and fstatvfs function bindings
authorEvan Nemerson <evan@coeus-group.com>
Tue, 22 May 2012 19:51:53 +0000 (12:51 -0700)
committerJürg Billeter <j@bitron.ch>
Sat, 23 Jun 2012 15:20:29 +0000 (17:20 +0200)
statvfs is called statvfs_exec since just using statvfs would conflict
with the existing statvfs type.

vapi/posix.vapi

index 9329ace20140a0cf0cd8192a01b0fb2f537f6c79..43e0c883f32cdd0eb48a76c2950bd39894d3f1da 100644 (file)
@@ -1673,6 +1673,11 @@ namespace Posix {
                public fsfilcnt_t f_favail;
        }
 
+       [CCode (cheader_filename = "sys/statvfs.h", cname = "statvfs")]
+       public int statvfs_exec (string path, out statvfs buf);
+       [CCode (cheader_filename = "sys/statvfs.h")]
+       public int fstatvfs (int fs, out statvfs buf);
+
        [SimpleType]
        [IntegerType (rank = 9)]
        [CCode (cname="off_t", cheader_filename = "sys/types.h")]