[io-layer] Fix another header missing a guard.
[mono-project.git] / mono / utils / mach-support-unknown.c
blob9fece2272160425161aa10e057a593e3183ab9e8
1 /*
2 * mach-support-unknown.c: mach support for cross compilers (IOW, none)
4 * Authors:
5 * Rodrigo Kumpera (kumpera@gmail.com)
7 * (C) 2012 Xamarin, Inc.
8 */
10 #include <config.h>
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"
19 void *
20 mono_mach_arch_get_ip (thread_state_t state)
22 g_assert_not_reached ();
25 void *
26 mono_mach_arch_get_sp (thread_state_t state)
28 g_assert_not_reached ();
31 int
32 mono_mach_arch_get_mcontext_size ()
34 g_assert_not_reached ();
37 void
38 mono_mach_arch_thread_state_to_mcontext (thread_state_t state, void *context)
40 g_assert_not_reached ();
43 void
44 mono_mach_arch_mcontext_to_thread_state (void *context, thread_state_t state)
46 g_assert_not_reached ();
50 int
51 mono_mach_arch_get_thread_state_size ()
53 g_assert_not_reached ();
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)
59 g_assert_not_reached ();
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)
65 g_assert_not_reached ();
68 void *
69 mono_mach_arch_get_tls_value_from_thread (pthread_t thread, guint32 key)
71 g_assert_not_reached ();
74 void
75 mono_mach_init (pthread_key_t key)
79 #endif