Mis012

Results 96 comments of Mis012

well... musl and glibc both call the loader ld-linux, but they have their own implementations :P and I can't find any POSIX standard for dynamic linkers...

argh... trying to launch angry birds, and it seems this `pthread_mutex_lock` fails... ```C void pthread_mutex_lock_OR_DIE(pthread_mutex_t *param_1) { int iVar1; iVar1 = pthread_mutex_lock(param_1); if (iVar1 == 0) { return; } /*...

oh, just realized that you have a libpthread wrapper... nice LD_PRELOADing it seems to have fixed that

but then it would get loaded instead of glibc's libpthread, which doesn't sound like something that I want... dlopen() from somewhere would probably be an option, but then again I...

well... if I decide that I want to do that, then it would still be cleaner to just do `-lpthread_wrapper`... or even dlopen

``` E/ (21559): Registry load failed because the file seems to be corrupted: Failed to open /home/Mis012/Github_and_other_sources/android_translation_layer_PoC/data/files/fusion.registry with errno 2 (No such file or directory) E/AppDataOutputStream(21559): Failed to synchronize, not...

I'm not at all sure what the wrappers should do though... can't seem to figure it out from looking at the existing ones

```C int bionic_pthread_condattr_destroy(bionic_condattr_t *attr) { assert(attr); int ret = 0; if (IS_MAPPED(attr)) { ret = pthread_condattr_destroy(attr->glibc); munmap(attr->glibc, sizeof(*attr->glibc)); } return ret; } int bionic_pthread_condattr_init(bionic_condattr_t *attr) { *attr = (bionic_condattr_t){0}; attr->glibc...

well, I gave up on the latest version of angry birds, it wanted too much random stuff just to track you... but I've got some 3.x version to work \o/...

I figured it out eventually. I've implemented audio enough for it to work with angry birds, but it seems that the alsa callback API is basically impossible to use for...