Standard C Library Functions doorrevoke(3C)
NAME
doorrevoke - revoke access to a door descriptor
SYNOPSIS
cc -mt [ flag... ] file... [ library... ]
#include
int doorrevoke(int d);
DESCRIPTION
The doorrevoke() function revokes access to a door descrip-
tor. Door descriptors are created with doorcreate(3C). The
doorrevoke() function performs an implicit call to
close(2), marking the door descriptor d as invalid.
A door descriptor can be revoked only by the process that
created it. Door invocations that are in progress during a
doorrevoke() invocation are allowed to complete normally.
RETURN VALUES
Upon successful completion, doorrevoke() returns 0. Other-
wise, doorrevoke() returns -1 and sets errno to indicate
the error.
ERORS
The doorrevoke() function will fail if:
EBADF An invalid door descriptor was passed.
EPERM The door descriptor was not created by this process
(with doorcreate(3C)).
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
SunOS 5.11 Last change: 22 Mar 2005 1
Standard C Library Functions doorrevoke(3C)
ATRIBUTE TYPE ATRIBUTE VALUE
Architecture all
Availability SUNWcsu
Interface Stability Stable
MT-Level Safe
SEE ALSO
close(2), doorcreate(3C), attributes(5)
SunOS 5.11 Last change: 22 Mar 2005 2
|