about summary refs log tree commit diff stats
path: root/src/wrapped32/wrappedlibpthread.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-08-30 15:59:07 +0200
committerptitSeb <sebastien.chev@gmail.com>2024-08-30 15:59:07 +0200
commit7ecdced4860d12b8f484e0b222d08192be4a56eb (patch)
tree99bc64ddda5255926398855eebf8ce248913296b /src/wrapped32/wrappedlibpthread.c
parent13b72df762476b13a6bc6e1cb1e7fa622068224d (diff)
downloadbox64-7ecdced4860d12b8f484e0b222d08192be4a56eb.tar.gz
box64-7ecdced4860d12b8f484e0b222d08192be4a56eb.zip
[BOX32] Added more 32bits wrapped function and fixes
Diffstat (limited to 'src/wrapped32/wrappedlibpthread.c')
-rwxr-xr-xsrc/wrapped32/wrappedlibpthread.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/wrapped32/wrappedlibpthread.c b/src/wrapped32/wrappedlibpthread.c
index d7881f6b..5c3be2e4 100755
--- a/src/wrapped32/wrappedlibpthread.c
+++ b/src/wrapped32/wrappedlibpthread.c
@@ -20,39 +20,6 @@
 static const char* libpthreadName = "libpthread.so.0";
 #define LIBNAME libpthread
 
-typedef int (*iFpp_t)(void*, void*);
-typedef int (*iFppu_t)(void*, void*, uint32_t);
-EXPORT int my32_pthread_setname_np(x64emu_t* emu, void* t, void* n)
-{
-    static void* f = NULL;
-    static int need_load = 1;
-    if(need_load) {
-        library_t* lib = GetLibInternal(libpthreadName);
-        if(!lib) return 0;
-        f = dlsym(lib->w.lib, "pthread_setname_np");
-        need_load = 0;
-    }
-    if(f)
-        return ((iFpp_t)f)(t, n);
-    return 0;
-}
-EXPORT int my32_pthread_getname_np(x64emu_t* emu, void* t, void* n, uint32_t s)
-{
-    static void* f = NULL;
-    static int need_load = 1;
-    if(need_load) {
-        library_t* lib = GetLibInternal(libpthreadName);
-        if(!lib) return 0;
-        f = dlsym(lib->w.lib, "pthread_getname_np");
-        need_load = 0;
-    }
-    if(f)
-        return ((iFppu_t)f)(t, n, s);
-    else 
-        strncpy((char*)n, "dummy", s);
-    return 0;
-}
-
 EXPORT int my32_pthread_rwlock_wrlock(pthread_rwlock_t *rwlock)
 {
     return pthread_rwlock_wrlock(rwlock);