about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2022-04-27 10:41:50 +0200
committerptitSeb <sebastien.chev@gmail.com>2022-04-27 10:41:50 +0200
commit80be548b641f3f78d5de869ddc9c88a5a7217dc3 (patch)
tree7d36de9b1942fdd0572ee2f0179799efed8fa686 /src
parentbb22be4f4f59c3584798825de5deb270d39bd1f2 (diff)
downloadbox64-80be548b641f3f78d5de869ddc9c88a5a7217dc3.tar.gz
box64-80be548b641f3f78d5de869ddc9c88a5a7217dc3.zip
Added wrapped stat (for #293)
Diffstat (limited to 'src')
-rw-r--r--src/wrapped/generated/functions_list.txt1
-rw-r--r--src/wrapped/generated/wrappedlibctypes.h1
-rwxr-xr-xsrc/wrapped/wrappedlibc_private.h1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/wrapped/generated/functions_list.txt b/src/wrapped/generated/functions_list.txt
index 34814410..f10a0886 100644
--- a/src/wrapped/generated/functions_list.txt
+++ b/src/wrapped/generated/functions_list.txt
@@ -2692,6 +2692,7 @@ wrappedlibc:
   - execv
   - execvp
   - sigaltstack
+  - stat
   - swapcontext
 - iFpV:
   - __isoc99_scanf
diff --git a/src/wrapped/generated/wrappedlibctypes.h b/src/wrapped/generated/wrappedlibctypes.h
index 98f053fe..f0a1e0c3 100644
--- a/src/wrapped/generated/wrappedlibctypes.h
+++ b/src/wrapped/generated/wrappedlibctypes.h
@@ -117,6 +117,7 @@ typedef int64_t (*iFppipppp_t)(void*, void*, int64_t, void*, void*, void*, void*
 	GO(execv, iFpp_t) \
 	GO(execvp, iFpp_t) \
 	GO(sigaltstack, iFpp_t) \
+	GO(stat, iFpp_t) \
 	GO(swapcontext, iFpp_t) \
 	GO(__isoc99_scanf, iFpV_t) \
 	GO(execl, iFpV_t) \
diff --git a/src/wrapped/wrappedlibc_private.h b/src/wrapped/wrappedlibc_private.h
index b852f939..c9617678 100755
--- a/src/wrapped/wrappedlibc_private.h
+++ b/src/wrapped/wrappedlibc_private.h
@@ -1729,6 +1729,7 @@ GOM(sscanf, iFEppV)
 //GOW(ssignal, @Fi@)
 //GO(sstk, 
 GOM(__stack_chk_fail, vFEv)
+GOM(stat, iFEpp)
 //GO(__statfs, 
 GOW(statfs, iFpp)
 GOW(statfs64, iFpp)