diff options
| author | Jeff Brown <jeffbrown@google.com> | 2011-11-18 15:17:07 -0800 |
|---|---|---|
| committer | Jeff Brown <jeffbrown@google.com> | 2011-11-18 16:40:48 -0800 |
| commit | 10c8ce59a40a1d8ae8f49145eca365b364aabe58 (patch) | |
| tree | 5157c1d270cda4e2933a0e7fedf8b5ed6b920f96 /libc/include/sys/linux-syscalls.h | |
| parent | 4b469eae40368913b2841b390dada6c58296c602 (diff) | |
| download | bionic-10c8ce59a40a1d8ae8f49145eca365b364aabe58.zip bionic-10c8ce59a40a1d8ae8f49145eca365b364aabe58.tar.gz bionic-10c8ce59a40a1d8ae8f49145eca365b364aabe58.tar.bz2 | |
Add tgkill syscall.
Use tgkill instead of tkill to implement pthread_kill.
This is safer in the event that the thread has already terminated
and its id has been reused by a different process.
Change-Id: Ied715e11d7eadeceead79f33db5e2b5722954ac9
Diffstat (limited to 'libc/include/sys/linux-syscalls.h')
| -rw-r--r-- | libc/include/sys/linux-syscalls.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/include/sys/linux-syscalls.h b/libc/include/sys/linux-syscalls.h index 7b74a4b..930508a 100644 --- a/libc/include/sys/linux-syscalls.h +++ b/libc/include/sys/linux-syscalls.h @@ -198,6 +198,7 @@ #define __NR_waitid (__NR_SYSCALL_BASE + 284) #define __NR_kill (__NR_SYSCALL_BASE + 37) #define __NR_tkill (__NR_SYSCALL_BASE + 238) +#define __NR_tgkill (__NR_SYSCALL_BASE + 270) #define __NR_set_thread_area (__NR_SYSCALL_BASE + 243) #define __NR_openat (__NR_SYSCALL_BASE + 295) #define __NR_madvise (__NR_SYSCALL_BASE + 219) @@ -242,6 +243,7 @@ #define __NR_waitid (__NR_SYSCALL_BASE + 284) #define __NR_kill (__NR_SYSCALL_BASE + 37) #define __NR_tkill (__NR_SYSCALL_BASE + 238) +#define __NR_tgkill (__NR_SYSCALL_BASE + 270) #define __NR_set_thread_area (__NR_SYSCALL_BASE + 243) #define __NR_vfork (__NR_SYSCALL_BASE + 190) #define __NR_openat (__NR_SYSCALL_BASE + 295) |
