summaryrefslogtreecommitdiff
path: root/DevTools/UserspaceEmulator/Emulator.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-07-13 11:14:59 +0200
committerAndreas Kling <kling@serenityos.org>2020-07-13 13:50:22 +0200
commit4d3787ae33e8bf56c87f49aa27f1ad989c77c672 (patch)
treef80cab3ebeef5c63392007b2684581ace9668521 /DevTools/UserspaceEmulator/Emulator.h
parent20378b8640653af96acca23ee92693aaaa160940 (diff)
downloadserenity-4d3787ae33e8bf56c87f49aa27f1ad989c77c672.zip
UserspaceEmulator: Support the fstat() and get_process_name() syscalls
For now, we just pretend that the process name is "EMULATED". We can probably do better though. :^)
Diffstat (limited to 'DevTools/UserspaceEmulator/Emulator.h')
-rw-r--r--DevTools/UserspaceEmulator/Emulator.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/DevTools/UserspaceEmulator/Emulator.h b/DevTools/UserspaceEmulator/Emulator.h
index 9802851211..695cd0ee11 100644
--- a/DevTools/UserspaceEmulator/Emulator.h
+++ b/DevTools/UserspaceEmulator/Emulator.h
@@ -68,6 +68,8 @@ private:
u32 virt$madvise(FlatPtr, size_t, int);
u32 virt$open(u32);
int virt$close(int);
+ int virt$get_process_name(FlatPtr buffer, int size);
+ int virt$fstat(int, FlatPtr);
u32 virt$fcntl(int fd, int, u32);
int virt$getgroups(ssize_t count, FlatPtr);
int virt$lseek(int fd, off_t offset, int whence);