2 .\" Copyright (c) 2005, Sun Microsystems, Inc. All Rights Reserved.
3 .\" 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.
4 .\" 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.
5 .\" 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]
6 .TH DOOR_REVOKE 3C "Mar 22, 2005"
8 door_revoke \- revoke access to a door descriptor
12 \fBcc\fR \fB-mt\fR [ \fIflag\fR... ] \fIfile\fR... [ \fIlibrary\fR... ]
15 \fBint\fR \fBdoor_revoke\fR(\fBint\fR \fId\fR);
20 The \fBdoor_revoke()\fR function revokes access to a door descriptor. Door
21 descriptors are created with \fBdoor_create\fR(3C). The \fBdoor_revoke()\fR
22 function performs an implicit call to \fBclose\fR(2), marking the door
23 descriptor \fId\fR as invalid.
26 A door descriptor can be revoked only by the process that created it. Door
27 invocations that are in progress during a \fBdoor_revoke()\fR invocation are
28 allowed to complete normally.
31 Upon successful completion, \fBdoor_revoke()\fR returns \fB0\fR. Otherwise,
32 \fBdoor_revoke()\fR returns \(mi1 and sets \fBerrno\fR to indicate the error.
35 The \fBdoor_revoke()\fR function will fail if:
42 An invalid door descriptor was passed.
51 The door descriptor was not created by this process (with
52 \fBdoor_create\fR(3C)).
57 See \fBattributes\fR(5) for descriptions of the following attributes:
65 ATTRIBUTE TYPE ATTRIBUTE VALUE
69 Interface Stability Stable
76 \fBclose\fR(2), \fBdoor_create\fR(3C), \fBattributes\fR(5)