*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: setrgid | Section: 3 | Source: Digital UNIX | File: setrgid.3.gz
setrgid(3) Library Functions Manual setrgid(3) NAME setrgid, setegid - Set the process's group IDs LIBRARY Standard C Library (libc.a) SYNOPSIS #include <sys/types.h> int setrgid( gid_t rgid); int setegid ( gid_t egid); PARAMETERS Specifies the value of the real group ID to be set. Specifies the value of the effective group ID to be set. DESCRIPTION The setegid() function sets the process's effective group ID to the value of the egid parameter if the egid parameter is equal to the cur- rent real, effective, or saved group ID. The setrgid() function sets the process's real group ID to the value of the rgid parameter. Only the superuser may change the real or effective group ID to a value other than the current real or saved group ID of the process. RETURN VALUES Upon successful completion, the setegid() and setrgid() functions re- turn a value of 0 (zero). If either function fails, a value of -1 is returned and errno is set to indicate the error. ERRORS If the setrgid() or setegid() function fails, errno is set to one of the following values: The rgid or egid parameter is not equal to either the real or saved group IDs of the process and the calling process does not have superuser privilege. RELATED INFORMATION Functions: getgroups(2), setgroups(2), setregid(2). Commands: groups(1). delim off setrgid(3)

Navigation Options