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 Windows NT/2000/XP/2003/Vista 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(), getgid(), getuid(), setegid(), seteuid(), setgid(), setuid()


MKS Toolkit 9.2 Documentation Build 16.