Migrating from POSIX to GIO

Comparison of POSIX and GIO concepts

The final two entries in this table require including gio-unix-2.0.pc as well as gio-2.0.pc in your build (or, in GIR namespace terms, GioUnix-2.0 as well as Gio-2.0).

POSIX GIO
char *path GFile
struct stat *buf GFileInfo
struct statvfs *buf GFileInfo
int fd GInputStream or GOutputStream
DIR * GFileEnumerator
fstab entry GUnixMountPoint
mtab entry GUnixMountEntry