0                  Successful completion.
    -1                 Indicates an error. The function sets errno to
                       one of the following values:
                       o  EINVAL - The value of the gid argument
                          is invalid and not supported by the
                          implementation.
                       o  EPERM - The process does not have
                          appropriate privileges and gid does not
                          match the real group ID or the saved set-
                          group-ID.