xref: /NextBSD/sys/compat/mach/mach_convert.c (revision 6283aa8b8e910d10094766cf10d892a509825cc1)
1 /*-
2  * Copyright (c) 2014-2015, Matthew Macy <mmacy@nextbsd.org>
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are met:
7  *
8  *  1. Redistributions of source code must retain the above copyright notice,
9  *     this list of conditions and the following disclaimer.
10  *
11  *  2. Neither the name of Matthew Macy nor the names of its
12  *     contributors may be used to endorse or promote products derived from
13  *     this software without specific prior written permission.
14  *
15  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
16  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
19  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25  * POSSIBILITY OF SUCH DAMAGE.
26  */
27 
28 #include <sys/cdefs.h>
29 #include <sys/types.h>
30 #include <sys/param.h>
31 
32 #include <sys/mach/mach_types.h>
33 #include <sys/mach/ipc_host.h>
34 #include <sys/mach/ipc_sync.h>
35 #include <sys/mach/ipc_tt.h>
36 #include <sys/mach/ipc/ipc_voucher.h>
37 #include <sys/mach/task.h>
38 
39 ipc_port_t
convert_clock_ctrl_to_port(mach_clock_t clock)40 convert_clock_ctrl_to_port(mach_clock_t clock)
41 {
42 	return (NULL);
43 }
44 
45 ipc_port_t
convert_clock_to_port(mach_clock_t clock)46 convert_clock_to_port(mach_clock_t clock)
47 {
48 	return (NULL);
49 }
50 
51 vm_map_t
convert_port_entry_to_map(ipc_port_t port)52 convert_port_entry_to_map(ipc_port_t port)
53 {
54 	return (NULL);
55 }
56 
57 
58 mach_clock_t
convert_port_to_clock(ipc_port_t port)59 convert_port_to_clock(ipc_port_t port)
60 {
61 	return (NULL);
62 }
63 
64 semaphore_t
convert_port_to_semaphore(ipc_port_t port)65 convert_port_to_semaphore(ipc_port_t port)
66 {
67 
68 	return (NULL);
69 }
70 
71 task_name_t
convert_port_to_task_name(ipc_port_t port)72 convert_port_to_task_name(ipc_port_t port)
73 {
74 
75 	return (NULL);
76 }
77 
78 task_suspension_token_t
convert_port_to_task_suspension_token(ipc_port_t port)79 convert_port_to_task_suspension_token(ipc_port_t port)
80 {
81 
82 	return (NULL);
83 }
84 
85 ipc_voucher_t
convert_port_to_voucher(ipc_port_t port)86 convert_port_to_voucher(ipc_port_t port)
87 {
88 
89 	return (NULL);
90 }
91 
92 ipc_port_t
convert_semaphore_to_port(semaphore_t sema)93 convert_semaphore_to_port(semaphore_t sema)
94 {
95 
96 	return (NULL);
97 }
98 
99 ipc_port_t
convert_task_suspension_token_to_port(task_suspension_token_t token)100 convert_task_suspension_token_to_port(task_suspension_token_t token)
101 {
102 
103 	return (NULL);
104 }
105 
106 ipc_port_t
convert_voucher_attr_control_to_port(ipc_voucher_attr_control_t control)107 convert_voucher_attr_control_to_port(ipc_voucher_attr_control_t control)
108 {
109 
110 	return (NULL);
111 }
112 
113 ipc_port_t
convert_voucher_to_port(ipc_voucher_t voucher)114 convert_voucher_to_port(ipc_voucher_t voucher)
115 {
116 
117 	return (NULL);
118 }
119