add directory Ref-docs

This commit is contained in:
gohigh
2024-02-19 00:21:47 -05:00
parent 5a46ddb732
commit ef50495c9d
2492 changed files with 1609142 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<html><!-- This HTML file has been created by texi2html 1.29
from syscalls.texi on 4 June 1994 -->
<TITLE>Syscall specifications of Linux - setuid</TITLE>
<P>Go to the <A HREF="syscalls_68.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_68.html">previous</A>, <A HREF="syscalls_70.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_70.html">next</A> section.<P>
<H2><A NAME="SEC69" HREF="syscalls_toc.html#SEC69" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_toc.html#SEC69">setuid</A></H2>
<P>
<H3>SYNOPSIS</H3>
<P>
<CODE>int setuid(gid_t <VAR>uid</VAR>);</CODE>
<P>
<H3>PARAMETERS</H3>
<P>
<VAR>uid</VAR>: [in] the new uid.
<P>
<H3>DESCRIPTION</H3>
<P>
If the calling task does not have superuser privileges, it may use
<CODE>setuid</CODE> to sets its effective uid to its saved uid or its real uid
(other values are illegal). If the calling task has superuser
privileges, the real, effective and saved uids are set to <VAR>uid</VAR>.
<P>
<H3>RETURN VALUE</H3>
<P>
On success, returns 0. On error, returns -1 and <CODE>errno</CODE> is set
to one of the following values: <CODE>EPERM</CODE>: the <VAR>uid</VAR> is not the
real uid or the saved uid of the task and the task does not have
superuser privileges.
<P>
<P>Go to the <A HREF="syscalls_68.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_68.html">previous</A>, <A HREF="syscalls_70.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_70.html">next</A> section.<P>