diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-03-26 12:42:05 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-03-26 12:42:05 +0100 |
| commit | b6faad0354f0ac133c2e4aecf502d87b5c162d30 (patch) | |
| tree | 85c7e89e09b7debe29bfdb4bd42361a6349e85a9 | |
| parent | 8aee3f4185b7949edddd67964b1c96fbede0b931 (diff) | |
| download | box64-b6faad0354f0ac133c2e4aecf502d87b5c162d30.tar.gz box64-b6faad0354f0ac133c2e4aecf502d87b5c162d30.zip | |
Added even more libc wrapped functions
| -rw-r--r-- | src/wrapped/generated/functions_list.txt | 1 | ||||
| -rw-r--r-- | src/wrapped/generated/wrapper.c | 2 | ||||
| -rw-r--r-- | src/wrapped/generated/wrapper.h | 1 | ||||
| -rwxr-xr-x | src/wrapped/wrappedlibc_private.h | 9 |
4 files changed, 9 insertions, 4 deletions
diff --git a/src/wrapped/generated/functions_list.txt b/src/wrapped/generated/functions_list.txt index e1d2be89..e5357834 100644 --- a/src/wrapped/generated/functions_list.txt +++ b/src/wrapped/generated/functions_list.txt @@ -451,6 +451,7 @@ #() iFplip #() iFpLpi #() iFpLpL +#() iFpLpp #() iFppii #() iFppiu #() iFppiL diff --git a/src/wrapped/generated/wrapper.c b/src/wrapped/generated/wrapper.c index 37cdb611..36a3f751 100644 --- a/src/wrapped/generated/wrapper.c +++ b/src/wrapped/generated/wrapper.c @@ -484,6 +484,7 @@ typedef int32_t (*iFpupV_t)(void*, uint32_t, void*, void*); typedef int32_t (*iFplip_t)(void*, intptr_t, int32_t, void*); typedef int32_t (*iFpLpi_t)(void*, uintptr_t, void*, int32_t); typedef int32_t (*iFpLpL_t)(void*, uintptr_t, void*, uintptr_t); +typedef int32_t (*iFpLpp_t)(void*, uintptr_t, void*, void*); typedef int32_t (*iFppii_t)(void*, void*, int32_t, int32_t); typedef int32_t (*iFppiu_t)(void*, void*, int32_t, uint32_t); typedef int32_t (*iFppiL_t)(void*, void*, int32_t, uintptr_t); @@ -1546,6 +1547,7 @@ void iFpupV(x64emu_t *emu, uintptr_t fcn) { iFpupV_t fn = (iFpupV_t)fcn; R_RAX=f void iFplip(x64emu_t *emu, uintptr_t fcn) { iFplip_t fn = (iFplip_t)fcn; R_RAX=fn((void*)R_RDI, (intptr_t)R_RSI, (int32_t)R_RDX, (void*)R_RCX); } void iFpLpi(x64emu_t *emu, uintptr_t fcn) { iFpLpi_t fn = (iFpLpi_t)fcn; R_RAX=fn((void*)R_RDI, (uintptr_t)R_RSI, (void*)R_RDX, (int32_t)R_RCX); } void iFpLpL(x64emu_t *emu, uintptr_t fcn) { iFpLpL_t fn = (iFpLpL_t)fcn; R_RAX=fn((void*)R_RDI, (uintptr_t)R_RSI, (void*)R_RDX, (uintptr_t)R_RCX); } +void iFpLpp(x64emu_t *emu, uintptr_t fcn) { iFpLpp_t fn = (iFpLpp_t)fcn; R_RAX=fn((void*)R_RDI, (uintptr_t)R_RSI, (void*)R_RDX, (void*)R_RCX); } void iFppii(x64emu_t *emu, uintptr_t fcn) { iFppii_t fn = (iFppii_t)fcn; R_RAX=fn((void*)R_RDI, (void*)R_RSI, (int32_t)R_RDX, (int32_t)R_RCX); } void iFppiu(x64emu_t *emu, uintptr_t fcn) { iFppiu_t fn = (iFppiu_t)fcn; R_RAX=fn((void*)R_RDI, (void*)R_RSI, (int32_t)R_RDX, (uint32_t)R_RCX); } void iFppiL(x64emu_t *emu, uintptr_t fcn) { iFppiL_t fn = (iFppiL_t)fcn; R_RAX=fn((void*)R_RDI, (void*)R_RSI, (int32_t)R_RDX, (uintptr_t)R_RCX); } diff --git a/src/wrapped/generated/wrapper.h b/src/wrapped/generated/wrapper.h index 77f46172..df2baba7 100644 --- a/src/wrapped/generated/wrapper.h +++ b/src/wrapped/generated/wrapper.h @@ -481,6 +481,7 @@ void iFpupV(x64emu_t *emu, uintptr_t fnc); void iFplip(x64emu_t *emu, uintptr_t fnc); void iFpLpi(x64emu_t *emu, uintptr_t fnc); void iFpLpL(x64emu_t *emu, uintptr_t fnc); +void iFpLpp(x64emu_t *emu, uintptr_t fnc); void iFppii(x64emu_t *emu, uintptr_t fnc); void iFppiu(x64emu_t *emu, uintptr_t fnc); void iFppiL(x64emu_t *emu, uintptr_t fnc); diff --git a/src/wrapped/wrappedlibc_private.h b/src/wrapped/wrappedlibc_private.h index b6ed586e..e5e8fffe 100755 --- a/src/wrapped/wrappedlibc_private.h +++ b/src/wrapped/wrappedlibc_private.h @@ -3,6 +3,7 @@ #endif //socklen_t is u32 +// typedef unsigned long int nfds_t; //GO(a64l, GO(abort, vFv) @@ -285,7 +286,7 @@ GO(eventfd_write, iFiU) GOM(execlp, iFEpV) //GO(execv, //GOW(execve, -GOM(execvp, iFEp) +GOM(execvp, iFEpp) //GOW(execvpe, GO(_exit, vFi) GO(exit, vFi) @@ -1339,7 +1340,7 @@ GOW(posix_memalign, iFpLL) //GO(posix_spawn_file_actions_init, //GO(posix_spawnp, //GO(posix_spawnp, -//GO(ppoll, +GO(ppoll, iFpLpp) //GO(__ppoll_chk, GOW(prctl, iFiLLLL) GOW(pread, lFipLl) @@ -1578,8 +1579,8 @@ GOM(scandir64, iFEpppp) //weak //GOW(sched_setscheduler, GO(__sched_yield, iFv) GOW(sched_yield, iFv) -//GOW(__secure_getenv, -//GOW(secure_getenv, +GOW(__secure_getenv, pFp) +GOW(secure_getenv, pFp) //GO(seed48, //GOW(seed48_r, GO(seekdir, vFpi) |