Standard C Library Functions door_revoke(3C)
NAME
door_revoke - revoke access to a door descriptor
SYNOPSIS
cc -mt [ flag... ] file... [ library... ]
#include
int door_revoke(int d);
DESCRIPTION
The door_revoke() function revokes access to a door descrip-
tor. Door descriptors are created with door_create(3C). The
door_revoke() 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 adoor_revoke() invocation are allowed to complete normally.
RETURN VALUES
Upon successful completion, door_revoke() returns 0. Other-
wise, door_revoke() returns -1 and sets errno to indicate
the error.ERRORS
The door_revoke() function will fail if:
EBADF An invalid door descriptor was passed. EPERM The door descriptor was not created by this process(with door_create(3C)).
ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:SunOS 5.11 Last change: 22 Mar 2005 1
Standard C Library Functions door_revoke(3C)
____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Architecture | all ||_____________________________|_____________________________|
| Availability | SUNWcs ||_____________________________|_____________________________|
| Interface Stability | Committed ||_____________________________|_____________________________|
| MT-Level | Safe |
|_____________________________|_____________________________|
SEE ALSO
close(2), door_create(3C), attributes(5)
SunOS 5.11 Last change: 22 Mar 2005 2