The method_putgrent Interface
int method_putgrent (void *handlep, struct group *entry);
The handlep parameter is a handle to the load module opened with the method_open interface. The entry parameter points to the structure to be output. The account name is contained in the structure.
method_putgrent stores group account information given a group entry. The group account information consists of the group name, identifier and complete member list. Values will be saved until method_commit is invoked.
method_putgrent returns 0 when the group has been successfully updated. On failure a value of -1 is returned and the global variable errno is set to indicate the cause. A value of ENOSYS is used when updating groups is not supported by the module. A value of EPERM is used when the invoker does not have permission to update the group. A value of ENOENT is used when the group does not exist. A value of EROFS is used when the module was not opened for updates.