[reflection] Managed version of RuntimeType.GetFields_internal
[mono-project.git] / mono / utils / mono-threads-linux.c
blobc5d6e8bab38eb01f2f7cda6eab0cc03be1f0b58a
1 #include <config.h>
3 #if (defined(__linux__) && !defined(PLATFORM_ANDROID)) || defined(__FreeBSD_kernel__)
5 #include <mono/utils/mono-threads.h>
6 #include <pthread.h>
8 void
9 mono_threads_core_get_stack_bounds (guint8 **staddr, size_t *stsize)
11 pthread_attr_t attr;
13 *staddr = NULL;
14 *stsize = (size_t)-1;
16 pthread_getattr_np (pthread_self (), &attr);
17 pthread_attr_getstack (&attr, (void**)staddr, stsize);
18 pthread_attr_destroy (&attr);
21 #endif