diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-03-25 17:02:51 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-03-25 17:02:51 +0100 |
| commit | a701ff87ecb8c74d0a1da2e5b3d00c3ccde91aae (patch) | |
| tree | 03910bfb57e6c155c920b7f61f0dd1248d7911da /src/wrapped/wrappedlibc.c | |
| parent | 6e78bc1726047f5462517d5fd1954fcbe080e1b4 (diff) | |
| download | box64-a701ff87ecb8c74d0a1da2e5b3d00c3ccde91aae.tar.gz box64-a701ff87ecb8c74d0a1da2e5b3d00c3ccde91aae.zip | |
More libc wrapped symbols
Diffstat (limited to 'src/wrapped/wrappedlibc.c')
| -rwxr-xr-x | src/wrapped/wrappedlibc.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c index 21329bef..1662f1bf 100755 --- a/src/wrapped/wrappedlibc.c +++ b/src/wrapped/wrappedlibc.c @@ -758,8 +758,15 @@ EXPORT int my__IO_vfscanf(x64emu_t* emu, void* stream, void* fmt, void* b) __att EXPORT int my___isoc99_vsscanf(x64emu_t* emu, void* stream, void* fmt, void* b) __attribute__((alias("my_vsscanf"))); EXPORT int my___isoc99_vfscanf(x64emu_t* emu, void* stream, void* fmt, void* b) __attribute__((alias("my_vfscanf"))); -EXPORT int my___isoc99_fscanf(x64emu_t* emu, void* stream, void* fmt, void* b) __attribute__((alias("my_vfscanf"))); #endif +EXPORT int my___isoc99_fscanf(x64emu_t* emu, void* stream, void* fmt, uint64_t* b) +{ + myStackAlignScanf(emu, (const char*)fmt, b, emu->scratch, 2); + PREPARE_VALIST; + + return vfscanf(stream, fmt, VARARGS); +} + EXPORT int my___isoc99_sscanf(x64emu_t* emu, void* stream, void* fmt, uint64_t* b) { myStackAlignScanf(emu, (const char*)fmt, b, emu->scratch, 2); |