• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include "usr_lib_define.h"
2 #include "pthread_impl.h"
3 #include <threads.h>
4 
__pthread_self()5 _LIBC_TEXT_SECTION pthread_t __pthread_self()
6 {
7 	uintptr_t p;
8 	p = __syscall(SYS_get_thread_area);
9 	return (pthread_t)(p - sizeof(struct pthread));
10 }
11 
12 weak_alias(__pthread_self, pthread_self);
13