'\"macro stdmacro
.if n .pH g2.getuid @(#)getuid	40.13 of 10/10/89
.\" Copyright 1989 AT&T
.nr X
.if \nX=0 .ds x} getuid 2 "" "\&"
.if \nX=1 .ds x} getuid 2 ""
.if \nX=2 .ds x} getuid 2 "" "\&"
.if \nX=3 .ds x} getuid "" "" "\&"
.TH \*(x}
.SH NAME
\f4getuid\f1, \f4geteuid\f1, \f4getgid\f1, \f4getegid\f1 \- get real user, effective user, real group, and effective group \s-1ID\s+1s
.SH SYNOPSIS
\f4#include <sys/types.h>\f1
.br
\f4#include <unistd.h>\f1
.PP
\f4uid_t getuid (void);\f1
.PP
\f4uid_t geteuid (void);\f1
.PP
\f4gid_t getgid (void);\f1
.PP
\f4gid_t getegid (void);\f1
.SH DESCRIPTION
\f4getuid\fP
returns the real user
.SM ID
of the calling process.
.PP
\f4geteuid\fP
returns the effective user
.SM ID
of the calling process.
.PP
\f4getgid\fP
returns the real group
.SM ID
of the calling process.
.PP
\f4getegid\fP
returns the effective group
.SM ID
of the calling process.
.SH "SEE ALSO"
\f4intro\fP(2), \f4setuid\fP(2).
.\"	@(#)getuid.2	6.2 of 9/6/83
.Ee
