Guardian Native C Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
getgrent_r(3) Guardian Native C Library Calls Reference Manual
NAME
getgrent_r - Gets group information from the group database (reentrant)
LIBRARY
G-series native OSS processes: /G/system/sysnn/zsptsrl
H-series and J-series native Guardian processes that do not use Standard POSIX Threads:
$SYSTEM.ZDLLnnn.ZSECDLL
32-bit H-series and J-series OSS processes that do not use Standard POSIX Threads:
/G/system/zdllnnn/zsecdll
64-bit H-series and J-series OSS processes that do not use Standard POSIX Threads:
/G/system/zdllnnn/ysecdll
H-series and J-series OSS processes that use the Standard POSIX Threads Library:
/G/system/zdllnnn/zsptdll
(See NOTES)
SYNOPSIS
Synopsis for getpwent_r() in H06.21 and later H-series RVUs and J06.10 and later J-series
RVUs (not using the Standard POSIX Threads Library):
#include <grp.h>
int *getgrent_r (
struct group *grpinfo,
char *buffer,
size_t buflen
struct group **result);
Synopsis for getpwent_r() in the Standard POSIX Threads Library:
#include <grp.h>
#include <spthread.h>
struct group *getgrent_r (
struct group *grp,
char *buffer,
size_t buflen);
PARAMETERS
grpinfo (getgrent_r() in H06.21 and later H-series and J06.10 and later J-series RVUs
only) Contains the updated group information.
grp (Standard POSIX Threads Library version of getgrent_r() only) Points to a
struct group structure allocated by the caller.
buffer Points to the buffer supplied by the caller and used as a storage space for grp
data.
buflen Specifies the size of the buffer passed in bytes.
result (getgrent_r() in H06.21 and later H-series and J06.10 and later J-series RVUs
only) Points to the address a grp structure assigned by the function.
DESCRIPTION
The getgrent_r() function is the reentrent version of the getgrent() function.
The getgrent_r() function returns information about the next group in the database.
3−26 Hewlett-Packard Company 527192-018