SYNOPSIS
#include <grp.h>
struct group {
char *gr_name;
char *gr_passwd;
gid_t gr_gid;
char **gr_mem;
};
DESCRIPTION
The group structure is returned by the
- gr_name
-
Group name.
- gr_passwd
-
Encrypted password. This field is not supported.
- gr_gid
-
Group ID.
- gr_mem
-
List of group members.
CONFORMANCE
UNIX 98, with exceptions.
PORTING ISSUES
On Windows NT/2000/XP/2003/Vista, the structure is filled with information from the SAM database. Refer to Users and Groups in the Windows Concepts chapter of the MKS Toolkit UNIX to Windows Porting Guide.
Windows NT/2000/XP/2003/Vista security allows only administrators and members of a group to enumerate the members of a group. Therefor, the gr_mem field of the group structure may be empty on a successful return.
AVAILABILITY
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Functions:
getgrgid() ,getgrgid_r() ,getgrnam() ,getgrnam_r() ,getpwnam() ,getpwnam_r() ,getpwuid() ,getpwuid_r()
- Miscellaneous:
- struct passwd
MKS Toolkit 9.2 Documentation Build 16.