summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.vscode/c_cpp_properties.json10
-rw-r--r--Doxyfile2
-rw-r--r--Kernel/Docs/SPECIFICATION.md2
-rw-r--r--Usr/.gitkeep (renamed from SDK/.gitkeep)0
-rw-r--r--Usr/Dist/.gitkeep (renamed from SDK/Dist/.gitkeep)0
-rw-r--r--Usr/Sys/.gitkeep (renamed from SDK/Libraries/.gitkeep)0
-rw-r--r--Usr/Sys/CoreCxxRuntime/.gitkeep (renamed from SDK/Libraries/CoreCxxRuntime/.gitkeep)0
-rw-r--r--Usr/Sys/CoreCxxRuntime/Private.xml (renamed from SDK/Libraries/CoreCxxRuntime/Private.xml)0
-rw-r--r--Usr/Sys/CoreCxxRuntime/Sources/New+Delete.cxx (renamed from SDK/Libraries/CoreCxxRuntime/Sources/New+Delete.cxx)0
-rw-r--r--Usr/Sys/CorePEFRuntime/.gitkeep (renamed from SDK/Libraries/CorePEFRuntime/.gitkeep)0
-rw-r--r--Usr/Sys/CorePEFRuntime/Private.xml (renamed from SDK/Libraries/CorePEFRuntime/Private.xml)0
-rw-r--r--Usr/Sys/CorePEFRuntime/Sources/PEFStart.c (renamed from SDK/Libraries/CorePEFRuntime/Sources/PEFStart.c)0
-rw-r--r--Usr/Sys/CoreSystem/.gitkeep (renamed from SDK/Libraries/CoreSystem/.gitkeep)0
-rw-r--r--Usr/Sys/CoreSystem/AMD64/CoreAssembly.s (renamed from SDK/Libraries/CoreSystem/AMD64/CoreAssembly.s)0
-rw-r--r--Usr/Sys/CoreSystem/ARM64/.gitkeep (renamed from SDK/Libraries/CoreSystem/ARM64/.gitkeep)0
-rw-r--r--Usr/Sys/CoreSystem/Headers/Alert.h (renamed from SDK/Libraries/CoreSystem/Headers/Alert.h)0
-rw-r--r--Usr/Sys/CoreSystem/Headers/Defines.h (renamed from SDK/Libraries/CoreSystem/Headers/Defines.h)18
-rw-r--r--Usr/Sys/CoreSystem/Headers/File.h (renamed from SDK/Libraries/CoreSystem/Headers/File.h)0
-rw-r--r--Usr/Sys/CoreSystem/Headers/Heap.h (renamed from SDK/Libraries/CoreSystem/Headers/Heap.h)0
-rw-r--r--Usr/Sys/CoreSystem/Headers/Hint.h (renamed from SDK/Libraries/CoreSystem/Headers/Hint.h)0
-rw-r--r--Usr/Sys/CoreSystem/Headers/Intl.h (renamed from SDK/Libraries/CoreSystem/Headers/Intl.h)0
-rw-r--r--Usr/Sys/CoreSystem/Headers/Math.h (renamed from SDK/Libraries/CoreSystem/Headers/Math.h)0
-rw-r--r--Usr/Sys/CoreSystem/Headers/Rsrc.h (renamed from SDK/Libraries/CoreSystem/Headers/Rsrc.h)0
-rw-r--r--Usr/Sys/CoreSystem/Headers/Thread.h (renamed from SDK/Libraries/CoreSystem/Headers/Thread.h)0
-rw-r--r--Usr/Sys/CoreSystem/Headers/Transport.h (renamed from SDK/Libraries/CoreSystem/Headers/Transport.h)6
-rw-r--r--Usr/Sys/CoreSystem/POWER/CoreAssembly.s (renamed from SDK/Libraries/CoreSystem/POWER/CoreAssembly.s)0
-rw-r--r--Usr/Sys/CoreSystem/Private.xml (renamed from SDK/Libraries/CoreSystem/Private.xml)0
-rw-r--r--Usr/Sys/CoreSystem/RISCV/.gitkeep (renamed from SDK/Libraries/CoreSystem/RISCV/.gitkeep)0
-rw-r--r--Usr/Sys/CoreSystem/ReadMe.md (renamed from SDK/Libraries/CoreSystem/ReadMe.md)0
-rw-r--r--Usr/Sys/CoreSystem/Sources/App.c (renamed from SDK/Libraries/CoreSystem/Sources/App.c)0
-rw-r--r--Usr/Sys/CoreSystem/Sources/CRTStartup.c (renamed from SDK/Libraries/CoreSystem/Sources/CRTStartup.c)0
-rw-r--r--Usr/Sys/CoreSystem/Sources/File.c (renamed from SDK/Libraries/CoreSystem/Sources/File.c)0
-rw-r--r--Usr/Sys/CoreSystem/Sources/Heap.c (renamed from SDK/Libraries/CoreSystem/Sources/Heap.c)0
-rw-r--r--Usr/Sys/CoreSystem/Sources/Math.c (renamed from SDK/Libraries/CoreSystem/Sources/Math.c)0
-rw-r--r--Usr/Sys/CoreSystem/Sources/Thread.c (renamed from SDK/Libraries/CoreSystem/Sources/Thread.c)0
-rw-r--r--Usr/Sys/CoreSystem/amd64.mk (renamed from SDK/Libraries/CoreSystem/amd64.mk)0
-rw-r--r--Usr/Sys/CoreSystem/compile_flags.txt (renamed from SDK/Libraries/CoreSystem/compile_flags.txt)0
37 files changed, 22 insertions, 16 deletions
diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json
index ff4a5912..c24b99d4 100644
--- a/.vscode/c_cpp_properties.json
+++ b/.vscode/c_cpp_properties.json
@@ -7,8 +7,8 @@
"${workspaceFolder}/Drv/**",
"${workspaceFolder}/Boot/**",
"${workspaceFolder}/**",
- "${workspaceFolder}/SDK/Libraries/CoreSystem/**",
- "${workspaceFolder}/SDK/Libraries/**"
+ "${workspaceFolder}/Usr/Sys/CoreSystem/**",
+ "${workspaceFolder}/Usr/Sys/**"
],
"defines": [
"__MAHROUSS__",
@@ -28,7 +28,7 @@
{
"name": "AppDev ",
"includePath": [
- "${workspaceFolder}/SDK/Developer/**"
+ "${workspaceFolder}/Usr/Developer/**"
],
"defines": [],
"cStandard": "c17",
@@ -42,8 +42,8 @@
"${workspaceFolder}/Kernel/**",
"${workspaceFolder}/Boot/**",
"${workspaceFolder}/**",
- "${workspaceFolder}/SDK/Libraries/CoreSystem/**",
- "${workspaceFolder}/SDK/Libraries/**"
+ "${workspaceFolder}/Usr/Sys/CoreSystem/**",
+ "${workspaceFolder}/Usr/Sys/**"
],
"defines": [
"__MAHROUSS__",
diff --git a/Doxyfile b/Doxyfile
index aec8485f..120fe24e 100644
--- a/Doxyfile
+++ b/Doxyfile
@@ -945,7 +945,7 @@ WARN_LOGFILE =
INPUT = ./ \
./NewKernel/ \
- ./SDK/ \
+ ./Usr/ \
# This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
diff --git a/Kernel/Docs/SPECIFICATION.md b/Kernel/Docs/SPECIFICATION.md
index 6f9ac3d3..e58d63ee 100644
--- a/Kernel/Docs/SPECIFICATION.md
+++ b/Kernel/Docs/SPECIFICATION.md
@@ -24,7 +24,7 @@
- Thread Local Storage.
- Semaphore, Locks, Timers.
- Canary mechanisms.
-- Dynamic Libraries.
+- Dynamic Sys.
- Cross Platform.
- Permission Selectors.
diff --git a/SDK/.gitkeep b/Usr/.gitkeep
index e69de29b..e69de29b 100644
--- a/SDK/.gitkeep
+++ b/Usr/.gitkeep
diff --git a/SDK/Dist/.gitkeep b/Usr/Dist/.gitkeep
index e69de29b..e69de29b 100644
--- a/SDK/Dist/.gitkeep
+++ b/Usr/Dist/.gitkeep
diff --git a/SDK/Libraries/.gitkeep b/Usr/Sys/.gitkeep
index e69de29b..e69de29b 100644
--- a/SDK/Libraries/.gitkeep
+++ b/Usr/Sys/.gitkeep
diff --git a/SDK/Libraries/CoreCxxRuntime/.gitkeep b/Usr/Sys/CoreCxxRuntime/.gitkeep
index e69de29b..e69de29b 100644
--- a/SDK/Libraries/CoreCxxRuntime/.gitkeep
+++ b/Usr/Sys/CoreCxxRuntime/.gitkeep
diff --git a/SDK/Libraries/CoreCxxRuntime/Private.xml b/Usr/Sys/CoreCxxRuntime/Private.xml
index 7ee426c0..7ee426c0 100644
--- a/SDK/Libraries/CoreCxxRuntime/Private.xml
+++ b/Usr/Sys/CoreCxxRuntime/Private.xml
diff --git a/SDK/Libraries/CoreCxxRuntime/Sources/New+Delete.cxx b/Usr/Sys/CoreCxxRuntime/Sources/New+Delete.cxx
index cc59586f..cc59586f 100644
--- a/SDK/Libraries/CoreCxxRuntime/Sources/New+Delete.cxx
+++ b/Usr/Sys/CoreCxxRuntime/Sources/New+Delete.cxx
diff --git a/SDK/Libraries/CorePEFRuntime/.gitkeep b/Usr/Sys/CorePEFRuntime/.gitkeep
index e69de29b..e69de29b 100644
--- a/SDK/Libraries/CorePEFRuntime/.gitkeep
+++ b/Usr/Sys/CorePEFRuntime/.gitkeep
diff --git a/SDK/Libraries/CorePEFRuntime/Private.xml b/Usr/Sys/CorePEFRuntime/Private.xml
index 7ee426c0..7ee426c0 100644
--- a/SDK/Libraries/CorePEFRuntime/Private.xml
+++ b/Usr/Sys/CorePEFRuntime/Private.xml
diff --git a/SDK/Libraries/CorePEFRuntime/Sources/PEFStart.c b/Usr/Sys/CorePEFRuntime/Sources/PEFStart.c
index e9a45f09..e9a45f09 100644
--- a/SDK/Libraries/CorePEFRuntime/Sources/PEFStart.c
+++ b/Usr/Sys/CorePEFRuntime/Sources/PEFStart.c
diff --git a/SDK/Libraries/CoreSystem/.gitkeep b/Usr/Sys/CoreSystem/.gitkeep
index e69de29b..e69de29b 100644
--- a/SDK/Libraries/CoreSystem/.gitkeep
+++ b/Usr/Sys/CoreSystem/.gitkeep
diff --git a/SDK/Libraries/CoreSystem/AMD64/CoreAssembly.s b/Usr/Sys/CoreSystem/AMD64/CoreAssembly.s
index 5d1484cf..5d1484cf 100644
--- a/SDK/Libraries/CoreSystem/AMD64/CoreAssembly.s
+++ b/Usr/Sys/CoreSystem/AMD64/CoreAssembly.s
diff --git a/SDK/Libraries/CoreSystem/ARM64/.gitkeep b/Usr/Sys/CoreSystem/ARM64/.gitkeep
index e69de29b..e69de29b 100644
--- a/SDK/Libraries/CoreSystem/ARM64/.gitkeep
+++ b/Usr/Sys/CoreSystem/ARM64/.gitkeep
diff --git a/SDK/Libraries/CoreSystem/Headers/Alert.h b/Usr/Sys/CoreSystem/Headers/Alert.h
index 7decd4ca..7decd4ca 100644
--- a/SDK/Libraries/CoreSystem/Headers/Alert.h
+++ b/Usr/Sys/CoreSystem/Headers/Alert.h
diff --git a/SDK/Libraries/CoreSystem/Headers/Defines.h b/Usr/Sys/CoreSystem/Headers/Defines.h
index 713d6df8..1f35da0a 100644
--- a/SDK/Libraries/CoreSystem/Headers/Defines.h
+++ b/Usr/Sys/CoreSystem/Headers/Defines.h
@@ -124,7 +124,7 @@ typedef CharacterTypeUTF8 BooleanType;
#define CS_CONSTEXPR
#endif // __cplusplus
-enum RtProcessCall
+enum
{
kCallAllocPtr = 1,
kCallFreePtr,
@@ -152,7 +152,7 @@ enum RtProcessCall
kCallDeviceExists,
kCallDriveExists,
/// @brief Number of process calls.
- kCallsCount,
+ kCallCount,
};
/**
@@ -173,7 +173,8 @@ typedef struct ApplicationInterface
{
VoidType (*Release)(struct ApplicationInterface* Self, DWordType ExitCode);
IntPtrType (*Invoke)(struct ApplicationInterface* Self, DWordType Sel, ...);
- VoidType (*Query)(struct ApplicationInterface* Self, PtrVoidType* Dst, SizeType SzDst, struct GUID* GuidOf);
+ VoidType (*Query)(struct ApplicationInterface* Self, PtrVoidType* Dst,
+ SizeType SzDst, struct GUID* GuidOf);
} ApplicationInterface, *ApplicationInterfaceRef;
#ifdef __cplusplus
@@ -201,7 +202,7 @@ using StrType = CharacterTypeUTF8[N];
#else
-#define app_cast (ApplicationInterfaceRef)
+#define app_cast(X) (ApplicationInterfaceRef)(X)
#endif // ifdef C++
@@ -213,15 +214,17 @@ CS_EXTERN_C ApplicationInterfaceRef RtGetAppPointer(VoidType);
/// @brief Get argument count
/// @param
/// @return
-CS_EXTERN_C SizeType RtGetAppArgumentsCount(VoidType);
+CS_EXTERN_C SizeType RtGetAppArgumentsCount(VoidType);
/// @brief Get argument pointer.
/// @param
/// @return
-CS_EXTERN_C CharacterTypeUTF8** RtGetAppArgumentsPtr(VoidType);
+CS_EXTERN_C CharacterTypeUTF8** RtGetAppArgumentsPtr(VoidType);
+/// @brief Shared application interface.
CS_EXTERN_C ApplicationInterfaceRef kSharedApplication;
+/// @brief 255 length string type.
typedef CharacterTypeUTF8 StrType255[255];
#define True 1
@@ -233,3 +236,6 @@ typedef CharacterTypeUTF8 StrType255[255];
#ifndef kInvalidRef
#define kInvalidRef 0
#endif
+
+/// @brief Result type.
+typedef UInt64Type ResultType;
diff --git a/SDK/Libraries/CoreSystem/Headers/File.h b/Usr/Sys/CoreSystem/Headers/File.h
index cfd9ee30..cfd9ee30 100644
--- a/SDK/Libraries/CoreSystem/Headers/File.h
+++ b/Usr/Sys/CoreSystem/Headers/File.h
diff --git a/SDK/Libraries/CoreSystem/Headers/Heap.h b/Usr/Sys/CoreSystem/Headers/Heap.h
index b2ad6e74..b2ad6e74 100644
--- a/SDK/Libraries/CoreSystem/Headers/Heap.h
+++ b/Usr/Sys/CoreSystem/Headers/Heap.h
diff --git a/SDK/Libraries/CoreSystem/Headers/Hint.h b/Usr/Sys/CoreSystem/Headers/Hint.h
index ee14711d..ee14711d 100644
--- a/SDK/Libraries/CoreSystem/Headers/Hint.h
+++ b/Usr/Sys/CoreSystem/Headers/Hint.h
diff --git a/SDK/Libraries/CoreSystem/Headers/Intl.h b/Usr/Sys/CoreSystem/Headers/Intl.h
index b868adca..b868adca 100644
--- a/SDK/Libraries/CoreSystem/Headers/Intl.h
+++ b/Usr/Sys/CoreSystem/Headers/Intl.h
diff --git a/SDK/Libraries/CoreSystem/Headers/Math.h b/Usr/Sys/CoreSystem/Headers/Math.h
index 0079803e..0079803e 100644
--- a/SDK/Libraries/CoreSystem/Headers/Math.h
+++ b/Usr/Sys/CoreSystem/Headers/Math.h
diff --git a/SDK/Libraries/CoreSystem/Headers/Rsrc.h b/Usr/Sys/CoreSystem/Headers/Rsrc.h
index 7fe52910..7fe52910 100644
--- a/SDK/Libraries/CoreSystem/Headers/Rsrc.h
+++ b/Usr/Sys/CoreSystem/Headers/Rsrc.h
diff --git a/SDK/Libraries/CoreSystem/Headers/Thread.h b/Usr/Sys/CoreSystem/Headers/Thread.h
index 15b40df3..15b40df3 100644
--- a/SDK/Libraries/CoreSystem/Headers/Thread.h
+++ b/Usr/Sys/CoreSystem/Headers/Thread.h
diff --git a/SDK/Libraries/CoreSystem/Headers/Transport.h b/Usr/Sys/CoreSystem/Headers/Transport.h
index 3f6db3f1..d78656f3 100644
--- a/SDK/Libraries/CoreSystem/Headers/Transport.h
+++ b/Usr/Sys/CoreSystem/Headers/Transport.h
@@ -16,7 +16,7 @@
#include <Headers/Defines.h>
-typedef QWordType TrStreamType;
+typedef QWordType TptStreamType;
/// @brief Opens a new socket
/// @param afType address family
@@ -24,12 +24,12 @@ typedef QWordType TrStreamType;
/// @param sockProto socket protocol.
/// @return The STREAMS socket.
/// @note return is const.
-CS_EXTERN_C CS_CONST TrStreamType CSOpenSocket(UInt32Type afType, UInt32Type sockType, UInt32Type sockProto);
+CS_EXTERN_C CS_CONST TptStreamType CSOpenSocket(UInt32Type afType, UInt32Type sockType, UInt32Type sockProto);
/// @brief Close a STREAMS socket.
/// @param streams The streams socket.
/// @return
-CS_EXTERN_C VoidType CSCloseSocket(CS_CONST TrStreamType streams);
+CS_EXTERN_C VoidType CSCloseSocket(CS_CONST TptStreamType streams);
/// @brief Get OpenTransport version.
/// @param void
diff --git a/SDK/Libraries/CoreSystem/POWER/CoreAssembly.s b/Usr/Sys/CoreSystem/POWER/CoreAssembly.s
index e7919f23..e7919f23 100644
--- a/SDK/Libraries/CoreSystem/POWER/CoreAssembly.s
+++ b/Usr/Sys/CoreSystem/POWER/CoreAssembly.s
diff --git a/SDK/Libraries/CoreSystem/Private.xml b/Usr/Sys/CoreSystem/Private.xml
index 4be6c388..4be6c388 100644
--- a/SDK/Libraries/CoreSystem/Private.xml
+++ b/Usr/Sys/CoreSystem/Private.xml
diff --git a/SDK/Libraries/CoreSystem/RISCV/.gitkeep b/Usr/Sys/CoreSystem/RISCV/.gitkeep
index e69de29b..e69de29b 100644
--- a/SDK/Libraries/CoreSystem/RISCV/.gitkeep
+++ b/Usr/Sys/CoreSystem/RISCV/.gitkeep
diff --git a/SDK/Libraries/CoreSystem/ReadMe.md b/Usr/Sys/CoreSystem/ReadMe.md
index ae5df339..ae5df339 100644
--- a/SDK/Libraries/CoreSystem/ReadMe.md
+++ b/Usr/Sys/CoreSystem/ReadMe.md
diff --git a/SDK/Libraries/CoreSystem/Sources/App.c b/Usr/Sys/CoreSystem/Sources/App.c
index 42ea19c6..42ea19c6 100644
--- a/SDK/Libraries/CoreSystem/Sources/App.c
+++ b/Usr/Sys/CoreSystem/Sources/App.c
diff --git a/SDK/Libraries/CoreSystem/Sources/CRTStartup.c b/Usr/Sys/CoreSystem/Sources/CRTStartup.c
index 1cfad65d..1cfad65d 100644
--- a/SDK/Libraries/CoreSystem/Sources/CRTStartup.c
+++ b/Usr/Sys/CoreSystem/Sources/CRTStartup.c
diff --git a/SDK/Libraries/CoreSystem/Sources/File.c b/Usr/Sys/CoreSystem/Sources/File.c
index 6e0e810a..6e0e810a 100644
--- a/SDK/Libraries/CoreSystem/Sources/File.c
+++ b/Usr/Sys/CoreSystem/Sources/File.c
diff --git a/SDK/Libraries/CoreSystem/Sources/Heap.c b/Usr/Sys/CoreSystem/Sources/Heap.c
index e7a77ba5..e7a77ba5 100644
--- a/SDK/Libraries/CoreSystem/Sources/Heap.c
+++ b/Usr/Sys/CoreSystem/Sources/Heap.c
diff --git a/SDK/Libraries/CoreSystem/Sources/Math.c b/Usr/Sys/CoreSystem/Sources/Math.c
index 19df42f3..19df42f3 100644
--- a/SDK/Libraries/CoreSystem/Sources/Math.c
+++ b/Usr/Sys/CoreSystem/Sources/Math.c
diff --git a/SDK/Libraries/CoreSystem/Sources/Thread.c b/Usr/Sys/CoreSystem/Sources/Thread.c
index 7d00bf9e..7d00bf9e 100644
--- a/SDK/Libraries/CoreSystem/Sources/Thread.c
+++ b/Usr/Sys/CoreSystem/Sources/Thread.c
diff --git a/SDK/Libraries/CoreSystem/amd64.mk b/Usr/Sys/CoreSystem/amd64.mk
index e64de90f..e64de90f 100644
--- a/SDK/Libraries/CoreSystem/amd64.mk
+++ b/Usr/Sys/CoreSystem/amd64.mk
diff --git a/SDK/Libraries/CoreSystem/compile_flags.txt b/Usr/Sys/CoreSystem/compile_flags.txt
index 749a500e..749a500e 100644
--- a/SDK/Libraries/CoreSystem/compile_flags.txt
+++ b/Usr/Sys/CoreSystem/compile_flags.txt