NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | ERRORS | ATTRIBUTES | SEE ALSO
#include <sys/types.h> #include <unistd.h>gid_t getgid(void);
The function or functions documented here may not be used safely in all application contexts with all APIs provided in the ChorusOS 5.0 product.
See API(5FEA) for details.
getgid() returns the real group ID of the calling process.
getegid() returns the effective group ID of the calling process.
The real group ID is specified at login time.
The real group ID is the group of the user who invoked the program. As the effective group ID gives the process additional permissions during the execution of "set-group-ID" mode processes, getgid() is used to determine the real-user-id of the calling process.
The getgid() and getegid() functions are always successful, and no return value is reserved to indicate an error.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | ERRORS | ATTRIBUTES | SEE ALSO