From: Rico Tzschichholz Date: Thu, 15 Oct 2020 07:12:28 +0000 (+0200) Subject: posix: Declare fstat, stat, lstat and fstatat as public X-Git-Tag: 0.51.1~214 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=4f2671643bde70a6cab0fbcb2c3c17bc55f2f1cd;p=thirdparty%2Fvala.git posix: Declare fstat, stat, lstat and fstatat as public Fixes https://gitlab.gnome.org/GNOME/vala/issues/1086 --- diff --git a/vapi/posix.vapi b/vapi/posix.vapi index 8e668ed99..cdf6c50c5 100644 --- a/vapi/posix.vapi +++ b/vapi/posix.vapi @@ -2280,13 +2280,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);