#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 (getgroups Subroutine) subroutine, initgroups (initgroups Subroutine) subroutine, setgid subroutine, setgroups subroutine.
The groups command, setgroups command.
List of Security and Auditing Subroutines and Subroutines Overview in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.