about summary refs log tree commit diff stats
path: root/src/wrapped/wrappedlibc.c
diff options
context:
space:
mode:
authorYang Liu <liuyang22@iscas.ac.cn>2025-06-12 16:45:11 +0800
committerGitHub <noreply@github.com>2025-06-12 10:45:11 +0200
commit9cacc441255e86be21f0eef3e1706a1bb915e275 (patch)
tree308e99a23902b8ae2de7b386f9a7330a6d0f2625 /src/wrapped/wrappedlibc.c
parent3f757df0288d122cce8fedd885a989d429566a44 (diff)
downloadbox64-9cacc441255e86be21f0eef3e1706a1bb915e275.tar.gz
box64-9cacc441255e86be21f0eef3e1706a1bb915e275.zip
[WRAPPER] Added 2 more functions to libc (for #2731) (#2733)
Diffstat (limited to 'src/wrapped/wrappedlibc.c')
-rw-r--r--src/wrapped/wrappedlibc.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c
index 515a9b51..ef9d96f3 100644
--- a/src/wrapped/wrappedlibc.c
+++ b/src/wrapped/wrappedlibc.c
@@ -2722,6 +2722,18 @@ EXPORT int32_t my___cxa_thread_atexit_impl(x64emu_t* emu, void* dtor, void* obj,
     return 0;
 }
 
+EXPORT int32_t my_delete_module(x64emu_t* emu, const char* name, unsigned int flags)
+{
+    (void)emu;
+    return syscall(__NR_delete_module, name, flags);
+}
+
+EXPORT int32_t my_init_module(x64emu_t* emu, void* module_image, unsigned long size, const char* param_values)
+{
+    (void)emu;
+    return syscall(__NR_init_module, module_image, size, param_values);
+}
+
 EXPORT int32_t my___register_atfork(x64emu_t *emu, void* prepare, void* parent, void* child, void* handle)
 {
     (void)emu;