Home
last modified time | relevance | path

Searched refs:tls (Results 1 – 11 of 11) sorted by relevance

/bionic/libc/bionic/
Dstrsignal.cpp43 bionic_tls& tls = __get_bionic_tls(); in strsignal() local
44 …return const_cast<char*>(__strsignal(signal_number, tls.strsignal_buf, sizeof(tls.strsignal_buf))); in strsignal()
Dstrerror.cpp42 bionic_tls& tls = __get_bionic_tls(); in strerror() local
43 result = tls.strerror_buf; in strerror()
44 strerror_r(error_number, result, sizeof(tls.strerror_buf)); in strerror()
Dlibc_init_dynamic.cpp85 void** tls = __get_tls(); in __libc_preinit() local
86 …KernelArgumentBlock** args_slot = &reinterpret_cast<KernelArgumentBlock**>(tls)[TLS_SLOT_BIONIC_PR… in __libc_preinit()
95 __stack_chk_guard = reinterpret_cast<uintptr_t>(tls[TLS_SLOT_STACK_GUARD]); in __libc_preinit()
Dpty.cpp54 bionic_tls& tls = __get_bionic_tls(); in ptsname() local
55 char* buf = tls.ptsname_buf; in ptsname()
56 int error = ptsname_r(fd, buf, sizeof(tls.ptsname_buf)); in ptsname()
81 bionic_tls& tls = __get_bionic_tls(); in ttyname() local
82 char* buf = tls.ttyname_buf; in ttyname()
83 int error = ttyname_r(fd, buf, sizeof(tls.ttyname_buf)); in ttyname()
Dmntent.cpp35 auto& tls = __get_bionic_tls(); in getmntent() local
36 return getmntent_r(fp, &tls.mntent_buf, tls.mntent_strings, sizeof(tls.mntent_strings)); in getmntent()
Dpthread_internal.h103 void* tls[BIONIC_TLS_SLOTS]; variable
129 void** tls = __get_tls(); in __get_thread() local
130 if (__predict_true(tls)) { in __get_thread()
131 return reinterpret_cast<pthread_internal_t*>(tls[TLS_SLOT_THREAD_ID]); in __get_thread()
Dpthread_create.cpp55 thread->tls[TLS_SLOT_SELF] = thread->tls; in __init_tls()
56 thread->tls[TLS_SLOT_THREAD_ID] = thread; in __init_tls()
84 thread->tls[TLS_SLOT_STACK_GUARD] = reinterpret_cast<void*>(__stack_chk_guard); in __init_thread_stack_guard()
274 void* tls = reinterpret_cast<void*>(thread->tls); in pthread_create() local
279 __init_user_desc(&tls_descriptor, false, tls); in pthread_create()
280 tls = &tls_descriptor; in pthread_create()
282 int rc = clone(__pthread_start, child_stack, flags, thread, &(thread->tid), tls, &(thread->tid)); in pthread_create()
D__libc_init_main_thread.cpp72 __set_tls(main_thread.tls); in __libc_init_main_thread()
101 main_thread.tls[TLS_SLOT_BIONIC_PREINIT] = &args; in __libc_init_main_thread()
Dclone.cpp37 extern "C" pid_t __bionic_clone(uint32_t flags, void* child_stack, int* parent_tid, void* tls, int*…
/bionic/libc/arch-arm64/bionic/
D__set_tls.c31 __LIBC_HIDDEN__ void __set_tls(void* tls) { in __set_tls() argument
32 asm("msr tpidr_el0, %0" : : "r" (tls)); in __set_tls()
/bionic/libc/arch-x86/bionic/
D__bionic_clone.S19 movl 28(%esp), %esi # tls