geteuid()

get the effective user ID of the calling process 

Function


SYNOPSIS

#include <sys/types.h>

#include <unistd.h>

uid_t geteuid(void);


DESCRIPTION

The geteuid() function returns the effective user ID of the calling process.


PARAMETERS

None.


RETURN VALUES

The geteuid() function is always successful. It returns the effective user 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 2012/8.1/2012R2/10/2016/2019 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(), getgid(), getuid(), setegid(), seteuid(), setgid(), setuid()


PTC MKS Toolkit 10.3 Documentation Build 39.