ggeetteeggiidd() -- System Call (libc)

Get effective group identifier
#iinncclluuddee <uunniissttdd.hh>
ggeetteeggiidd()

Every process  has two different  versions of its  _g_r_o_u_p _i_d_e_n_t_i_f_i_e_r, called
the _r_e_a_l  group identifier and  the _e_f_f_e_c_t_i_v_e group  identifier.  The group
identifiers  determine   eligibility  to   access  files  and   use  system
privileges.  Normally, these two identifiers are identical.  However, for a
_s_e_t _g_r_o_u_p  _i_d_e_n_t_i_f_i_e_r load module (see eexxeecc), the  real group identifier is
that of  the group's current group, whereas  the effective group identifier
is that of the load  module owner.  This distinction allows system programs
to use files which are protected from groups that invoke the program.

ggeetteeggiidd() returns the effective group identifier.

_S_e_e _A_l_s_o
aacccceessss,  eexxeecc,  ggeetteeuuiidd(),   ggeettggiidd(),  ggeettuuiidd(),  lliibbcc,  llooggiinn,  sseettuuiidd(),
uunniissttdd.hh
POSIX Standard, section 4.2.1
