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 8.1/2012R2/10/2016/2019/11/2022 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 PTC MKS Toolkit UNIX to Windows Porting Guide.


AVAILABILITY

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


SEE ALSO

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


PTC MKS Toolkit 10.4 Documentation Build 39.