28 lines
1.3 KiB
HTML
28 lines
1.3 KiB
HTML
<html><!-- This HTML file has been created by texi2html 1.29
|
|
from syscalls.texi on 4 June 1994 -->
|
|
|
|
<TITLE>Syscall specifications of Linux - getegid</TITLE>
|
|
<P>Go to the <A HREF="syscalls_59.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_59.html">previous</A>, <A HREF="syscalls_61.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_61.html">next</A> section.<P>
|
|
<H2><A NAME="SEC60" HREF="syscalls_toc.html#SEC60" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_toc.html#SEC60">getegid and getgid</A></H2>
|
|
<P>
|
|
<H3>SYNOPSIS</H3>
|
|
<P>
|
|
<CODE>gid_t getgid(void);</CODE>
|
|
<P>
|
|
<CODE>gid_t getegid(void);</CODE>
|
|
<P>
|
|
<H3>DESCRIPTION</H3>
|
|
<P>
|
|
<CODE>getgid</CODE> returns the real gid of the current task. <CODE>getegid</CODE>
|
|
returns the effective gid of the current task. The real gid is the gid
|
|
of the user that started the task, the effective gid, on the other hand,
|
|
is the gid of the executable file if the sgid bit is set.
|
|
<P>
|
|
<H3>RETURN VALUE</H3>
|
|
<P>
|
|
<CODE>getgid</CODE>: the real gid.
|
|
<P>
|
|
<CODE>getegid</CODE>: the effective gid.
|
|
<P>
|
|
<P>Go to the <A HREF="syscalls_59.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_59.html">previous</A>, <A HREF="syscalls_61.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_61.html">next</A> section.<P>
|