From a36c9bfe73debeac10b87800020f23cb0d31da09 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Fri, 26 Mar 2021 22:55:08 +0100 Subject: A few more libc wrapped functions --- src/wrapped/wrappedlibc.c | 1 + src/wrapped/wrappedlibc_private.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c index dd97a144..529a2f70 100755 --- a/src/wrapped/wrappedlibc.c +++ b/src/wrapped/wrappedlibc.c @@ -772,6 +772,7 @@ EXPORT int my___isoc99_fscanf(x64emu_t* emu, void* stream, void* fmt, uint64_t* return vfscanf(stream, fmt, VARARGS); } +EXPORT int my_fscanf(x64emu_t* emu, void* stream, void* fmt, uint64_t* b) __attribute__((alias("my___isoc99_fscanf"))); EXPORT int my___isoc99_sscanf(x64emu_t* emu, void* stream, void* fmt, uint64_t* b) { diff --git a/src/wrapped/wrappedlibc_private.h b/src/wrapped/wrappedlibc_private.h index 31566a19..f8b93a1e 100755 --- a/src/wrapped/wrappedlibc_private.h +++ b/src/wrapped/wrappedlibc_private.h @@ -409,7 +409,7 @@ GO(freopen64, pFppp) //GOW(frexp, //GOW(frexpf, //GOW(frexpl, -//GO(fscanf, +GOM(fscanf, iFEppV) GO(fseek, iFpli) GOW(fseeko, iFpli) GO(__fseeko64, iFpIi) @@ -606,7 +606,7 @@ GOW(getrusage, iFip) //GO(getsgnam, //GO(getsgnam_r, //GO(getsid, -//GOW(getsockname, +GOW(getsockname, iFipp) GOW(getsockopt, iFiiipp) //GO(getsourcefilter, //GO(getspent, -- cgit 1.4.1