]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
posix: Declare fstat, stat, lstat and fstatat as public
authorRico Tzschichholz <ricotz@ubuntu.com>
Thu, 15 Oct 2020 07:12:28 +0000 (09:12 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 3 Jan 2021 11:45:52 +0000 (12:45 +0100)
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1086

vapi/posix.vapi

index d881112911cf2cfa8614657c8f12289c4960273b..4845328d6fa50c4c33a00b015828be86397400fb 100644 (file)
@@ -2005,13 +2005,13 @@ namespace Posix {
                public blkcnt_t st_blocks;
        }
        [CCode (cheader_filename = "sys/stat.h")]
-       int fstat( int fd, out Stat buf);
+       public int fstat (int fd, out Stat buf);
        [CCode (cheader_filename = "sys/stat.h")]
-       int stat (string filename, out Stat buf);
+       public int stat (string filename, out Stat buf);
        [CCode (cheader_filename = "sys/stat.h")]
-       int lstat (string filename, out Stat buf);
+       public int lstat (string filename, out Stat buf);
        [CCode (cheader_filename = "sys/stat.h", feature_test_macro = "_GNU_SOURCE")]
-       int fstatat (int dirfd, string pathname, out Stat buf, int flags);
+       public int fstatat (int dirfd, string pathname, out Stat buf, int flags);
 
        [CCode (cheader_filename = "sys/stat.h")]
        public int chmod (string filename, mode_t mode);