diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-10-03 12:26:38 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-10-03 12:26:38 +0200 |
| commit | e2492a142613caeda4e85b9d9762e0697aacc9de (patch) | |
| tree | dbe8d2c41a57afcf9a5a847ee9a537f52ee16229 /src/wrapped32/generated | |
| parent | f750391c2eec3e22a38714057333c1ba9830babc (diff) | |
| download | box64-e2492a142613caeda4e85b9d9762e0697aacc9de.tar.gz box64-e2492a142613caeda4e85b9d9762e0697aacc9de.zip | |
[BOX32][WRAPPER] Added full wrapped support for 32bits libudev0 and libudev1
Diffstat (limited to 'src/wrapped32/generated')
| -rw-r--r-- | src/wrapped32/generated/functions_list.txt | 7 | ||||
| -rw-r--r-- | src/wrapped32/generated/wrappedudev0defs32.h | 8 | ||||
| -rw-r--r-- | src/wrapped32/generated/wrappedudev0types32.h | 17 | ||||
| -rw-r--r-- | src/wrapped32/generated/wrappedudev0undefs32.h | 8 | ||||
| -rw-r--r-- | src/wrapped32/generated/wrappedudev1defs32.h | 8 | ||||
| -rw-r--r-- | src/wrapped32/generated/wrappedudev1types32.h | 19 | ||||
| -rw-r--r-- | src/wrapped32/generated/wrappedudev1undefs32.h | 8 | ||||
| -rw-r--r-- | src/wrapped32/generated/wrapper32.c | 6 | ||||
| -rw-r--r-- | src/wrapped32/generated/wrapper32.h | 3 |
9 files changed, 84 insertions, 0 deletions
diff --git a/src/wrapped32/generated/functions_list.txt b/src/wrapped32/generated/functions_list.txt index 5ded8f65..e2c60905 100644 --- a/src/wrapped32/generated/functions_list.txt +++ b/src/wrapped32/generated/functions_list.txt @@ -142,6 +142,7 @@ #() iFua -> iFua #() iFpi -> iFpi #() iFpu -> iFpu +#() iFpU -> iFpU #() iFpl -> iFpl #() iFpL -> iFpL #() iFpp -> iFpp @@ -347,6 +348,7 @@ #() iFpuC -> iFpuC #() iFpuu -> iFpuu #() iFpuU -> iFpuU +#() iFpUU -> iFpUU #() iFpfu -> iFpfu #() iFpLi -> iFpLi #() iFpLp -> iFpLp @@ -415,6 +417,7 @@ #() pFupi -> pFupi #() pFupp -> pFupp #() pFLpi -> pFLpi +#() pFpcU -> pFpcU #() pFpii -> pFpii #() pFpiu -> pFpiu #() pFpiL -> pFpiL @@ -1804,3 +1807,7 @@ wrappedtcmallocminimal: - mmap - pFpLiiiI: - mmap64 +wrappedudev0: +wrappedudev1: +- vFpp: + - udev_set_log_fn diff --git a/src/wrapped32/generated/wrappedudev0defs32.h b/src/wrapped32/generated/wrappedudev0defs32.h new file mode 100644 index 00000000..da982e11 --- /dev/null +++ b/src/wrapped32/generated/wrappedudev0defs32.h @@ -0,0 +1,8 @@ +/********************************************************************* + * File automatically generated by rebuild_wrappers_32.py (v0.0.2.2) * + *********************************************************************/ +#ifndef __wrappedudev0DEFS32_H_ +#define __wrappedudev0DEFS32_H_ + + +#endif // __wrappedudev0DEFS32_H_ diff --git a/src/wrapped32/generated/wrappedudev0types32.h b/src/wrapped32/generated/wrappedudev0types32.h new file mode 100644 index 00000000..e5c033bb --- /dev/null +++ b/src/wrapped32/generated/wrappedudev0types32.h @@ -0,0 +1,17 @@ +/********************************************************************* + * File automatically generated by rebuild_wrappers_32.py (v0.0.2.2) * + *********************************************************************/ +#ifndef __wrappedudev0TYPES32_H_ +#define __wrappedudev0TYPES32_H_ + +#ifndef LIBNAME +#error You should only #include this file inside a wrapped*.c file +#endif +#ifndef ADDED_FUNCTIONS +#define ADDED_FUNCTIONS() +#endif + + +#define SUPER() ADDED_FUNCTIONS() + +#endif // __wrappedudev0TYPES32_H_ diff --git a/src/wrapped32/generated/wrappedudev0undefs32.h b/src/wrapped32/generated/wrappedudev0undefs32.h new file mode 100644 index 00000000..b14de87d --- /dev/null +++ b/src/wrapped32/generated/wrappedudev0undefs32.h @@ -0,0 +1,8 @@ +/********************************************************************* + * File automatically generated by rebuild_wrappers_32.py (v0.0.2.2) * + *********************************************************************/ +#ifndef __wrappedudev0UNDEFS32_H_ +#define __wrappedudev0UNDEFS32_H_ + + +#endif // __wrappedudev0UNDEFS32_H_ diff --git a/src/wrapped32/generated/wrappedudev1defs32.h b/src/wrapped32/generated/wrappedudev1defs32.h new file mode 100644 index 00000000..065f83e3 --- /dev/null +++ b/src/wrapped32/generated/wrappedudev1defs32.h @@ -0,0 +1,8 @@ +/********************************************************************* + * File automatically generated by rebuild_wrappers_32.py (v0.0.2.2) * + *********************************************************************/ +#ifndef __wrappedudev1DEFS32_H_ +#define __wrappedudev1DEFS32_H_ + + +#endif // __wrappedudev1DEFS32_H_ diff --git a/src/wrapped32/generated/wrappedudev1types32.h b/src/wrapped32/generated/wrappedudev1types32.h new file mode 100644 index 00000000..774e668a --- /dev/null +++ b/src/wrapped32/generated/wrappedudev1types32.h @@ -0,0 +1,19 @@ +/********************************************************************* + * File automatically generated by rebuild_wrappers_32.py (v0.0.2.2) * + *********************************************************************/ +#ifndef __wrappedudev1TYPES32_H_ +#define __wrappedudev1TYPES32_H_ + +#ifndef LIBNAME +#error You should only #include this file inside a wrapped*.c file +#endif +#ifndef ADDED_FUNCTIONS +#define ADDED_FUNCTIONS() +#endif + +typedef void (*vFpp_t)(void*, void*); + +#define SUPER() ADDED_FUNCTIONS() \ + GO(udev_set_log_fn, vFpp_t) + +#endif // __wrappedudev1TYPES32_H_ diff --git a/src/wrapped32/generated/wrappedudev1undefs32.h b/src/wrapped32/generated/wrappedudev1undefs32.h new file mode 100644 index 00000000..7e3d7433 --- /dev/null +++ b/src/wrapped32/generated/wrappedudev1undefs32.h @@ -0,0 +1,8 @@ +/********************************************************************* + * File automatically generated by rebuild_wrappers_32.py (v0.0.2.2) * + *********************************************************************/ +#ifndef __wrappedudev1UNDEFS32_H_ +#define __wrappedudev1UNDEFS32_H_ + + +#endif // __wrappedudev1UNDEFS32_H_ diff --git a/src/wrapped32/generated/wrapper32.c b/src/wrapped32/generated/wrapper32.c index 462c6319..8d84f2cd 100644 --- a/src/wrapped32/generated/wrapper32.c +++ b/src/wrapped32/generated/wrapper32.c @@ -232,6 +232,7 @@ typedef int32_t (*iFup_t)(uint32_t, void*); typedef int32_t (*iFua_t)(uint32_t, void*); typedef int32_t (*iFpi_t)(void*, int32_t); typedef int32_t (*iFpu_t)(void*, uint32_t); +typedef int32_t (*iFpU_t)(void*, uint64_t); typedef int32_t (*iFpl_t)(void*, intptr_t); typedef int32_t (*iFpL_t)(void*, uintptr_t); typedef int32_t (*iFpp_t)(void*, void*); @@ -437,6 +438,7 @@ typedef int32_t (*iFpip_t)(void*, int32_t, void*); typedef int32_t (*iFpuC_t)(void*, uint32_t, uint8_t); typedef int32_t (*iFpuu_t)(void*, uint32_t, uint32_t); typedef int32_t (*iFpuU_t)(void*, uint32_t, uint64_t); +typedef int32_t (*iFpUU_t)(void*, uint64_t, uint64_t); typedef int32_t (*iFpfu_t)(void*, float, uint32_t); typedef int32_t (*iFpLi_t)(void*, uintptr_t, int32_t); typedef int32_t (*iFpLp_t)(void*, uintptr_t, void*); @@ -505,6 +507,7 @@ typedef void* (*pFulu_t)(uint32_t, intptr_t, uint32_t); typedef void* (*pFupi_t)(uint32_t, void*, int32_t); typedef void* (*pFupp_t)(uint32_t, void*, void*); typedef void* (*pFLpi_t)(uintptr_t, void*, int32_t); +typedef void* (*pFpcU_t)(void*, int8_t, uint64_t); typedef void* (*pFpii_t)(void*, int32_t, int32_t); typedef void* (*pFpiu_t)(void*, int32_t, uint32_t); typedef void* (*pFpiL_t)(void*, int32_t, uintptr_t); @@ -1338,6 +1341,7 @@ void iFup_32(x64emu_t *emu, uintptr_t fcn) { iFup_t fn = (iFup_t)fcn; R_EAX = fn void iFua_32(x64emu_t *emu, uintptr_t fcn) { iFua_t fn = (iFua_t)fcn; R_EAX = fn(from_ptri(uint32_t, R_ESP + 4), from_locale(from_ptri(ptr_t, R_ESP + 8))); } void iFpi_32(x64emu_t *emu, uintptr_t fcn) { iFpi_t fn = (iFpi_t)fcn; R_EAX = fn(from_ptriv(R_ESP + 4), from_ptri(int32_t, R_ESP + 8)); } void iFpu_32(x64emu_t *emu, uintptr_t fcn) { iFpu_t fn = (iFpu_t)fcn; R_EAX = fn(from_ptriv(R_ESP + 4), from_ptri(uint32_t, R_ESP + 8)); } +void iFpU_32(x64emu_t *emu, uintptr_t fcn) { iFpU_t fn = (iFpU_t)fcn; R_EAX = fn(from_ptriv(R_ESP + 4), from_ptri(uint64_t, R_ESP + 8)); } void iFpl_32(x64emu_t *emu, uintptr_t fcn) { iFpl_t fn = (iFpl_t)fcn; R_EAX = fn(from_ptriv(R_ESP + 4), to_long(from_ptri(long_t, R_ESP + 8))); } void iFpL_32(x64emu_t *emu, uintptr_t fcn) { iFpL_t fn = (iFpL_t)fcn; R_EAX = fn(from_ptriv(R_ESP + 4), to_ulong(from_ptri(ulong_t, R_ESP + 8))); } void iFpp_32(x64emu_t *emu, uintptr_t fcn) { iFpp_t fn = (iFpp_t)fcn; R_EAX = fn(from_ptriv(R_ESP + 4), from_ptriv(R_ESP + 8)); } @@ -1543,6 +1547,7 @@ void iFpip_32(x64emu_t *emu, uintptr_t fcn) { iFpip_t fn = (iFpip_t)fcn; R_EAX = void iFpuC_32(x64emu_t *emu, uintptr_t fcn) { iFpuC_t fn = (iFpuC_t)fcn; R_EAX = fn(from_ptriv(R_ESP + 4), from_ptri(uint32_t, R_ESP + 8), from_ptri(uint8_t, R_ESP + 12)); } void iFpuu_32(x64emu_t *emu, uintptr_t fcn) { iFpuu_t fn = (iFpuu_t)fcn; R_EAX = fn(from_ptriv(R_ESP + 4), from_ptri(uint32_t, R_ESP + 8), from_ptri(uint32_t, R_ESP + 12)); } void iFpuU_32(x64emu_t *emu, uintptr_t fcn) { iFpuU_t fn = (iFpuU_t)fcn; R_EAX = fn(from_ptriv(R_ESP + 4), from_ptri(uint32_t, R_ESP + 8), from_ptri(uint64_t, R_ESP + 12)); } +void iFpUU_32(x64emu_t *emu, uintptr_t fcn) { iFpUU_t fn = (iFpUU_t)fcn; R_EAX = fn(from_ptriv(R_ESP + 4), from_ptri(uint64_t, R_ESP + 8), from_ptri(uint64_t, R_ESP + 16)); } void iFpfu_32(x64emu_t *emu, uintptr_t fcn) { iFpfu_t fn = (iFpfu_t)fcn; R_EAX = fn(from_ptriv(R_ESP + 4), from_ptri(float, R_ESP + 8), from_ptri(uint32_t, R_ESP + 12)); } void iFpLi_32(x64emu_t *emu, uintptr_t fcn) { iFpLi_t fn = (iFpLi_t)fcn; R_EAX = fn(from_ptriv(R_ESP + 4), to_ulong(from_ptri(ulong_t, R_ESP + 8)), from_ptri(int32_t, R_ESP + 12)); } void iFpLp_32(x64emu_t *emu, uintptr_t fcn) { iFpLp_t fn = (iFpLp_t)fcn; R_EAX = fn(from_ptriv(R_ESP + 4), to_ulong(from_ptri(ulong_t, R_ESP + 8)), from_ptriv(R_ESP + 12)); } @@ -1611,6 +1616,7 @@ void pFulu_32(x64emu_t *emu, uintptr_t fcn) { pFulu_t fn = (pFulu_t)fcn; R_EAX = void pFupi_32(x64emu_t *emu, uintptr_t fcn) { pFupi_t fn = (pFupi_t)fcn; R_EAX = to_ptrv(fn(from_ptri(uint32_t, R_ESP + 4), from_ptriv(R_ESP + 8), from_ptri(int32_t, R_ESP + 12))); } void pFupp_32(x64emu_t *emu, uintptr_t fcn) { pFupp_t fn = (pFupp_t)fcn; R_EAX = to_ptrv(fn(from_ptri(uint32_t, R_ESP + 4), from_ptriv(R_ESP + 8), from_ptriv(R_ESP + 12))); } void pFLpi_32(x64emu_t *emu, uintptr_t fcn) { pFLpi_t fn = (pFLpi_t)fcn; R_EAX = to_ptrv(fn(to_ulong(from_ptri(ulong_t, R_ESP + 4)), from_ptriv(R_ESP + 8), from_ptri(int32_t, R_ESP + 12))); } +void pFpcU_32(x64emu_t *emu, uintptr_t fcn) { pFpcU_t fn = (pFpcU_t)fcn; R_EAX = to_ptrv(fn(from_ptriv(R_ESP + 4), from_ptri(int8_t, R_ESP + 8), from_ptri(uint64_t, R_ESP + 12))); } void pFpii_32(x64emu_t *emu, uintptr_t fcn) { pFpii_t fn = (pFpii_t)fcn; R_EAX = to_ptrv(fn(from_ptriv(R_ESP + 4), from_ptri(int32_t, R_ESP + 8), from_ptri(int32_t, R_ESP + 12))); } void pFpiu_32(x64emu_t *emu, uintptr_t fcn) { pFpiu_t fn = (pFpiu_t)fcn; R_EAX = to_ptrv(fn(from_ptriv(R_ESP + 4), from_ptri(int32_t, R_ESP + 8), from_ptri(uint32_t, R_ESP + 12))); } void pFpiL_32(x64emu_t *emu, uintptr_t fcn) { pFpiL_t fn = (pFpiL_t)fcn; R_EAX = to_ptrv(fn(from_ptriv(R_ESP + 4), from_ptri(int32_t, R_ESP + 8), to_ulong(from_ptri(ulong_t, R_ESP + 12)))); } diff --git a/src/wrapped32/generated/wrapper32.h b/src/wrapped32/generated/wrapper32.h index a74460da..07e5e0f0 100644 --- a/src/wrapped32/generated/wrapper32.h +++ b/src/wrapped32/generated/wrapper32.h @@ -183,6 +183,7 @@ void iFup_32(x64emu_t *emu, uintptr_t fnc); void iFua_32(x64emu_t *emu, uintptr_t fnc); void iFpi_32(x64emu_t *emu, uintptr_t fnc); void iFpu_32(x64emu_t *emu, uintptr_t fnc); +void iFpU_32(x64emu_t *emu, uintptr_t fnc); void iFpl_32(x64emu_t *emu, uintptr_t fnc); void iFpL_32(x64emu_t *emu, uintptr_t fnc); void iFpp_32(x64emu_t *emu, uintptr_t fnc); @@ -388,6 +389,7 @@ void iFpip_32(x64emu_t *emu, uintptr_t fnc); void iFpuC_32(x64emu_t *emu, uintptr_t fnc); void iFpuu_32(x64emu_t *emu, uintptr_t fnc); void iFpuU_32(x64emu_t *emu, uintptr_t fnc); +void iFpUU_32(x64emu_t *emu, uintptr_t fnc); void iFpfu_32(x64emu_t *emu, uintptr_t fnc); void iFpLi_32(x64emu_t *emu, uintptr_t fnc); void iFpLp_32(x64emu_t *emu, uintptr_t fnc); @@ -456,6 +458,7 @@ void pFulu_32(x64emu_t *emu, uintptr_t fnc); void pFupi_32(x64emu_t *emu, uintptr_t fnc); void pFupp_32(x64emu_t *emu, uintptr_t fnc); void pFLpi_32(x64emu_t *emu, uintptr_t fnc); +void pFpcU_32(x64emu_t *emu, uintptr_t fnc); void pFpii_32(x64emu_t *emu, uintptr_t fnc); void pFpiu_32(x64emu_t *emu, uintptr_t fnc); void pFpiL_32(x64emu_t *emu, uintptr_t fnc); |