summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmlal EL Mahrouss <amlalelmahrouss@icloud.com>2024-07-02 20:53:33 +0200
committerAmlal EL Mahrouss <amlalelmahrouss@icloud.com>2024-07-02 20:54:33 +0200
commit1ee8b64b32004b3a00a7cf836df178ba2d179b74 (patch)
tree2ca252b0c305ee82dee92760c742a8e2900ef3b6
parente3b444042027f355e76e396cc1b78500f9a3c756 (diff)
MHR-36: See below.
IMP: Two extern C symbols: NRequestSyscall and NReleaseSyscall. Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
-rw-r--r--Comm/newstd.hxx21
1 files changed, 14 insertions, 7 deletions
diff --git a/Comm/newstd.hxx b/Comm/newstd.hxx
index 47756c6e..0eaa2c50 100644
--- a/Comm/newstd.hxx
+++ b/Comm/newstd.hxx
@@ -7,7 +7,8 @@ Purpose: System Call Interface.
------------------------------------------- */
-#pragma once
+#ifndef _INC_COMM_NEWSTD_HXX_
+#define _INC_COMM_NEWSTD_HXX_
#ifdef __KERNEL__
#error !!! including header in kernel mode !!!
@@ -21,7 +22,7 @@ Purpose: System Call Interface.
#define cRestrictW "w"
#define cRestrictRW "rw"
-class NSyscall; /// @brief User application class.
+class NSyscall; /// @brief System call class.
typedef int OSType;
typedef bool Bool;
@@ -74,16 +75,16 @@ public:
// THOSE DOESNT REQUIRE PERMISSIONS FROM THE USER. //
/// @brief terminate app.
- virtual UInt0 AppTerminate() = 0;
+ virtual UInt0 Terminate() = 0;
/// @brief exit thread.
- virtual Bool ThreadExit(OSType code) = 0;
+ virtual Bool Exit(OSType code) = 0;
/// @brief alloc pointer.
- virtual UInt0* ProcessNew(long long sz) = 0;
+ virtual UInt0* New(long long sz) = 0;
/// @brief free pointer.
- virtual UInt0 ProcessDelete(void* ptr) = 0;
+ virtual UInt0 Delete(void* ptr) = 0;
// THOSE MAY REQUIRE PERMISSIONS FROM THE USER. //
@@ -118,4 +119,10 @@ public:
/// @brief Request syscall object.
/// @return Syscall implementation.
-NSyscall* NRequestSyscall(UInt0);
+ML_IMPORT_C NSyscall* NRequestSyscall(UInt0);
+
+/// @brief Release syscall object.
+/// @param syscall System call object.
+ML_IMPORT_C UInt0 NReleaseSyscall(NSyscall* syscall);
+
+#endif // ifndef _INC_COMM_NEWSTD_HXX_