func getGroupInfo(gid: GID) throws -> Group {
    // getgrgid(2) documentation says "If one wants to check errno after
    // the call, it should be set to zero before the call."
    errno = 0
    return try getgrgid(gid)?.pointee ?! GroupInfoError.getError()