about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-03-26 22:55:08 +0100
committerptitSeb <sebastien.chev@gmail.com>2021-03-26 22:55:08 +0100
commita36c9bfe73debeac10b87800020f23cb0d31da09 (patch)
tree8084b4144d5c95b50102d2073a254ef8615ee5bb /src
parenta7119cae7691cbf1ac75d2ab849e3bb89dca79ba (diff)
downloadbox64-a36c9bfe73debeac10b87800020f23cb0d31da09.tar.gz
box64-a36c9bfe73debeac10b87800020f23cb0d31da09.zip
A few more libc wrapped functions
Diffstat (limited to 'src')
-rwxr-xr-xsrc/wrapped/wrappedlibc.c1
-rwxr-xr-xsrc/wrapped/wrappedlibc_private.h4
2 files changed, 3 insertions, 2 deletions
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,