about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTheofilos Augoustis <theofilos.augoustis@gmail.com>2025-11-26 19:06:19 +0000
committerTheofilos Augoustis <theofilos.augoustis@gmail.com>2025-11-26 19:06:19 +0000
commit4f03396b35a0bae405294aa3137e0a36c4d6d8c6 (patch)
tree50ae5b633ecfe5e383f9a1136cd7c91f8ea191d3
parentaac2e69527d216d3b837d94b468dd6480cad6144 (diff)
downloadfocaccia-4f03396b35a0bae405294aa3137e0a36c4d6d8c6.tar.gz
focaccia-4f03396b35a0bae405294aa3137e0a36c4d6d8c6.zip
Add support for dup emulation
-rw-r--r--src/focaccia/qemu/x86.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/focaccia/qemu/x86.py b/src/focaccia/qemu/x86.py
index 269200c..680f966 100644
--- a/src/focaccia/qemu/x86.py
+++ b/src/focaccia/qemu/x86.py
@@ -25,6 +25,8 @@ emulated_system_calls = {
     21: SyscallInfo('access'),
     22: SyscallInfo('pipe', patchup_address_registers=['rdi']),
     24: SyscallInfo('sched_yield'),
+    32: SyscallInfo('dup'),
+    33: SyscallInfo('dup2'),
     34:  SyscallInfo('pause'),
     35:  SyscallInfo('nanosleep', patchup_address_registers=['rdi', 'rsi']),
     39:  SyscallInfo('getpid'),
@@ -100,6 +102,7 @@ emulated_system_calls = {
     284: SyscallInfo('eventfd'),
     290: SyscallInfo('eventfd2'),
     291: SyscallInfo('epoll_create1'),
+    292: SyscallInfo('dup3'),
     293: SyscallInfo('pipe2', patchup_address_registers=['rdi']),
     297: SyscallInfo('rt_tgsigqueueinfo', patchup_address_registers=['r10']),
     318: SyscallInfo('getrandom', patchup_address_registers=['rdi'])