about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-03-08 21:11:37 +0100
committerptitSeb <sebastien.chev@gmail.com>2021-03-08 21:11:37 +0100
commit7da2c56d0a911272dfe9e3b0e16464eda7af9e7c (patch)
tree21f79bcae4aa0abd21a871f87d41b0710880dcc9 /src
parent13214318124084f52103077a5560ac397cdce2a8 (diff)
downloadbox64-7da2c56d0a911272dfe9e3b0e16464eda7af9e7c.tar.gz
box64-7da2c56d0a911272dfe9e3b0e16464eda7af9e7c.zip
Added a few more libc wrapped libs
Diffstat (limited to 'src')
-rw-r--r--src/wrapped/generated/functions_list.txt1
-rw-r--r--src/wrapped/generated/wrapper.c2
-rw-r--r--src/wrapped/generated/wrapper.h1
-rwxr-xr-xsrc/wrapped/wrappedlibc_private.h6
4 files changed, 7 insertions, 3 deletions
diff --git a/src/wrapped/generated/functions_list.txt b/src/wrapped/generated/functions_list.txt
index 0021ec6b..91103155 100644
--- a/src/wrapped/generated/functions_list.txt
+++ b/src/wrapped/generated/functions_list.txt
@@ -178,6 +178,7 @@
 #() iFEpi
 #() iFEpp
 #() iFEpV
+#() iFiii
 #() iFiip
 #() iFipu
 #() iFipp
diff --git a/src/wrapped/generated/wrapper.c b/src/wrapped/generated/wrapper.c
index e55bd3c8..bb186a80 100644
--- a/src/wrapped/generated/wrapper.c
+++ b/src/wrapped/generated/wrapper.c
@@ -211,6 +211,7 @@ typedef int32_t (*iFEup_t)(x64emu_t*, uint32_t, void*);
 typedef int32_t (*iFEpi_t)(x64emu_t*, void*, int32_t);
 typedef int32_t (*iFEpp_t)(x64emu_t*, void*, void*);
 typedef int32_t (*iFEpV_t)(x64emu_t*, void*, void*);
+typedef int32_t (*iFiii_t)(int32_t, int32_t, int32_t);
 typedef int32_t (*iFiip_t)(int32_t, int32_t, void*);
 typedef int32_t (*iFipu_t)(int32_t, void*, uint32_t);
 typedef int32_t (*iFipp_t)(int32_t, void*, void*);
@@ -1031,6 +1032,7 @@ void iFEup(x64emu_t *emu, uintptr_t fcn) { iFEup_t fn = (iFEup_t)fcn; R_RAX=fn(e
 void iFEpi(x64emu_t *emu, uintptr_t fcn) { iFEpi_t fn = (iFEpi_t)fcn; R_RAX=fn(emu, (void*)R_RDI, (int32_t)R_RSI); }
 void iFEpp(x64emu_t *emu, uintptr_t fcn) { iFEpp_t fn = (iFEpp_t)fcn; R_RAX=fn(emu, (void*)R_RDI, (void*)R_RSI); }
 void iFEpV(x64emu_t *emu, uintptr_t fcn) { iFEpV_t fn = (iFEpV_t)fcn; R_RAX=fn(emu, (void*)R_RDI, (void*)(R_RSP + 8)); }
+void iFiii(x64emu_t *emu, uintptr_t fcn) { iFiii_t fn = (iFiii_t)fcn; R_RAX=fn((int32_t)R_RDI, (int32_t)R_RSI, (int32_t)R_RDX); }
 void iFiip(x64emu_t *emu, uintptr_t fcn) { iFiip_t fn = (iFiip_t)fcn; R_RAX=fn((int32_t)R_RDI, (int32_t)R_RSI, (void*)R_RDX); }
 void iFipu(x64emu_t *emu, uintptr_t fcn) { iFipu_t fn = (iFipu_t)fcn; R_RAX=fn((int32_t)R_RDI, (void*)R_RSI, (uint32_t)R_RDX); }
 void iFipp(x64emu_t *emu, uintptr_t fcn) { iFipp_t fn = (iFipp_t)fcn; R_RAX=fn((int32_t)R_RDI, (void*)R_RSI, (void*)R_RDX); }
diff --git a/src/wrapped/generated/wrapper.h b/src/wrapped/generated/wrapper.h
index 7d0feb6d..48cd8a39 100644
--- a/src/wrapped/generated/wrapper.h
+++ b/src/wrapped/generated/wrapper.h
@@ -208,6 +208,7 @@ void iFEup(x64emu_t *emu, uintptr_t fnc);
 void iFEpi(x64emu_t *emu, uintptr_t fnc);
 void iFEpp(x64emu_t *emu, uintptr_t fnc);
 void iFEpV(x64emu_t *emu, uintptr_t fnc);
+void iFiii(x64emu_t *emu, uintptr_t fnc);
 void iFiip(x64emu_t *emu, uintptr_t fnc);
 void iFipu(x64emu_t *emu, uintptr_t fnc);
 void iFipp(x64emu_t *emu, uintptr_t fnc);
diff --git a/src/wrapped/wrappedlibc_private.h b/src/wrapped/wrappedlibc_private.h
index 4a1da239..9f6b4fa3 100755
--- a/src/wrapped/wrappedlibc_private.h
+++ b/src/wrapped/wrappedlibc_private.h
@@ -259,7 +259,7 @@ GOM(__cxa_finalize, vFEp)
 //GOW(erand48_r, 
 //GO(err, 
 //DATAB(errno, 
-//GO(__errno_location, 
+GO(__errno_location, pFv)
 //GOW(error, 
 //GOW(error_at_line, 
 //DATAB(error_message_count, 
@@ -557,7 +557,7 @@ GOW(geteuid, pFv)
 //GOW(getpid, 
 //GO(getpmsg, 
 //GOW(getppid, 
-//GOW(getpriority, 
+GOW(getpriority, iFii)
 //GO(getprotobyname, 
 //GO(getprotobyname_r, 
 //GO(getprotobynumber, 
@@ -1627,7 +1627,7 @@ GO(setlocale, pFip)
 //GO(__setpgid, 
 //GOW(setpgid, 
 //GO(setpgrp, 
-//GOW(setpriority, 
+GOW(setpriority, iFiii)
 //GO(setprotoent, 
 //GO(setpwent, 
 //GOW(setregid,