GETUID(2) BSD Programmer's Manual GETUID(2) NNAAMMEE ggeettuuiidd, ggeetteeuuiidd - get user identification SSYYNNOOPPSSIISS ##iinncclluuddee <<uunniissttdd..hh>> ##iinncclluuddee <<ssyyss//ttyyppeess..hh>> _u_i_d___t ggeettuuiidd(_v_o_i_d); _u_i_d___t ggeetteeuuiidd(_v_o_i_d); DDEESSCCRRIIPPTTIIOONN The ggeettuuiidd() function returns the real user ID of the calling process. The ggeetteeuuiidd() function returns the effective user ID of the calling pro- cess. The real user ID is that of the user who has invoked the program. As the effective user ID gives the process additional permissions during execu- tion of ``_s_e_t_-_u_s_e_r_-_I_D'' mode processes, ggeettuuiidd() is used to determine the real-user-id of the calling process. EERRRROORRSS The ggeettuuiidd() and ggeetteeuuiidd() functions are always successful, and no return value is reserved to indicate an error. SSEEEE AALLSSOO getgid(2), setreuid(2) SSTTAANNDDAARRDDSS GGeetteeuuiidd() and ggeettuuiidd() conform to IEEE Std 1003.1-1988 (``POSIX''). 4th Berkeley Distribution June 4, 1993 1