syscalls_60.html

来自「Linux系统调用」· HTML 代码 · 共 28 行

HTML
28
字号
<!-- 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://personal.xfol.com/%7erezaie/syscall/syscalls_59.html">previous</A>, <A HREF="syscalls_61.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_61.html">next</A> section.<P>
<H2><A NAME="SEC60" HREF="syscalls_toc.html#SEC60" tppabs="http://personal.xfol.com/%7erezaie/syscall/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://personal.xfol.com/%7erezaie/syscall/syscalls_59.html">previous</A>, <A HREF="syscalls_61.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_61.html">next</A> section.<P>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?