The method_getgrgid Interface

struct group *method_getgrgid (void *handlep, gid_t gid);

The handlep parameter is a handle to the load module opened with the method_open interface. The gid parameter is the group identifier for the requested group.

method_getgrgid retrieves group account information given the group identifier. The group account information consists of the group name, identifier, and complete member list.

method_getgrgid is called as a result of calling the getgrgid subroutine.

method_getgrgid returns a pointer to the group's group file structure on success. On failure a NULL pointer is returned.