From: Michael 'Mickey' Lauer Date: Tue, 10 Mar 2009 10:41:04 +0000 (+0100) Subject: posix.vapi: rename stat struct and add actual stat + fstat calls X-Git-Tag: 0.6.0~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a82b5f9b7202cef489c6a056bdff9d4f83517c7;p=thirdparty%2Fvala.git posix.vapi: rename stat struct and add actual stat + fstat calls Signed-off-by: Michael 'Mickey' Lauer --- diff --git a/vapi/posix.vapi b/vapi/posix.vapi index ed2d1cc78..62f9211a0 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)]