|
|
1.1 root 1: /*
2: * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3: *
4: * @APPLE_LICENSE_HEADER_START@
5: *
6: * The contents of this file constitute Original Code as defined in and
7: * are subject to the Apple Public Source License Version 1.1 (the
8: * "License"). You may not use this file except in compliance with the
9: * License. Please obtain a copy of the License at
10: * http://www.apple.com/publicsource and read it before using this file.
11: *
12: * This Original Code and all software distributed under the License are
13: * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14: * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15: * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16: * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17: * License for the specific language governing rights and limitations
18: * under the License.
19: *
20: * @APPLE_LICENSE_HEADER_END@
21: */
22: /*
23: * @OSF_COPYRIGHT@
24: *
25: */
26: /*
27: * HISTORY
28: *
29: * Revision 1.1.1.1 1998/09/22 21:05:34 wsanchez
30: * Import of Mac OS X kernel (~semeria)
31: *
32: * Revision 1.1.1.1 1998/03/07 02:25:55 wsanchez
33: * Import of OSF Mach kernel (~mburg)
34: *
35: * Revision 1.1.4.1 1994/08/16 16:10:28 joe
36: * Original rt2_shared version
37: * [1994/08/15 18:33:34 joe]
38: *
39: * Revision 1.1.2.1 1994/07/21 19:33:01 joe
40: * Initial check-in: synchronizer package.
41: * [1994/07/21 19:32:36 joe]
42: *
43: * $EndLog$
44: */
45:
46: #ifndef _KERN_IPC_SYNC_H_
47: #define _KERN_IPC_SYNC_H_
48:
49: #include <ipc/ipc_types.h>
50: #include <kern/sync_sema.h>
51: #include <kern/sync_lock.h>
52:
53: semaphore_t convert_port_to_semaphore (ipc_port_t port);
54: ipc_port_t convert_semaphore_to_port (semaphore_t semaphore);
55:
56: lock_set_t convert_port_to_lock_set (ipc_port_t port);
57: ipc_port_t convert_lock_set_to_port (lock_set_t lock_set);
58:
59: #endif /* _KERN_IPC_SYNC_H_ */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.