[vala] posix.vapi: rename stat struct and add actual stat + fstat calls
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Subject: [vala] posix.vapi: rename stat struct and add actual stat + fstat calls
- Date: Tue, 17 Mar 2009 11:09:12 -0400 (EDT)
commit 8a82b5f9b7202cef489c6a056bdff9d4f83517c7
Author: Michael 'Mickey' Lauer <mickey vanille-media de>
Date: Tue Mar 10 11:41:04 2009 +0100
posix.vapi: rename stat struct and add actual stat + fstat calls
Signed-off-by: Michael 'Mickey' Lauer <mlauer vanille-media de>
---
vapi/posix.vapi | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index ed2d1cc..62f9211 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -649,7 +649,7 @@ namespace Posix {
public bool S_ISSOCK (mode_t mode);
[CCode (cheader_filename = "sys/stat.h", cname = "struct stat")]
- public struct stat {
+ public struct Stat {
public dev_t st_dev;
public ino_t st_ino;
public mode_t st_mode;
@@ -664,6 +664,10 @@ namespace Posix {
public blksize_t st_blksize;
public blkcnt_t st_blocks;
}
+ [CCode (cheader_filename = "sys/stat.h")]
+ int fstat( int fd, out Stat buf);
+ [CCode (cheader_filename = "sys/stat.h")]
+ int stat (string filename, out Stat buf);
[SimpleType]
[IntegerType (rank = 9)]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]