Go to main content

man pages section 3: Basic Library Functions

Exit Print View

Updated: July 2017
 
 

door_revoke(3C)

Name

door_revoke - revoke access to a door descriptor

Synopsis

cc –mt [ flag... ] file... [ library... ]
#include <door.h>

int door_revoke(int d);

Description

The door_revoke() function revokes access to a door descriptor. 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 a door_revoke() invocation are allowed to complete normally.

Return Values

Upon successful completion, door_revoke() returns 0. Otherwise, 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 attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Architecture
all
Availability
system/core-os
Interface Stability
Committed
MT-Level
Safe

See Also

close(2), door_create(3C), attributes(5)