📄 syscalls_61.html
字号:
<!-- This HTML file has been created by texi2html 1.29
from syscalls.texi on 4 June 1994 -->
<TITLE>Syscall specifications of Linux - geteuid</TITLE>
<P>Go to the <A HREF="syscalls_60.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_60.html">previous</A>, <A HREF="syscalls_62.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_62.html">next</A> section.<P>
<H2><A NAME="SEC61" HREF="syscalls_toc.html#SEC61" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_toc.html#SEC61">geteuid and getuid</A></H2>
<P>
<H3>SYNOPSIS</H3>
<P>
<CODE>uid_t getuid(void);</CODE>
<P>
<CODE>uid_t geteuid(void);</CODE>
<P>
<H3>DESCRIPTION</H3>
<P>
<CODE>getuid</CODE> retreives the real uid of the current task. The real uid is
the one of the user who started the task. <CODE>geteuid</CODE> retreives the
effective uid of the current task. The effective uid is the uid of the
executable file if the SUID bit of the file is set (otherwise, it is
equal to the real uid).
<P>
<H3>RETURN VALUE</H3>
<P>
<CODE>getuid</CODE>: the real uid.
<P>
<CODE>geteuid</CODE>: the effective uid.
<P>
<P>Go to the <A HREF="syscalls_60.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_60.html">previous</A>, <A HREF="syscalls_62.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_62.html">next</A> section.<P>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -