#include #include #include #include #include int Mono_Posix_ToStat(struct stat *from, void *to); int main () { char mem[1024]; struct stat s; if (stat ("/home/joe", &s) == 0) { int n = Mono_Posix_ToStat (&s, mem); printf ("ToStat=%i=%s\n", n, strerror(errno)); } }