add directory Ref-docs
This commit is contained in:
34
Ref-docs/syscalls/syscalls_67.html
Normal file
34
Ref-docs/syscalls/syscalls_67.html
Normal file
@@ -0,0 +1,34 @@
|
||||
<html><!-- This HTML file has been created by texi2html 1.29
|
||||
from syscalls.texi on 4 June 1994 -->
|
||||
|
||||
<TITLE>Syscall specifications of Linux - setregid</TITLE>
|
||||
<P>Go to the <A HREF="syscalls_66.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_66.html">previous</A>, <A HREF="syscalls_68.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_68.html">next</A> section.<P>
|
||||
<H2><A NAME="SEC67" HREF="syscalls_toc.html#SEC67" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_toc.html#SEC67">setregid</A></H2>
|
||||
<P>
|
||||
<H3>SYNOPSIS</H3>
|
||||
<P>
|
||||
<CODE>int setregid(gid_t <VAR>rgid</VAR>, gid_t <VAR>egid</VAR>);</CODE>
|
||||
|
||||
<H3>PARAMETERS</H3>
|
||||
<P>
|
||||
<VAR>rgid</VAR>: [in] the new real gid, -1 for no change.
|
||||
<P>
|
||||
<VAR>egid</VAR>: [in] the new effective gid, -1 for no change.
|
||||
<P>
|
||||
<H3>DESCRIPTION</H3>
|
||||
<P>
|
||||
Sets both the real and effective gid of the task. If the calling task
|
||||
does not have superuser privileges, it can only swap its real and
|
||||
effective gids. If the calling task has superuser privileges, it can set
|
||||
the effective and real gids to whatever it wants. The saved gid is set
|
||||
to the same value of the effective gid. This is done so that a programm
|
||||
using this call will be considered 100% BSD compatible.
|
||||
<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 task tried something else
|
||||
than just changing the effective gid to the real gid and the real gid to
|
||||
the effective gid and the task does not have superuser privileges.
|
||||
<P>
|
||||
<P>Go to the <A HREF="syscalls_66.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_66.html">previous</A>, <A HREF="syscalls_68.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_68.html">next</A> section.<P>
|
||||
Reference in New Issue
Block a user