]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
posix.vapi: rename stat struct and add actual stat + fstat calls
authorMichael 'Mickey' Lauer <mickey@vanille-media.de>
Tue, 10 Mar 2009 10:41:04 +0000 (11:41 +0100)
committerJürg Billeter <j@bitron.ch>
Tue, 17 Mar 2009 14:44:54 +0000 (15:44 +0100)
Signed-off-by: Michael 'Mickey' Lauer <mlauer@vanille-media.de>
vapi/posix.vapi

index ed2d1cc78614a48ca73a8b8fad759d77c7da089b..62f9211a0f36815282b069478b861a6b1e611720 100644 (file)
@@ -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)]