|
|
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: /* @(#)ipc_notify.h 2.0 05/11/90 (c) 1990 NeXT */
26:
27: /*
28: * ipc_notify.h - definition of interface to port death notification server
29: *
30: * HISTORY
31: * 05-11-90 Doug Mitchell at NeXT
32: * Created.
33: */
34:
35: #ifndef _IPC_NOTIFY_
36: #define _IPC_NOTIFY_
37:
38: #define PORT_REGISTER_NOTIFY 0x76543 /* register notification request
39: * msg_id */
40:
41: /*
42: * message struct for registering for port death notification with voltask
43: * (msg_id = PORT_REGISTER_NOTIFY).
44: */
45: struct port_register_notify {
46: msg_header_t prn_header;
47: msg_type_t prn_p_type;
48: kern_port_t prn_rights_port; /* port to which requesting
49: * thread has send rights */
50: kern_port_t prn_notify_port; /* port to which notification
51: * should be sent when
52: * prn_rights_port dies */
53: msg_type_t prn_rpr_type;
54: int prn_rp_rep; /* non-translated
55: * representation of
56: * prn_rights_port */
57: };
58:
59: typedef struct port_register_notify *port_register_notify_t;
60:
61: void port_request_notification(kern_port_t reg_port,
62: kern_port_t notify_port);
63: kern_return_t get_kern_port(task_t task, port_t in_port, kern_port_t *kport);
64: void pnotify_start();
65:
66: #endif /* _IPC_NOTIFY_ */
67:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.