From 720e24cea004356da037648b92fd7eb02f3c74a8 Mon Sep 17 00:00:00 2001 From: Amlal EL Mahrouss Date: Wed, 19 Jun 2024 10:37:44 +0200 Subject: kernel: add newstd.hxx and new syscalls. includes: - Exit program with code. - Last exit code. acpi: fix invalid C cast. Signed-off-by: Amlal EL Mahrouss --- Comm/newstd.hxx | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Comm/newstd.hxx (limited to 'Comm') diff --git a/Comm/newstd.hxx b/Comm/newstd.hxx new file mode 100644 index 00000000..9bf690cd --- /dev/null +++ b/Comm/newstd.hxx @@ -0,0 +1,29 @@ +/* ------------------------------------------- + + Copyright Zeta Electronics Corporation. + + File: newstd.hxx. + Purpose: NewOS standard interface. + +------------------------------------------- */ + +#pragma once + +#ifdef __KERNEL__ +#error !!! including header in kernel mode !!! +#endif // __KERNEL__ + +class NUser; /// @brief User application class. +class NCallback; /// @brief User callback class. + +#define IMPORT_CXX extern "C++" +#define IMPORT_C extern "C" + +/** +@brief a class which helps the user do application I/O. +*/ +class NUser +{ +public: + +}; \ No newline at end of file -- cgit v1.2.3