summaryrefslogtreecommitdiffstats
path: root/libc/arch-x86
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-02-14 18:59:37 -0800
committerElliott Hughes <enh@google.com>2013-02-15 12:08:59 -0800
commit40eabe24e4e3ae8ebe437f1f4e43cf39cbba2e9e (patch)
tree19eef7fcbba616a52bd37f4c83ece3e918b25445 /libc/arch-x86
parent3e3b239d2be0c5a92e91385f4f10b8f7da8d2837 (diff)
downloadbionic-40eabe24e4e3ae8ebe437f1f4e43cf39cbba2e9e.zip
bionic-40eabe24e4e3ae8ebe437f1f4e43cf39cbba2e9e.tar.gz
bionic-40eabe24e4e3ae8ebe437f1f4e43cf39cbba2e9e.tar.bz2
Fix the pthread_setname_np test.
Fix the pthread_setname_np test to take into account that emulator kernels are so old that they don't support setting the name of other threads. The CLONE_DETACHED thread is obsolete since 2.5 kernels. Rename kernel_id to tid. Fix the signature of __pthread_clone. Clean up the clone and pthread_setname_np implementations slightly. Change-Id: I16c2ff8845b67530544bbda9aa6618058603066d
Diffstat (limited to 'libc/arch-x86')
-rw-r--r--libc/arch-x86/bionic/clone.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/arch-x86/bionic/clone.S b/libc/arch-x86/bionic/clone.S
index e7bc3ee..80e3c75 100644
--- a/libc/arch-x86/bionic/clone.S
+++ b/libc/arch-x86/bionic/clone.S
@@ -1,7 +1,7 @@
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
-// int __pthread_clone(int (*fn)(void*), void* tls, int flags, void* arg);
+// int __pthread_clone(void* (*fn)(void*), void* tls, int flags, void* arg);
ENTRY(__pthread_clone)
pushl %ebx
pushl %ecx