xref: /titanic_52/usr/src/man/man3c/door_revoke.3c (revision af8dc4373b25cce2c0bbb80f24e791f99eccbb6f)
te
Copyright (c) 2005, Sun Microsystems, Inc. All Rights Reserved.
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
door_revoke 3C "22 Mar 2005" "SunOS 5.11" "Standard C Library Functions"
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 TYPEATTRIBUTE VALUE
Architectureall
Interface StabilityStable
MT-LevelSafe
SEE ALSO

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