Returns the real group ID.
Syntax | 
  | 
   #include <sys/types.h>
   #include <unistd.h>
   gid_t getgid (void);
  | 
Parameters | 
  | 
None.
Return Values | 
  | 
The real GID of the calling process.
Description | 
  | 
The getgid() function returns the real group ID (GID) of the calling process.
Implementation Considerations | 
  | 
None.
Errors | 
  | 
None.
See Also | 
  | 
getegid(), geteuid(), getuid(), POSIX.1 (Section 4.2.1)