>From 24d61cba45998815c8c2aa6fdcb8abb7fc2d85b6 Mon Sep 17 00:00:00 2001 From: Michael 'Mickey' Lauer Date: Tue, 10 Mar 2009 11:41:04 +0100 Subject: [PATCH] posix.vapi: rename stat struct and add actual stat + fstat calls Signed-off-by: Michael 'Mickey' Lauer --- vapi/posix.vapi | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/vapi/posix.vapi b/vapi/posix.vapi index 38ab008..77d7d7d 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)] -- 1.5.6.3