GETOID(2) Domain/OS BSD GETOID(2)
NAME
getoid, geteoid - get organization identity
SYNOPSIS
#include <sys/types.h>
oid = getoid()
oid_t oid;
eoid = geteoid()
oid_t eoid;
DESCRIPTION
getoid returns the real organization ID of the current process. geteoid
returns the effective organization ID.
The real organization ID identifies the organization to which the person
who is logged in belongs. The effective organization ID gives the
process additional permissions during execution of "set-org-ID" mode
processes, which use getoid to determine the real organization ID of the
process that invoked them.
SEE ALSO
getgid(2), getuid(2), setregid(2), setreoid(2), setreuid(2), setoid(3),
setuid(3)