stat *finfo is the stat structure associated with a file.
uid_t uid is the UNIX user ID.
gid_t gid is the UNIX group ID. Together with uid, this value determines the permissions of the UNIX user.