getgrgid_r_ts64()--Get Group Information Using Group ID


  Syntax
 #include <sys/types.h>
 #include <grp.h>

 int getgrgid_r_ts64(
        gid_t gid,
        struct group * __ptr64 grp,
        char * __prt64 buffer,
        size_t bufsize,
        struct group * __ptr64 * __ptr64 result);    
  Service Program Name: QSYPAPI64

  Default Public Authority: *USE

  Threadsafe: Yes

The getgrgid_r_ts64() function updates the group structure pointed to by grp and stores a pointer to that structure in the location pointed to by result. The structure contains an entry from the user database with a matching GID. getgrgid_r_ts64() differs from getgrgid_r() in that it accepts 8-byte teraspace pointers.

For a discussion of the parameters, authorities required, return values, related information, usage notes, and an example for the getgrgid_r() API, see getgrgid_r()--Get Group Information Using Group ID.


API introduced: V5R1
Top | UNIX-Type APIs | APIs by category