Merge pull request #572 from jack-pappas/sockets-ipproto
[mono.git] / mono / utils / mach-support-unknown.c
1 /*
2  * mach-support-unknown.c: mach support for cross compilers (IOW, none)
3  *
4  * Authors:
5  *   Rodrigo Kumpera (kumpera@gmail.com)
6  *
7  * (C) 2012 Xamarin, Inc.
8  */
9
10 #include <config.h>
11
12 #if defined(__MACH__)
13 #include <stdint.h>
14 #include <glib.h>
15 #include <pthread.h>
16 #include "utils/mono-sigcontext.h"
17 #include "mach-support.h"
18
19 void *
20 mono_mach_arch_get_ip (thread_state_t state)
21 {
22         g_assert_not_reached ();
23 }
24
25 void *
26 mono_mach_arch_get_sp (thread_state_t state)
27 {
28         g_assert_not_reached ();
29 }
30
31 int
32 mono_mach_arch_get_mcontext_size ()
33 {
34         g_assert_not_reached ();
35 }
36
37 void
38 mono_mach_arch_thread_state_to_mcontext (thread_state_t state, void *context)
39 {
40         g_assert_not_reached ();
41 }
42
43 void
44 mono_mach_arch_mcontext_to_thread_state (void *context, thread_state_t state)
45 {
46         g_assert_not_reached ();
47 }
48
49
50 int
51 mono_mach_arch_get_thread_state_size ()
52 {
53         g_assert_not_reached ();
54 }
55
56 kern_return_t
57 mono_mach_arch_get_thread_state (thread_port_t thread, thread_state_t state, mach_msg_type_number_t *count)
58 {
59         g_assert_not_reached ();
60 }
61
62 kern_return_t
63 mono_mach_arch_set_thread_state (thread_port_t thread, thread_state_t state, mach_msg_type_number_t count)
64 {
65         g_assert_not_reached ();        
66 }
67
68 void *
69 mono_mach_arch_get_tls_value_from_thread (pthread_t thread, guint32 key)
70 {
71         g_assert_not_reached ();
72 }
73
74 void
75 mono_mach_init (pthread_key_t key)
76 {
77 }
78
79 #endif