]> 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)
committerEvan Nemerson <evan@coeus-group.com>
Tue, 22 May 2012 19:53:23 +0000 (12:53 -0700)
statvfs is called statvfs_exec since just using statvfs would conflict
with the existing statvfs type.

vapi/posix.vapi

index d6f684f0d9302f3713eee467bf3227d2618cb86c..5bb5af8868cdaae8dff834684ab8ad7ac678c56b 100644 (file)
@@ -1803,6 +1803,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")]