summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-03-27 09:06:08 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-03-27 09:11:32 +0100
commit5f12929a80c6cc03bff075be7e1b8dc74cd0f2c4 (patch)
tree012d939cde8a7e0b9cfa5e2214c14eedb57c5f01
parentc32f2d094de351d04b158758e0cb7f45b14b00b6 (diff)
[FEAT] frameworks: Update frameworks code, adding new `libSocket` framework.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
-rw-r--r--CITATION.cff6
-rw-r--r--README.md10
-rw-r--r--frameworks/libSocket.fwrk/dist/.keep (renamed from src/ne_system/.keep)0
-rw-r--r--frameworks/libSocket.fwrk/headers/Config.h18
-rw-r--r--frameworks/libSocket.fwrk/libSocket.fwrk.json20
-rw-r--r--frameworks/libSocket.fwrk/src/.keep0
-rw-r--r--frameworks/libSocket.fwrk/xml/app.xml4
-rw-r--r--frameworks/libThread.fwrk/headers/Config.h2
-rw-r--r--frameworks/libThread.fwrk/src/ThreadMgr.cpp2
-rw-r--r--frameworks/libX11.fwrk/headers/Config.h2
-rw-r--r--frameworks/libX11.fwrk/src/X11ConnMgr.cpp2
-rw-r--r--include/.sdk_map2
-rw-r--r--include/ne-system/.sdk_map (renamed from include/ne_system/.sdk_map)0
-rw-r--r--include/ne-system/Drivers/DDK.h (renamed from include/ne_system/Drivers/DDK.h)2
-rw-r--r--include/ne-system/Drivers/Detail/Config.h (renamed from include/ne_system/Drivers/Detail/Config.h)0
-rw-r--r--include/ne-system/System/Detail/Config.h (renamed from include/ne_system/System/Detail/Config.h)0
-rw-r--r--include/ne-system/System/NeSystem.h (renamed from include/ne_system/System/NeSystem.h)4
-rw-r--r--include/ne-system/System/WindowSystems/Wayland.h (renamed from include/ne_system/System/WindowSystems/Wayland.h)2
-rw-r--r--include/ne-system/System/WindowSystems/X11.h (renamed from include/ne_system/System/WindowSystems/X11.h)6
-rw-r--r--src/src/.keep0
20 files changed, 62 insertions, 20 deletions
diff --git a/CITATION.cff b/CITATION.cff
index adf99a4..ee1c0fa 100644
--- a/CITATION.cff
+++ b/CITATION.cff
@@ -9,11 +9,11 @@ authors:
identifiers:
- type: url
value: 'https://nekernel.org'
- description: Ne.org System
-repository-code: 'https://github.com/ne-foss-org/ne_system'
+ description: THe Ne.org NeSystem Server OS.
+repository-code: 'https://github.com/ne-foss-org/ne-system'
url: 'https://nekernel.org'
abstract: >-
- This is the Ne.org System. Built upon its papers and frameworks.
+ This is the Ne.org NeSystem. Built upon its papers and frameworks.
keywords:
- kernel
- operating-systems
diff --git a/README.md b/README.md
index 6f32352..305d454 100644
--- a/README.md
+++ b/README.md
@@ -5,9 +5,9 @@
<a href="LICENSE"><img src="https://img.shields.io/badge/LICENSE-Apache--2.0-blue.svg" alt="License"></a>
![GitHub Repo stars](https://img.shields.io/github/stars/ne-foss-org/ne-system)
-# About:
+## About:
-An OS that aims to provide an alternative for backend systems. (Edge Computing, Storage Systems, etc.) made to be easily deployable and forkable as well.
+An OS that aims to provide an alternative for backend systems. (Edge Compute, Web Servers, Backend Servers, Storage Systems, etc.) made to be easily deployable and forkable as well.
## Getting Started:
@@ -27,17 +27,17 @@ Please follow the the tutorials in `/src/reference` to get started.
curl -fsSL http://install.nekernel.org | sh
```
-### Full installation:
+### Full Installation:
Please clone the repository using Git:
```sh
-git clone --recurse-submodules -j8 git@github.com:ne-foss-org/ne_system.git
+git clone --recurse-submodules -j8 git@github.com:ne-foss-org/ne-system.git
```
And have a look at the wiki, docs, and primers. They have valuable resources to get started.
-## Read the primers!
+## Primers:
The primers are available at:
diff --git a/src/ne_system/.keep b/frameworks/libSocket.fwrk/dist/.keep
index e69de29..e69de29 100644
--- a/src/ne_system/.keep
+++ b/frameworks/libSocket.fwrk/dist/.keep
diff --git a/frameworks/libSocket.fwrk/headers/Config.h b/frameworks/libSocket.fwrk/headers/Config.h
new file mode 100644
index 0000000..ca38da0
--- /dev/null
+++ b/frameworks/libSocket.fwrk/headers/Config.h
@@ -0,0 +1,18 @@
+// SPDX-License-Identifier: Apache-2.0
+// Copyright 2026, Amlal El Mahrouss (amlal@nekernel.org)
+// Licensed under the Apache License, Version 2.0 (see LICENSE file)
+// Official repository: https://github.com/ne-foss-org/ne-system
+
+#ifndef SOCKET_FOUNDATION_H
+#define SOCKET_FOUNDATION_H
+
+#include <libSystem/SystemKit/System.h>
+
+#define LIBSOCKET_VERSION 0x100000
+
+#define _SOCKET_ARRAY_CHECK(PTR) PTR != nullptr
+#define _SOCKET_ARRAY_INDEX(ARR, PTR, LEN) ARR[((SInt64) PTR) % LEN]
+
+#define _SOCKET_INVALID ((SizeT)-1)
+
+#endif
diff --git a/frameworks/libSocket.fwrk/libSocket.fwrk.json b/frameworks/libSocket.fwrk/libSocket.fwrk.json
new file mode 100644
index 0000000..a1b13bb
--- /dev/null
+++ b/frameworks/libSocket.fwrk/libSocket.fwrk.json
@@ -0,0 +1,20 @@
+{
+ "compiler_path": "x86_64-w64-mingw32-g++",
+ "compiler_std": "c++20",
+ "headers_path": ["../", "./", "../../src/kernel", "../../src/kernel/src"],
+ "sources_path": ["src/*.cpp"],
+ "output_name": "./dist/libSocket.fwrk.dylib",
+ "compiler_flags": [
+ "-ffreestanding",
+ "-shared",
+ "-fno-rtti",
+ "-fno-exceptions",
+ "-Wl,--subsystem=17"
+ ],
+ "cpp_macros": [
+ "kSocketVersion=0x0100",
+ "kSocketVersionHighest=0x0100",
+ "kSocketVersionLowest=0x0100"
+ ]
+ }
+
diff --git a/frameworks/libSocket.fwrk/src/.keep b/frameworks/libSocket.fwrk/src/.keep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/frameworks/libSocket.fwrk/src/.keep
diff --git a/frameworks/libSocket.fwrk/xml/app.xml b/frameworks/libSocket.fwrk/xml/app.xml
new file mode 100644
index 0000000..bd1dbee
--- /dev/null
+++ b/frameworks/libSocket.fwrk/xml/app.xml
@@ -0,0 +1,4 @@
+<PropertyList>
+<PLEntry Type="CFString" Name="LibraryName" Len="3" Value="Socket" />
+<PLEntry Type="BOOL" Name="CacheLibs" Value="YES" />
+</PropertyList> \ No newline at end of file
diff --git a/frameworks/libThread.fwrk/headers/Config.h b/frameworks/libThread.fwrk/headers/Config.h
index f69f0f5..f8f5dab 100644
--- a/frameworks/libThread.fwrk/headers/Config.h
+++ b/frameworks/libThread.fwrk/headers/Config.h
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2026, Amlal El Mahrouss (amlal@nekernel.org)
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
-// Official repository: https://github.com/ne-foss-org/ne_system
+// Official repository: https://github.com/ne-foss-org/ne-system
#ifndef LIBTHREAD_FOUNDATION_H
#define LIBTHREAD_FOUNDATION_H
diff --git a/frameworks/libThread.fwrk/src/ThreadMgr.cpp b/frameworks/libThread.fwrk/src/ThreadMgr.cpp
index 6a7843f..7d663d3 100644
--- a/frameworks/libThread.fwrk/src/ThreadMgr.cpp
+++ b/frameworks/libThread.fwrk/src/ThreadMgr.cpp
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2026, Amlal El Mahrouss (amlal@nekernel.org)
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
-// Official repository: https://github.com/ne-foss-org/ne_system
+// Official repository: https://github.com/ne-foss-org/ne-system
#include <libSystem/SystemKit/Err.h>
#include <libThread.fwrk/headers/Config.h>
diff --git a/frameworks/libX11.fwrk/headers/Config.h b/frameworks/libX11.fwrk/headers/Config.h
index 1207451..30bb449 100644
--- a/frameworks/libX11.fwrk/headers/Config.h
+++ b/frameworks/libX11.fwrk/headers/Config.h
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2026, Amlal El Mahrouss (amlal@nekernel.org)
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
-// Official repository: https://github.com/ne-foss-org/ne_system
+// Official repository: https://github.com/ne-foss-org/ne-system
#ifndef X11_FOUNDATION_H
#define X11_FOUNDATION_H
diff --git a/frameworks/libX11.fwrk/src/X11ConnMgr.cpp b/frameworks/libX11.fwrk/src/X11ConnMgr.cpp
index 61752f1..ca55c8b 100644
--- a/frameworks/libX11.fwrk/src/X11ConnMgr.cpp
+++ b/frameworks/libX11.fwrk/src/X11ConnMgr.cpp
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2026, Amlal El Mahrouss (amlal@nekernel.org)
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
-// Official repository: https://github.com/ne-foss-org/ne_system
+// Official repository: https://github.com/ne-foss-org/ne-system
#include <libX11.fwrk/headers/Config.h>
diff --git a/include/.sdk_map b/include/.sdk_map
index 43c8be8..9b61f77 100644
--- a/include/.sdk_map
+++ b/include/.sdk_map
@@ -1,5 +1,5 @@
[NeSystem]
-ne_system
+ne-system
[MailDel]
maildev
[HttpServer]
diff --git a/include/ne_system/.sdk_map b/include/ne-system/.sdk_map
index da79ef9..da79ef9 100644
--- a/include/ne_system/.sdk_map
+++ b/include/ne-system/.sdk_map
diff --git a/include/ne_system/Drivers/DDK.h b/include/ne-system/Drivers/DDK.h
index 5bb45f5..6503969 100644
--- a/include/ne_system/Drivers/DDK.h
+++ b/include/ne-system/Drivers/DDK.h
@@ -6,6 +6,6 @@
#ifndef _NE_DDK_DDK_H_
#define _NE_DDK_DDK_H_
-#include <ne_system/Drivers/Detail/Config.h>
+#include <ne-system/Drivers/Detail/Config.h>
#endif // _NE_DDK_DDK_H_
diff --git a/include/ne_system/Drivers/Detail/Config.h b/include/ne-system/Drivers/Detail/Config.h
index cb788d6..cb788d6 100644
--- a/include/ne_system/Drivers/Detail/Config.h
+++ b/include/ne-system/Drivers/Detail/Config.h
diff --git a/include/ne_system/System/Detail/Config.h b/include/ne-system/System/Detail/Config.h
index 474a107..474a107 100644
--- a/include/ne_system/System/Detail/Config.h
+++ b/include/ne-system/System/Detail/Config.h
diff --git a/include/ne_system/System/NeSystem.h b/include/ne-system/System/NeSystem.h
index de13c6c..8bc5063 100644
--- a/include/ne_system/System/NeSystem.h
+++ b/include/ne-system/System/NeSystem.h
@@ -1,14 +1,14 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2026, Amlal El Mahrouss (amlal@nekernel.org)
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
-// Official repository: https://github.com/ne-foss-org/ne_system
+// Official repository: https://github.com/ne-foss-org/ne-system
#ifndef _SYSTEM_NE_SYSTEM_H_
#define _SYSTEM_NE_SYSTEM_H_
#define _NE_SYSTEM 202603L
-#include <ne_system/System/Detail/Config.h>
+#include <ne-system/System/Detail/Config.h>
/// @brief POSIX wrapper API
#include <libPOSIXWrapper/POSIXKit/unistd.h>
diff --git a/include/ne_system/System/WindowSystems/Wayland.h b/include/ne-system/System/WindowSystems/Wayland.h
index f85fe59..85fe66a 100644
--- a/include/ne_system/System/WindowSystems/Wayland.h
+++ b/include/ne-system/System/WindowSystems/Wayland.h
@@ -8,6 +8,6 @@
#define _NE_WAYLAND_SYSTEM 202603L
-#include <ne_system/System/WindowSystems/X11.h>
+#include <ne-system/System/WindowSystems/X11.h>
#endif // _SYSTEM_NE_WAYLAND_H_ \ No newline at end of file
diff --git a/include/ne_system/System/WindowSystems/X11.h b/include/ne-system/System/WindowSystems/X11.h
index 718b29e..e8bf997 100644
--- a/include/ne_system/System/WindowSystems/X11.h
+++ b/include/ne-system/System/WindowSystems/X11.h
@@ -16,13 +16,13 @@ typedef struct XFCURSOR* XcursorImage;
typedef struct XFCURSOR** XcursorCursors;
/// @brief NeSystem Header.
-#include <ne_system/System/NeSystem.h>
+#include <ne-system/System/NeSystem.h>
/// @brief Defs of the X11 protocol.
-#include <ne_system/System/X11/Imports.h>
+#include <ne-system/System/X11/Imports.h>
/// @brief XDG' extensions of the X11 protocol.
-#include <ne_system/System/X11/Ext/Imports.h>
+#include <ne-system/System/X11/Ext/Imports.h>
#endif // _SYSTEM_NE_X11_H_
diff --git a/src/src/.keep b/src/src/.keep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/src/.keep