Developer Guide and Reference

ID 767251
Date 10/31/2024
Public
Document Table of Contents

PXFGETGRGID

POSIX Subroutine: Gets group information for the specified GID. This routine is only available for Linux.

Module

USE IFPOSIX

CALL PXFGETGRGID (jgid,jgroup,ierror)

jgid

(Input) INTEGER(4). The group ID to retrieve information about.

jgroup

(Input) INTEGER(4). A handle of structure group.

ierror

(Output) INTEGER(4). The error status.

If successful, ierror is not changed; otherwise, an error code.

The PXFGETGRGID subroutine stores the group information from /etc/group for the entry that matches the group GID jgid in the structure associated with handle jgroup.

NOTE:

To get a handle for an instance of the groupstructure, use PXFSTRUCTCREATE with the string 'group' for the structure name.

Example

See the example in PXFGETGROUPS

See Also