home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 6
/
FreshFish_September1994.bin
/
gnu
/
man
/
cat2
/
setregid.0
< prev
next >
Wrap
Text File
|
1993-12-07
|
1KB
|
67 lines
SETREGID(2) UNIX Programmer's Manual SETREGID(2)
NNAAMMEE
sseettrreeggiidd - set real and effective group ID
SSYYNNOOPPSSIISS
##iinncclluuddee <<uunniissttdd..hh>>
_i_n_t
sseettrreeggiidd(_i_n_t _r_g_i_d, _i_n_t _e_g_i_d)
DDEESSCCRRIIPPTTIIOONN
The real and effective group ID's of the current process are set to the
arguments. Unprivileged users may change the real group ID to the effec
tive group ID and viceversa; only the superuser may make other changes.
Supplying a value of 1 for either the real or effective group ID forces
the system to substitute the current ID in place of the 1 parameter.
RREETTUURRNN VVAALLUUEESS
Upon successful completion, a value of 0 is returned. Otherwise, a value
of 1 is returned and _e_r_r_n_o is set to indicate the error.
EERRRROORRSS
[EPERM] The current process is not the superuser and a change other
than changing the effective groupid to the real groupid was
specified.
SSEEEE AALLSSOO
getgid(2), setreuid(2), setgid(3)
HHIISSTTOORRYY
The sseettrreeggiidd function call appeared in 4.2BSD.
4.2 Berkeley Distribution March 10, 1991 1