
SETUID(3)                  UNIX Programmer's Manual                  SETUID(3)

NNAAMMEE
     sseettuuiidd, sseetteeuuiidd, sseettrruuiidd, sseettggiidd, sseetteeggiidd, sseettrrggiidd - set user and group
     ID

SSYYNNOOPPSSIISS
     ##iinncclluuddee <<ssyyss//ttyyppeess..hh>>

     _i_n_t
     sseettuuiidd(_u_i_d___t _u_i_d)

     _i_n_t
     sseetteeuuiidd(_u_i_d___t _e_u_i_d)

     _i_n_t
     sseettrruuiidd(_u_i_d___t _r_u_i_d)

     _i_n_t
     sseettggiidd(_g_i_d___t _g_i_d)

     _i_n_t
     sseetteeggiidd(_g_i_d___t _e_g_i_d)

     _i_n_t
     sseettrrggiidd(_g_i_d___t _r_g_i_d)

DDEESSCCRRIIPPTTIIOONN
     The sseettuuiidd() function (sseettggiidd()) sets both the real and effective user ID
     (group ID) of the current process as specified.

     The sseetteeuuiidd() function (sseetteeggiidd()) sets the effective user ID (group ID)
     of the current process.

     The sseettrruuiidd() function (sseettrrggiidd()) sets the real user ID (group ID) of
     the current process.

RREETTUURRNN VVAALLUUEESS
     Upon success, these functions return 0; otherwise -1 is returned.

     If the user is not the super user, or the uid specified is not the real
     or effective ID, these functions return -1.

SSEEEE AALLSSOO
     setreuid(2),  setregid(2),  getuid(2),  getgid(2)

HHIISSTTOORRYY
     A sseettuuiidd() and sseettggiidd() syscall appeared in Version 6 AT&T UNIX.

4.2 Berkeley Distribution       April 19, 1991                               1















