Skip to content
  • Tor Lillqvist's avatar
    Define a public documented type for the struct stat used by g_stat() · 1229281d
    Tor Lillqvist authored
    Define GStatBuf as the type used by g_stat() and g_lstat(). Replaces
    the non-public struct tag _g_stat_struct. Mostly relevant for Windows
    where there are several variants of stat-style structs. On POSIX, is
    just another name for struct stat.
    
    Actually, also on many POSIX systems there are in fact several
    variants of struct stat and corresponding stat() and lstat()
    functions, but as g_stat and g_lstat are normally on POSIX just macros
    that expand to stat and lstat, this should not cause a problem. It's
    only when it's the actual g_stat() or g_lstat() implementation inside
    GLib that gets called that one needs to be sure the passed struct is
    the same as what GLib expects.)
    1229281d