[vala] posix: add statvfs and fstatvfs function bindings



commit d44589f942f293b4bf2b21fafe6a7158e63cd413
Author: Evan Nemerson <evan coeus-group com>
Date:   Tue May 22 12:51:53 2012 -0700

    posix: add statvfs and fstatvfs function bindings
    
    statvfs is called statvfs_exec since just using statvfs would conflict
    with the existing statvfs type.

 vapi/posix.vapi |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index d6f684f..5bb5af8 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")]



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]