Standard C Library Functions doorcred(3C)
NAME
doorcred - return credential information associated with
the client
SYNOPSIS
cc -mt [ flag... ] file... [ library... ]
#include
int doorcred(doorcredt *info);
DESCRIPTION
The doorcred() function returns credential information
associated with the client (if any) of the current door
invocation.
The contents of the info argument include the following
fields:
uidt dceuid; /* Effective uid of client */
gidt dcegid; /* Effective gid of client */
uidt dcruid; /* Real uid of client */
gidt dcrgid; /* Real gid of client */
pidt dcpid; /* pid of client */
The credential information associated with the client refers
to the information from the immediate caller; not neces-
sarily from the first thread in a chain of door calls.
RETURN VALUES
Upon successful completion, doorcred() returns 0. Other-
wise, doorcred() returns -1 and sets errno to indicate the
error.
ERORS
The doorcred() function will fail if:
EFAULT The address of the info argument is invalid.
EINVAL There is no associated door client.
USAGE
The doorcred() function is obsolete. Applications should
use the doorucred(3C) function in place of doorcred().
ATRIBUTES
SunOS 5.11 Last change: 22 Mar 2005 1
Standard C Library Functions doorcred(3C)
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
Architecture all
Availability SUNWcsu
Interface Stability Obsolete
MT-Level Safe
SEE ALSO
doorcall(3C), doorcreate(3C), doorucred(3C), attri-
butes(5)
SunOS 5.11 Last change: 22 Mar 2005 2
|