diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2023-02-04 11:17:34 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2023-02-04 11:17:34 +0100 |
| commit | 4038ad5ce5c4d5702d229230697e4246991cbd59 (patch) | |
| tree | 3cb8de17f66528598bbe8799eca9ebb0c4697d31 /src/wrapped/wrappedlibc.c | |
| parent | 973864e045c2080425619d47538db3455e4a7435 (diff) | |
| download | box64-4038ad5ce5c4d5702d229230697e4246991cbd59.tar.gz box64-4038ad5ce5c4d5702d229230697e4246991cbd59.zip | |
Added fts64_XXX wrapped functions to libc (for #503)
Diffstat (limited to 'src/wrapped/wrappedlibc.c')
| -rwxr-xr-x | src/wrapped/wrappedlibc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c index 2f25b9ae..8ee59a30 100755 --- a/src/wrapped/wrappedlibc.c +++ b/src/wrapped/wrappedlibc.c @@ -90,10 +90,12 @@ typedef int32_t (*iFipiI_t)(int32_t, void*, int32_t, int64_t); typedef int32_t (*iFipuup_t)(int32_t, void*, uint32_t, uint32_t, void*); typedef int32_t (*iFiiV_t)(int32_t, int32_t, ...); typedef void* (*pFp_t)(void*); +typedef void* (*pFpip_t)(void*, int, void*); #define SUPER() \ GO(_ITM_addUserCommitAction, iFpup_t) \ GO(_IO_file_stat, iFpp_t) \ + GO(fts64_open, pFpip_t) \ GO(register_printf_specifier, iFipp_t) \ GO(register_printf_type, iFp_t) @@ -1278,6 +1280,12 @@ EXPORT void* my_fts_open(x64emu_t* emu, void* path, int options, void* c) return fts_open(path, options, findcompareFct(c)); } +EXPORT void* my_fts64_open(x64emu_t* emu, void* path, int options, void* c) +{ + (void)emu; + return my->fts64_open(path, options, findcompareFct(c)); +} + #if 0 struct i386_dirent { uint32_t d_ino; |