getgid()

get real group ID of the calling process 

Function


SYNOPSIS

#include <sys/types.h>

#include <unistd.h>

gid_t getgid(void);


DESCRIPTION

The getgid() function returns the real group ID of the calling process.


PARAMETERS

None.


RETURN VALUES

The getgid() function is always successful. It returns the real group ID of the calling process. No return value is reserved to indicate an error.


CONFORMANCE

POSIX.1 (1996), with exceptions.


MULTITHREAD SAFETY LEVEL

Async-signal-safe.


PORTING ISSUES

The Windows NT/2000/XP/2003/Vista/7/2008/8/2012 security model is significantly different from the UNIX security model. The NuTCRACKER Platform mapping of the UNIX security model to Windows, and vice-versa, is discussed in detail under Security in the Windows Concepts chapter of the MKS Toolkit UNIX to Windows Porting Guide.


AVAILABILITY

MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
getegid(), geteuid(), getuid(), setegid(), seteuid(), setgid(), setuid()


MKS Toolkit 9.5 Documentation Build 3.