GETGID(2) BSD Programmer's Manual GETGID(2) NNAAMMEE ggeettggiidd, ggeetteeggiidd - get group process identification SSYYNNOOPPSSIISS ##iinncclluuddee <<ssyyss//ttyyppeess..hh>> _g_i_d___t ggeettggiidd(_v_o_i_d); _g_i_d___t ggeetteeggiidd(_v_o_i_d); DDEESSCCRRIIPPTTIIOONN The ggeettggiidd() function returns the real group ID of the calling process, ggeetteeggiidd() returns the effective group ID of the calling process. The real group ID is specified at login time. The real group ID is the group of the user who invoked the program. As the effective group ID gives the process additional permissions during the execution of ``_s_e_t_-_g_r_o_u_p_-_I_D'' mode processes, ggeettggiidd() is used to de- termine the real-user-id of the calling process. EERRRROORRSS The ggeettggiidd() and ggeetteeggiidd() functions are always successful, and no return value is reserved to indicate an error. SSEEEE AALLSSOO getuid(2), setregid(2), setgid(3) SSTTAANNDDAARRDDSS GGeettggiidd() and ggeetteeggiidd() conform to IEEE Std 1003.1-1988 (``POSIX''). 4.2 Berkeley Distribution June 4, 1993 1