diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-03-09 18:37:44 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-03-09 18:37:44 +0100 |
| commit | 93c19dc3f8604ae2a1afe683f3507674e401941e (patch) | |
| tree | 119a84d162cd786170c03279fcef636a87fbb424 /src/wrapped/wrappedlibc.c | |
| parent | a4e53b929ba595ee4f280bdb3dcd74a0be894212 (diff) | |
| download | box64-93c19dc3f8604ae2a1afe683f3507674e401941e.tar.gz box64-93c19dc3f8604ae2a1afe683f3507674e401941e.zip | |
Added kill and killpg wrapped functions
Diffstat (limited to 'src/wrapped/wrappedlibc.c')
| -rwxr-xr-x | src/wrapped/wrappedlibc.c | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c index 0542d999..bae44fbf 100755 --- a/src/wrapped/wrappedlibc.c +++ b/src/wrapped/wrappedlibc.c @@ -821,24 +821,15 @@ EXPORT int my___asprintf_chk(x64emu_t* emu, void* result_ptr, int flags, void* f return vasprintf((char**)result_ptr, (char*)fmt, V); #endif } - -EXPORT int my_vswprintf(x64emu_t* emu, void* buff, uint32_t s, void * fmt, void * b, va_list V) { - #ifndef NOALIGN - // need to align on arm - myStackAlignW((const char*)fmt, (uint32_t*)b, emu->scratch); - PREPARE_VALIST; - void* f = vswprintf; - int r = ((iFpupp_t)f)(buff, s, fmt, VARARGS); - return r; - #else - void* f = vswprintf; - int r = ((iFpupp_t)f)(buff, s, fmt, (uint32_t*)b); +#endif +EXPORT int my_vswprintf(x64emu_t* emu, void* buff, size_t s, void * fmt, x64_va_list_t b) { + CONVERT_VALIST(b); + int r = vswprintf(buff, s, fmt, VARARGS); return r; - #endif } -EXPORT int my___vswprintf(x64emu_t* emu, void* buff, uint32_t s, void * fmt, void * b, va_list V) __attribute__((alias("my_vswprintf"))); -EXPORT int my___vswprintf_chk(x64emu_t* emu, void* buff, uint32_t s, void * fmt, void * b, va_list V) __attribute__((alias("my_vswprintf"))); - +EXPORT int my___vswprintf(x64emu_t* emu, void* buff, size_t s, void * fmt, x64_va_list_t b) __attribute__((alias("my_vswprintf"))); +EXPORT int my___vswprintf_chk(x64emu_t* emu, void* buff, size_t s, void * fmt, x64_va_list_t b) __attribute__((alias("my_vswprintf"))); +#if 0 EXPORT void my_verr(x64emu_t* emu, int eval, void* fmt, void* b) { #ifndef NOALIGN myStackAlignW((const char*)fmt, (uint32_t*)b, emu->scratch); |