4 library that provide some missing posix threading function to the bionic libc.
6 while i was porting tens of linux projects under the dSploit android app i found that
7 the bionic libc does not provide some POSIX thread functions like `pthread_cancel`, `pthread_testcancel` and so on.
9 so, i developed this library, which exploit some unused bits in the bionic thread structure.
11 there is many thing to develop, like support for deferred cancels, but basic thread cancellation works :smiley:
13 i hope that you find this library useful :wink:
20 Project is licensed under GNU LGPL v2.0 (Library General Public License)
22 pt-internal.h - is from The Android Open Source Project and licensed under Apache License, Version 2.0
29 $ export PATH="$PATH:/path/to/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin"
30 $ target_host=aarch64-linux-android
31 $ export AR=${target_host}-ar
32 $ export AS=${target_host}-as
33 $ export CC=${target_host}21-clang
34 $ export CXX=${target_host}21-clang++
35 $ export LD=${target_host}-ld
36 $ export STRIP=${target_host}-strip
37 $ export CFLAGS="-fPIE -fPIC"
38 $ export LDFLAGS="-pie"
39 $ ./configure --host=${target_host}