Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

getuid - get real user ID

&pagelevel(4)&pagelevel

Syntax

#include <unistd.h>

Optional
#include <sys/types.h> (End)

uid_t getuid(void);

Description

getuid() returns the real user ID of the calling process.

Return val.

Real user ID of the calling process.

The function is always successful.

See also

getegid(), geteuid(), getgid(), setuid(), sys/types.h, unistd.h.