|
|
1.1 root 1: /*
2: * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
3: *
4: * @APPLE_LICENSE_HEADER_START@
5: *
6: * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights
7: * Reserved. This file contains Original Code and/or Modifications of
8: * Original Code as defined in and that are subject to the Apple Public
9: * Source License Version 1.1 (the "License"). You may not use this file
10: * except in compliance with the License. Please obtain a copy of the
11: * License at http://www.apple.com/publicsource and read it before using
12: * this file.
13: *
14: * The Original Code and all software distributed under the License are
15: * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
16: * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
17: * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
18: * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
19: * License for the specific language governing rights and limitations
20: * under the License.
21: *
22: * @APPLE_LICENSE_HEADER_END@
23: */
24:
25: /*
26: * Mach Operating System
27: * Copyright (c) 1991,1990,1989 Carnegie Mellon University
28: * All Rights Reserved.
29: *
30: * Permission to use, copy, modify and distribute this software and its
31: * documentation is hereby granted, provided that both the copyright
32: * notice and this permission notice appear in all copies of the
33: * software, derivative works or modified versions, and any portions
34: * thereof, and that both notices appear in supporting documentation.
35: *
36: * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
37: * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
38: * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
39: *
40: * Carnegie Mellon requests users of this software to return to
41: *
42: * Software Distribution Coordinator or [email protected]
43: * School of Computer Science
44: * Carnegie Mellon University
45: * Pittsburgh PA 15213-3890
46: *
47: * any improvements or extensions that they make and grant Carnegie Mellon
48: * the rights to redistribute these changes.
49: */
50: /*
51: * HISTORY
52: * $Log: notify.defs,v $
53: * Revision 1.1.1.1.666.4 1999/03/16 17:05:42 wsanchez
54: * Substitute License
55: *
56: * Revision 1.1.1.1.666.3 1999/03/16 15:28:05 wsanchez
57: * Substitute copyright
58: *
59: * Revision 1.1.1.1.666.2 1999/03/16 10:37:40 umeshv
60: * Fixed errors in previous commit.
61: *
62: * Revision 1.1.1.1.666.1 1999/03/11 09:52:51 umeshv
63: * Added copyrights.
64: *
65: * Revision 1.1.1.1 1997/09/30 02:44:52 wsanchez
66: * Import of kernel from umeshv/kernel
67: *
68: * Revision 2.6 91/08/28 11:15:33 jsb
69: * Added conditionalized sequence number support.
70: * [91/08/13 rpd]
71: *
72: * Revision 2.5 91/05/14 16:58:11 mrt
73: * Correcting copyright
74: *
75: * Revision 2.4 91/02/05 17:35:14 mrt
76: * Changed to new Mach copyright
77: * [91/02/01 17:19:54 mrt]
78: *
79: * Revision 2.3 90/08/27 22:04:34 dbg
80: * Fixed the notification ports, to make them send-once rights.
81: * [90/08/13 rpd]
82: *
83: * Revision 2.2 90/06/02 14:59:28 rpd
84: * Created for new IPC.
85: * [90/03/26 23:45:48 rpd]
86: *
87: */
88:
89: subsystem notify 64;
90:
91: #include <mach/std_types.defs>
92:
93: #if SEQNOS
94: serverprefix do_seqnos_;
95: serverdemux seqnos_notify_server;
96: #else SEQNOS
97: serverprefix do_;
98: serverdemux notify_server;
99: #endif SEQNOS
100:
101: type notify_port_t = MACH_MSG_TYPE_MOVE_SEND_ONCE
102: ctype: mach_port_t;
103:
104: /* MACH_NOTIFY_FIRST: 0100 */
105: skip;
106:
107: /* MACH_NOTIFY_PORT_DELETED: 0101 */
108: simpleroutine mach_notify_port_deleted(
109: notify : notify_port_t;
110: #if SEQNOS
111: msgseqno seqno : mach_port_seqno_t;
112: #endif SEQNOS
113: name : mach_port_name_t);
114:
115: /* MACH_NOTIFY_MSG_ACCEPTED: 0102 */
116: simpleroutine mach_notify_msg_accepted(
117: notify : notify_port_t;
118: #if SEQNOS
119: msgseqno seqno : mach_port_seqno_t;
120: #endif SEQNOS
121: name : mach_port_name_t);
122:
123: skip; /* was NOTIFY_OWNERSHIP_RIGHTS: 0103 */
124:
125: skip; /* was NOTIFY_RECEIVE_RIGHTS: 0104 */
126:
127: /* MACH_NOTIFY_PORT_DESTROYED: 0105 */
128: simpleroutine mach_notify_port_destroyed(
129: notify : notify_port_t;
130: #if SEQNOS
131: msgseqno seqno : mach_port_seqno_t;
132: #endif SEQNOS
133: rights : mach_port_receive_t);
134:
135: /* MACH_NOTIFY_NO_SENDERS: 0106 */
136: simpleroutine mach_notify_no_senders(
137: notify : notify_port_t;
138: #if SEQNOS
139: msgseqno seqno : mach_port_seqno_t;
140: #endif SEQNOS
141: mscount : mach_port_mscount_t);
142:
143: /* MACH_NOTIFY_SEND_ONCE: 0107 */
144: simpleroutine mach_notify_send_once(
145: notify : notify_port_t
146: #if SEQNOS
147: ; msgseqno seqno : mach_port_seqno_t
148: #endif SEQNOS
149: );
150:
151: /* MACH_NOTIFY_DEAD_NAME: 0110 */
152: simpleroutine mach_notify_dead_name(
153: notify : notify_port_t;
154: #if SEQNOS
155: msgseqno seqno : mach_port_seqno_t;
156: #endif SEQNOS
157: name : mach_port_name_t);
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.