#include <unistd.h> #include <sys/types.h>
gid_t getgid (void);
gid_t getegid (void);
The getgid subroutine returns the real group ID of the calling process.
The getegid subroutine returns the effective group ID of the calling process.
The getgid and getegid subroutines return the requested group ID. The getgid and getegid subroutines are always successful.
These subroutines are part of Base Operating System (BOS) Runtime.
The getgroups subroutine, initgroups subroutine, setgid subroutine, setgroups subroutine.
The groups command, setgroups command.
List of Security and Auditing Subroutines and Subroutines Overview in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.