Hi Kohei,
On 16/4/25 10:14, Kohei Tokunaga wrote:
On emscripten, some implementations in os-posix.c can't be used such as
daemonizing and changing user. This commit introduces os-wasm.c and
os-wasm.h which are forked from os-posix.c and os-posix.h and patched for
targetting Emscripten.
Signed-off-by: Kohei Tokunaga <ktokunaga.m...@gmail.com>
---
include/qemu/osdep.h | 8 ++-
include/system/os-posix.h | 3 +-
include/system/os-wasm.h | 105 +++++++++++++++++++++++++++++++++
os-wasm.c | 119 ++++++++++++++++++++++++++++++++++++++
4 files changed, 232 insertions(+), 3 deletions(-)
create mode 100644 include/system/os-wasm.h
create mode 100644 os-wasm.c
diff --git a/include/system/os-posix.h b/include/system/os-posix.h
index ce5b3bccf8..e87cc36a3a 100644
--- a/include/system/os-posix.h
+++ b/include/system/os-posix.h
@@ -1,5 +1,6 @@
/*
- * posix specific declarations
+ * posix specific declarations forked from os-posix.c, removing functions not
+ * working on Emscripten
You shouldn't have to modify this file, likely a rebase typo.
*
* Copyright (c) 2003-2008 Fabrice Bellard
* Copyright (c) 2010 Jes Sorensen <jes.soren...@redhat.com>