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 8.1/2012R2/10/2016/2019/11/2022, the structure is filled with information from the SAM database. Refer to Users and Groups in the Windows Concepts chapter of the PTC MKS Toolkit UNIX to Windows Porting Guide.
8.1/2012R2/10/2016/2019/11/2022 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
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC 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
PTC MKS Toolkit 10.4 Documentation Build 39.