Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getgid(2)

getoid(2)

getuid(2)

setregid(2)

setreuid(2)

setoid(3)

setuid(3)

SETREOID(2)                     Domain/OS BSD                      SETREOID(2)



NAME
     setreoid - set real and effective organization IDs

SYNOPSIS
     setreoid(roid, eoid)
     int roid, eoid;

DESCRIPTION
     The real and effective organization IDs of the current process are set
     according to the arguments.  If roid or eoid is -1, the current
     organization ID is filled in by the system.  Unprivileged users may
     change the real organization ID to the effective organization ID and
     vice-versa; only the super-user may make other changes.

ERRORS
     [EPERM]   The current process is not the super-user and a change other
               than changing the effective organization ID to the real
               organization ID was specified.

SEE ALSO
     getgid(2), getoid(2), getuid(2), setregid(2), setreuid(2), setoid(3),
     setuid(3)

DIAGNOSTICS
     A successful call returns 0.  A failed call returns -1 and sets errno as
     indicated under "Errors."

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026