Files
oldlinux-files/Minix/2.0.0/wwwman/man2/getuid.2.html
2024-02-19 00:21:39 -05:00

70 lines
1.1 KiB
HTML

<HTML>
<HEAD>
<TITLE>getuid(2)</TITLE>
</HEAD>
<BODY>
<H1>getuid(2)</H1>
<HR>
<PRE>
</PRE>
<H2>NAME</H2><PRE>
getuid, geteuid - get user identity
</PRE>
<H2>SYNOPSIS</H2><PRE>
<STRONG>#include</STRONG> <STRONG>&lt;sys/types.h&gt;</STRONG>
<STRONG>#include</STRONG> <STRONG>&lt;unistd.h&gt;</STRONG>
<STRONG>uid_t</STRONG> <STRONG>getuid(void)</STRONG>
<STRONG>uid_t</STRONG> <STRONG>geteuid(void)</STRONG>
</PRE>
<H2>DESCRIPTION</H2><PRE>
<STRONG>Getuid</STRONG> returns the real user ID of the current process, <STRONG>geteuid</STRONG> the
effective user ID.
The real user ID identifies the person who is logged in. The effective
user ID gives the process additional permissions during execution of
"set-user-ID" mode processes, which use <STRONG>getuid</STRONG> to determine the real-
user-id of the process that invoked them.
</PRE>
<H2>SEE ALSO</H2><PRE>
<STRONG><A HREF="../man2/getgid.2.html">getgid(2)</A></STRONG>, <STRONG><A HREF="../man2/setuid.2.html">setuid(2)</A></STRONG>.
</PRE>
</BODY>
</HTML>