70 lines
1.1 KiB
HTML
70 lines
1.1 KiB
HTML
<HTML>
|
|
<HEAD>
|
|
<TITLE>getgid(2)</TITLE>
|
|
</HEAD>
|
|
<BODY>
|
|
<H1>getgid(2)</H1>
|
|
<HR>
|
|
<PRE>
|
|
|
|
</PRE>
|
|
<H2>NAME</H2><PRE>
|
|
getgid, getegid - get group identity
|
|
|
|
|
|
</PRE>
|
|
<H2>SYNOPSIS</H2><PRE>
|
|
<STRONG>#include</STRONG> <STRONG><sys/types.h></STRONG>
|
|
<STRONG>#include</STRONG> <STRONG><unistd.h></STRONG>
|
|
|
|
<STRONG>gid_t</STRONG> <STRONG>getgid(void)</STRONG>
|
|
<STRONG>gid_t</STRONG> <STRONG>getegid(void)</STRONG>
|
|
|
|
|
|
</PRE>
|
|
<H2>DESCRIPTION</H2><PRE>
|
|
<STRONG>Getgid</STRONG> returns the real group ID of the current process, <STRONG>getegid</STRONG> the
|
|
effective group ID.
|
|
|
|
The real group ID is specified at login time.
|
|
|
|
The effective group ID is more transient, and determines additional
|
|
access permission during execution of a ``set-group-ID'' process, and it
|
|
is for such processes that <STRONG>getgid</STRONG> is most useful.
|
|
|
|
|
|
</PRE>
|
|
<H2>SEE ALSO</H2><PRE>
|
|
<STRONG><A HREF="../man2/getuid.2.html">getuid(2)</A></STRONG>, <STRONG><A HREF="../man2/setgid.2.html">setgid(2)</A></STRONG>.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
</BODY>
|
|
</HTML>
|