diff options
author | Evan Nemerson <evan@coeus-group.com> | 2012-05-22 12:51:53 -0700 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2012-06-23 17:20:29 +0200 |
commit | 04cf8b91ee0160519515b0d88d51c5669c2bef38 (patch) | |
tree | 4587465b199f591109b03fb09f707222c4862953 | |
parent | 6abaa2dae964446cbf53341a9c787efeb7af7003 (diff) | |
download | vala-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.vapi | 5 |
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")] |