From: Evan Nemerson Date: Tue, 22 May 2012 19:51:53 +0000 (-0700) Subject: posix: add statvfs and fstatvfs function bindings X-Git-Tag: 0.17.1~22 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d44589f942f293b4bf2b21fafe6a7158e63cd413;p=thirdparty%2Fvala.git posix: add statvfs and fstatvfs function bindings statvfs is called statvfs_exec since just using statvfs would conflict with the existing statvfs type. --- diff --git a/vapi/posix.vapi b/vapi/posix.vapi index d6f684f0d..5bb5af886 100644 --- a/vapi/posix.vapi +++ b/vapi/posix.vapi @@ -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")]