summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Nemerson <evan@coeus-group.com>2012-05-22 12:51:53 -0700
committerJürg Billeter <j@bitron.ch>2012-06-23 17:20:29 +0200
commit04cf8b91ee0160519515b0d88d51c5669c2bef38 (patch)
tree4587465b199f591109b03fb09f707222c4862953
parent6abaa2dae964446cbf53341a9c787efeb7af7003 (diff)
downloadvala-04cf8b91ee0160519515b0d88d51c5669c2bef38.tar.gz
posix: add statvfs and fstatvfs function bindings
statvfs is called statvfs_exec since just using statvfs would conflict with the existing statvfs type.
-rw-r--r--vapi/posix.vapi5
1 files changed, 5 insertions, 0 deletions
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index 9329ace20..43e0c883f 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -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")]