Loading...
--- dyld/dyld-1066.8/libdyld/LibSystemHelpers.cpp
+++ dyld/dyld-960/libdyld/LibSystemHelpers.cpp
@@ -37,9 +37,6 @@
#include <dlfcn_private.h>
#include <libc_private.h>
#include <ptrauth.h>
-#include <pthread/pthread.h>
-#include <pthread/tsd_private.h>
-
#if !TARGET_OS_DRIVERKIT
#include <vproc_priv.h>
#endif
@@ -59,13 +56,12 @@
// implemented in assembly
extern "C" void* tlv_get_addr(dyld3::MachOAnalyzer::TLV_Thunk*);
-uint8_t dyld_process_has_objc_patches = 0;
namespace dyld4 {
uintptr_t LibSystemHelpers::version() const
{
- return 6;
+ return 2;
}
void* LibSystemHelpers::malloc(size_t size) const
@@ -97,18 +93,6 @@
int LibSystemHelpers::pthread_key_create_free(pthread_key_t* key) const
{
return ::pthread_key_create(key, &::free);
-}
-
-int LibSystemHelpers::pthread_key_init_free(int key) const
-{
- return ::pthread_key_init_np(key, &::free);
-}
-
-void LibSystemHelpers::run_async(void* (*func)(void*), void* context) const
-{
- pthread_t workerThread;
- pthread_create(&workerThread, NULL, func, context);
- pthread_detach(workerThread);
}
static void finalizeListTLV_thunk(void* list)
@@ -196,22 +180,5 @@
::os_unfair_recursive_lock_unlock_forked_child(lock);
}
-// Added in version 3
-
-void LibSystemHelpers::setDyldPatchedObjCClasses() const
-{
- dyld_process_has_objc_patches = 1;
-}
-
-// Added in version 6
-void LibSystemHelpers::os_unfair_lock_lock_with_options(os_unfair_lock_t lock, os_unfair_lock_options_t options) const
-{
- ::os_unfair_lock_lock_with_options(lock, options);
-}
-void LibSystemHelpers::os_unfair_lock_unlock(os_unfair_lock_t lock) const
-{
- ::os_unfair_lock_unlock(lock);
-}
-
} // namespace dyld4