1door_revoke(3C)          Standard C Library Functions          door_revoke(3C)
2
3
4

NAME

6       door_revoke - revoke access to a door descriptor
7

SYNOPSIS

9       cc -mt [ flag... ] file... [ library... ]
10       #include <door.h>
11
12       int door_revoke(int d);
13
14

DESCRIPTION

16       The  door_revoke()  function  revokes access to a door descriptor. Door
17       descriptors are created with  door_create(3C). The door_revoke()  func‐
18       tion  performs an implicit call to  close(2), marking the door descrip‐
19       tor d as invalid.
20
21
22       A door descriptor can be revoked only by the process that  created  it.
23       Door invocations that are in progress during a door_revoke() invocation
24       are allowed to complete normally.
25

RETURN VALUES

27       Upon  successful  completion,  door_revoke()  returns   0.   Otherwise,
28       door_revoke() returns −1 and sets errno to indicate the error.
29

ERRORS

31       The  door_revoke() function will fail if:
32
33       EBADF    An invalid door descriptor was passed.
34
35
36       EPERM    The  door  descriptor  was  not  created by this process (with
37                door_create(3C)).
38
39

ATTRIBUTES

41       See attributes(5) for descriptions of the following attributes:
42
43
44
45
46       ┌─────────────────────────────┬─────────────────────────────┐
47       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
48       ├─────────────────────────────┼─────────────────────────────┤
49       │Architecture                 │all                          │
50       ├─────────────────────────────┼─────────────────────────────┤
51       │Availability                 │SUNWcsu                      │
52       ├─────────────────────────────┼─────────────────────────────┤
53       │Interface Stability          │Stable                       │
54       ├─────────────────────────────┼─────────────────────────────┤
55       │MT-Level                     │Safe                         │
56       └─────────────────────────────┴─────────────────────────────┘
57

SEE ALSO

59       close(2), door_create(3C), attributes(5)
60
61
62
63SunOS 5.11                        22 Mar 2005                  door_revoke(3C)
Impressum