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)

setreoid(2)

setreuid(2)

setuid(3)

SETOID(3)                       Domain/OS BSD                        SETOID(3)



NAME
     setoid, seteoid, setroid - set organization ID

SYNOPSIS
     #include <sys/types.h>

     setoid(oid)
     seteoid(eoid)
     setroid(roid)
     oid_t oid, eoid, roid;

DESCRIPTION
     setoid sets both the real and effective organization ID of the current
     process as specified.

     seteoid sets the effective organization ID of the current process.

     setroid sets the real organization ID of the current process.

     These calls are only permitted to the super-user or if the argument is
     the real or effective ID.

DIAGNOSTICS
     setoid returns 0 if the organization ID is set; otherwise, it returns -1.

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

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