From 8a82b5f9b7202cef489c6a056bdff9d4f83517c7 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 file changed, 5 insertions(+), 1 deletion(-) 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)] -- 2.47.2