4.4BSD/usr/share/man/cat2/setrgid.0

Compare this file to the similar file:
Show the results in this format:

SETRUID(3)                  BSD Programmer's Manual                 SETRUID(3)

NNAAMMEE
     sseettrruuiidd, sseettrrggiidd - set user and group ID

SSYYNNOOPPSSIISS
     ##iinncclluuddee <<ssyyss//ttyyppeess..hh>>

     _i_n_t
     sseettrruuiidd(_u_i_d___t _r_u_i_d);

     _i_n_t
     sseettrrggiidd(_g_i_d___t _r_g_i_d);

DDEESSCCRRIIPPTTIIOONN
     The sseettrruuiidd() function (sseettrrggiidd()) sets the real user ID (group ID) of
     the current process.

RREETTUURRNN VVAALLUUEESS
     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.

     The use of these calls is not portable.  Their use is discouraged; they
     will be removed in the future.

SSEEEE AALLSSOO
     setuid(2),  setgid(2),  seteuid(2),  setegid(2),  getuid(2),  getgid(2)

HHIISSTTOORRYY
     The sseettrruuiidd() and sseettrrggiidd() syscalls appeared in 4.2BSD and were dropped
     in 4.4BSD.

4.2 Berkeley Distribution        June 2, 1993                                1