// The native stat function is an inlined and statically-linked wrapper calling __xstat with the correct version public static int stat(string file, ref STAT64 buf) => __xstat(k_StatVersion, file, ref buf);
static extern int __xstat(int statVersion, string file, ref STAT64 buf);
public static extern int stat(string file, ref STAT64 buf);