Guardian Native C Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)

Guardian Native C Library Calls (g - i) getgrgid_r(3)
Group Structure
The group structure returned by the getgrgid_r() function is defined in the grp.h header file.
The structure contains the following fields:
gr_name The group name of the group.
gr_passwd The system does not use this field, so its value is meaningless.
gr_gid The group ID of the group.
gr_mem The members of the group.
OSS supports the following POSIX.1-compliant group declaration:
struct group {
char *gr_name;
char *gr_passwd;
gid_t gr_gid;
char **gr_mem;
};
The gr_passwd field is provided for compatibility with some versions of UNIX, but it always
contains a null string.
NOTES
On systems running H06.21 or later H-series RVUs or J06.10 or later J-series RVUs, you can use
either the POSIX User Thread Model Library or the Standard POSIX Threads Library for
threaded applications.
On systems running H06.24 or later H-series RVUs or J06.13 or later J-series RVUs, if you are
NOT using the Standard POSIX Threads Library (this is not a threaded application or you are
using the POSIX User Thread Model Library) you can use this function with 32-bit or 64-bit OSS
applications.
If you are NOT using the Standard POSIX Threads Library (this is not a threaded application or
you are using the POSIX User Thread Model Library), you must:
Include the grp.h header file
Link your application to:
/G/system/zdllnnn/zsecdll (32-bit applications)
or
/G/system/zdllnnn/ysecdll (64-bit applications)
To use the Standard POSIX Threads library, you must:
Include the spthread.h header file instead of the grp.h header file
Link your application to the Standard POSIX Threads Library:
/G/system/sysnn/zsptsrl (G-series)
or
/G/system/zdllnnn/zsptdll (H-series or J-series)
Compile your application using the #dene _SPT_MODEL_ macro or an equivalent
compiler command option
For more information about threaded and 64-bit applications in the OSS environment, see the
Open System Services Programmer’s Guide.
527192-018 Hewlett-Packard Company 333