Method System.setresgid() Method setresgid int setresgid(int rgid, int egid, int sgid) Description Sets the real, effective and saved group ID to rgid, egid and sgid respectively. Returns Returns zero on success and errno on failure.