summaryrefslogtreecommitdiffhomepage
path: root/dev/libSystem/Syscall.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-05-29 17:19:57 +0200
committerAmlal El Mahrouss <amlal@nekernel.org>2025-05-29 17:19:57 +0200
commit81027667166d9624ee12f45f011426678d1bbbf4 (patch)
treed12fd352d23ae9c9a167c2c1b8b98c2c9cac2df7 /dev/libSystem/Syscall.h
parent3167f59dbb401d6a79b1524537e04218baf49ee3 (diff)
feat: Improve libSystem's architecture and implementation.
fix: Fix NeKit's Ref, and ErrorOr classes. fix: Fix userland tools. next: - Finish the latest tickets and then release nekernel 0.0.3 Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/libSystem/Syscall.h')
-rw-r--r--dev/libSystem/Syscall.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/dev/libSystem/Syscall.h b/dev/libSystem/Syscall.h
new file mode 100644
index 00000000..21f8287c
--- /dev/null
+++ b/dev/libSystem/Syscall.h
@@ -0,0 +1,19 @@
+/* -------------------------------------------
+
+ Copyright (C) 2025, Amlal El Mahrouss, all rights reserved.
+
+------------------------------------------- */
+
+#pragma once
+
+#include <libSystem/System.h>
+#include <cstdarg>
+
+#ifndef SYSCALL_HASH
+#define SYSCALL_HASH(str) (UInt64)str
+#endif // !SYSCALL_HASH
+
+IMPORT_C VoidPtr libsys_syscall_arg_1(SizeT id);
+IMPORT_C VoidPtr libsys_syscall_arg_2(SizeT id, VoidPtr arg1);
+IMPORT_C VoidPtr libsys_syscall_arg_3(SizeT id, VoidPtr arg1, VoidPtr arg3);
+IMPORT_C VoidPtr libsys_syscall_arg_4(SizeT id, VoidPtr arg1, VoidPtr arg3, VoidPtr arg4);