summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--public/frameworks/CoreFoundation.fwrk/headers/Array.h4
-rw-r--r--public/frameworks/CoreFoundation.fwrk/headers/Atom.h4
-rw-r--r--public/frameworks/CoreFoundation.fwrk/headers/Dictionary.h4
-rw-r--r--public/frameworks/CoreFoundation.fwrk/headers/Foundation.h4
-rw-r--r--public/frameworks/CoreFoundation.fwrk/headers/Object.h4
-rw-r--r--public/frameworks/CoreFoundation.fwrk/headers/Property.h4
-rw-r--r--public/frameworks/CoreFoundation.fwrk/headers/Ref.h4
-rw-r--r--public/frameworks/CoreFoundation.fwrk/headers/String.h4
-rw-r--r--public/frameworks/DiskImage.fwrk/headers/DiskImage.h4
-rw-r--r--public/frameworks/KernelTest.fwrk/headers/Foundation.h4
-rw-r--r--public/frameworks/KernelTest.fwrk/headers/SourceLocation.h4
-rw-r--r--public/frameworks/KernelTest.fwrk/headers/TestCase.h4
-rw-r--r--public/frameworks/LaunchHelpers.fwrk/headers/Foundation.h4
-rw-r--r--src/kernel/src/FS/Ext2+FileMgr.cpp16
-rw-r--r--src/kernel/src/FS/Ext2+FileSystemParser.cpp (renamed from src/kernel/src/FS/Ext2+IFS.cpp)0
-rw-r--r--src/kernel/src/FS/OpenHeFS+FileMgr.cpp2
-rw-r--r--test/kernel_tests/libddk_tests/Makefile7
-rw-r--r--test/module_tests/libpthread_tests/Makefile19
18 files changed, 65 insertions, 31 deletions
diff --git a/public/frameworks/CoreFoundation.fwrk/headers/Array.h b/public/frameworks/CoreFoundation.fwrk/headers/Array.h
index afc5ea77..e5df695d 100644
--- a/public/frameworks/CoreFoundation.fwrk/headers/Array.h
+++ b/public/frameworks/CoreFoundation.fwrk/headers/Array.h
@@ -3,8 +3,8 @@
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
// Official repository: https://github.com/ne-foss-org/nekernel
-#ifndef HEADERS_ARRAY_H
-#define HEADERS_ARRAY_H
+#ifndef FW_HEADERS_ARRAY_H
+#define FW_HEADERS_ARRAY_H
#include <libSystem/SystemKit/System.h>
diff --git a/public/frameworks/CoreFoundation.fwrk/headers/Atom.h b/public/frameworks/CoreFoundation.fwrk/headers/Atom.h
index 5abf9824..4ec12f57 100644
--- a/public/frameworks/CoreFoundation.fwrk/headers/Atom.h
+++ b/public/frameworks/CoreFoundation.fwrk/headers/Atom.h
@@ -3,8 +3,8 @@
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
// Official repository: https://github.com/ne-foss-org/nekernel
-#ifndef HEADERS_ATOM_H
-#define HEADERS_ATOM_H
+#ifndef FW_HEADERS_ATOM_H
+#define FW_HEADERS_ATOM_H
#include <CoreFoundation.fwrk/headers/Foundation.h>
diff --git a/public/frameworks/CoreFoundation.fwrk/headers/Dictionary.h b/public/frameworks/CoreFoundation.fwrk/headers/Dictionary.h
index f10dc2de..41e6d289 100644
--- a/public/frameworks/CoreFoundation.fwrk/headers/Dictionary.h
+++ b/public/frameworks/CoreFoundation.fwrk/headers/Dictionary.h
@@ -3,8 +3,8 @@
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
// Official repository: https://github.com/ne-foss-org/nekernel
-#ifndef HEADERS_DICTIONARY_H
-#define HEADERS_DICTIONARY_H
+#ifndef FW_HEADERS_DICTIONARY_H
+#define FW_HEADERS_DICTIONARY_H
#include <libSystem/SystemKit/System.h>
diff --git a/public/frameworks/CoreFoundation.fwrk/headers/Foundation.h b/public/frameworks/CoreFoundation.fwrk/headers/Foundation.h
index 82f3dca2..8f959543 100644
--- a/public/frameworks/CoreFoundation.fwrk/headers/Foundation.h
+++ b/public/frameworks/CoreFoundation.fwrk/headers/Foundation.h
@@ -3,8 +3,8 @@
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
// Official repository: https://github.com/ne-foss-org/nekernel
-#ifndef HEADERS_FOUNDATION_H
-#define HEADERS_FOUNDATION_H
+#ifndef FW_HEADERS_FOUNDATION_H
+#define FW_HEADERS_FOUNDATION_H
#include <libSystem/SystemKit/System.h>
diff --git a/public/frameworks/CoreFoundation.fwrk/headers/Object.h b/public/frameworks/CoreFoundation.fwrk/headers/Object.h
index 54ee6268..771a2a6a 100644
--- a/public/frameworks/CoreFoundation.fwrk/headers/Object.h
+++ b/public/frameworks/CoreFoundation.fwrk/headers/Object.h
@@ -4,8 +4,8 @@
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
// Official repository: https://github.com/ne-foss-org/nekernel
-#ifndef HEADERS_OBJECT_H
-#define HEADERS_OBJECT_H
+#ifndef FW_HEADERS_OBJECT_H
+#define FW_HEADERS_OBJECT_H
#include <CoreFoundation.fwrk/headers/Foundation.h>
diff --git a/public/frameworks/CoreFoundation.fwrk/headers/Property.h b/public/frameworks/CoreFoundation.fwrk/headers/Property.h
index f3176827..33773d36 100644
--- a/public/frameworks/CoreFoundation.fwrk/headers/Property.h
+++ b/public/frameworks/CoreFoundation.fwrk/headers/Property.h
@@ -3,8 +3,8 @@
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
// Official repository: https://github.com/ne-foss-org/nekernel
-#ifndef HEADERS_PROPERTY_H
-#define HEADERS_PROPERTY_H
+#ifndef FW_HEADERS_PROPERTY_H
+#define FW_HEADERS_PROPERTY_H
#include <CoreFoundation.fwrk/headers/Foundation.h>
#include <CoreFoundation.fwrk/headers/Ref.h>
diff --git a/public/frameworks/CoreFoundation.fwrk/headers/Ref.h b/public/frameworks/CoreFoundation.fwrk/headers/Ref.h
index 59928e4e..31b12fc6 100644
--- a/public/frameworks/CoreFoundation.fwrk/headers/Ref.h
+++ b/public/frameworks/CoreFoundation.fwrk/headers/Ref.h
@@ -3,8 +3,8 @@
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
// Official repository: https://github.com/ne-foss-org/nekernel
-#ifndef HEADERS_REF_H
-#define HEADERS_REF_H
+#ifndef FW_HEADERS_REF_H
+#define FW_HEADERS_REF_H
#include <CoreFoundation.fwrk/headers/Object.h>
#include <libSystem/SystemKit/System.h>
diff --git a/public/frameworks/CoreFoundation.fwrk/headers/String.h b/public/frameworks/CoreFoundation.fwrk/headers/String.h
index d82646ee..baf9803f 100644
--- a/public/frameworks/CoreFoundation.fwrk/headers/String.h
+++ b/public/frameworks/CoreFoundation.fwrk/headers/String.h
@@ -3,8 +3,8 @@
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
// Official repository: https://github.com/ne-foss-org/nekernel
-#ifndef HEADERS_STRING_H
-#define HEADERS_STRING_H
+#ifndef FW_HEADERS_STRING_H
+#define FW_HEADERS_STRING_H
#include <CoreFoundation.fwrk/headers/Object.h>
#include <CoreFoundation.fwrk/headers/Ref.h>
diff --git a/public/frameworks/DiskImage.fwrk/headers/DiskImage.h b/public/frameworks/DiskImage.fwrk/headers/DiskImage.h
index 5ac8bd4b..346864a6 100644
--- a/public/frameworks/DiskImage.fwrk/headers/DiskImage.h
+++ b/public/frameworks/DiskImage.fwrk/headers/DiskImage.h
@@ -3,8 +3,8 @@
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
// Official repository: https://github.com/ne-foss-org/nekernel
-#ifndef HEADERS_DISKIMAGE_H
-#define HEADERS_DISKIMAGE_H
+#ifndef FW_HEADERS_DISKIMAGE_H
+#define FW_HEADERS_DISKIMAGE_H
#include <libSystem/SystemKit/System.h>
diff --git a/public/frameworks/KernelTest.fwrk/headers/Foundation.h b/public/frameworks/KernelTest.fwrk/headers/Foundation.h
index 2b9e848b..82066bdd 100644
--- a/public/frameworks/KernelTest.fwrk/headers/Foundation.h
+++ b/public/frameworks/KernelTest.fwrk/headers/Foundation.h
@@ -3,8 +3,8 @@
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
// Official repository: https://github.com/ne-foss-org/nekernel
-#ifndef HEADERS_FOUNDATION_H
-#define HEADERS_FOUNDATION_H
+#ifndef FW_HEADERS_FOUNDATION_H
+#define FW_HEADERS_FOUNDATION_H
#include <libSystem/SystemKit/Err.h>
#include <libSystem/SystemKit/System.h>
diff --git a/public/frameworks/KernelTest.fwrk/headers/SourceLocation.h b/public/frameworks/KernelTest.fwrk/headers/SourceLocation.h
index b8f5abd0..80361dc1 100644
--- a/public/frameworks/KernelTest.fwrk/headers/SourceLocation.h
+++ b/public/frameworks/KernelTest.fwrk/headers/SourceLocation.h
@@ -3,8 +3,8 @@
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
// Official repository: https://github.com/ne-foss-org/nekernel
-#ifndef HEADERS_SOURCELOCATION_H
-#define HEADERS_SOURCELOCATION_H
+#ifndef FW_HEADERS_SOURCELOCATION_H
+#define FW_HEADERS_SOURCELOCATION_H
#include <KernelTest.fwrk/headers/Foundation.h>
diff --git a/public/frameworks/KernelTest.fwrk/headers/TestCase.h b/public/frameworks/KernelTest.fwrk/headers/TestCase.h
index 2090f84e..7f97798d 100644
--- a/public/frameworks/KernelTest.fwrk/headers/TestCase.h
+++ b/public/frameworks/KernelTest.fwrk/headers/TestCase.h
@@ -3,8 +3,8 @@
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
// Official repository: https://github.com/ne-foss-org/nekernel
-#ifndef HEADERS_TESTCASE_H
-#define HEADERS_TESTCASE_H
+#ifndef FW_HEADERS_TESTCASE_H
+#define FW_HEADERS_TESTCASE_H
#include <KernelTest.fwrk/headers/SourceLocation.h>
diff --git a/public/frameworks/LaunchHelpers.fwrk/headers/Foundation.h b/public/frameworks/LaunchHelpers.fwrk/headers/Foundation.h
index fba7f492..2b45903d 100644
--- a/public/frameworks/LaunchHelpers.fwrk/headers/Foundation.h
+++ b/public/frameworks/LaunchHelpers.fwrk/headers/Foundation.h
@@ -3,8 +3,8 @@
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
// Official repository: https://github.com/ne-foss-org/nekernel
-#ifndef HEADERS_FOUNDATION_H
-#define HEADERS_FOUNDATION_H
+#ifndef FW_HEADERS_FOUNDATION_H
+#define FW_HEADERS_FOUNDATION_H
#include <CoreFoundation.fwrk/headers/Foundation.h>
#include <CoreFoundation.fwrk/headers/String.h>
diff --git a/src/kernel/src/FS/Ext2+FileMgr.cpp b/src/kernel/src/FS/Ext2+FileMgr.cpp
new file mode 100644
index 00000000..c034183d
--- /dev/null
+++ b/src/kernel/src/FS/Ext2+FileMgr.cpp
@@ -0,0 +1,16 @@
+// SPDX-License-Identifier: Apache-2.0
+// Copyright 2024-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/nekernel
+
+#ifndef __NE_MINIMAL_OS__
+#ifdef __FSKIT_INCLUDES_EXT2__
+
+#include <KernelKit/FileMgr.h>
+#include <KernelKit/HeapMgr.h>
+
+/// @brief Ext2 File System Manager.
+/// BUGS: 0
+
+#endif
+#endif \ No newline at end of file
diff --git a/src/kernel/src/FS/Ext2+IFS.cpp b/src/kernel/src/FS/Ext2+FileSystemParser.cpp
index 4816119e..4816119e 100644
--- a/src/kernel/src/FS/Ext2+IFS.cpp
+++ b/src/kernel/src/FS/Ext2+FileSystemParser.cpp
diff --git a/src/kernel/src/FS/OpenHeFS+FileMgr.cpp b/src/kernel/src/FS/OpenHeFS+FileMgr.cpp
index 773ed5da..80c51061 100644
--- a/src/kernel/src/FS/OpenHeFS+FileMgr.cpp
+++ b/src/kernel/src/FS/OpenHeFS+FileMgr.cpp
@@ -13,6 +13,7 @@
/// BUGS: 0
namespace Kernel {
+
/// @brief C++ constructor
HeFileSystemMgr::HeFileSystemMgr() {
mParser = new HeFileSystemParser();
@@ -282,6 +283,7 @@ _Output Bool HeFileSystemMgr::Rewind(NodePtr node) {
_Output HeFileSystemParser* HeFileSystemMgr::GetParser() {
return mParser;
}
+
} // namespace Kernel
#endif // ifdef __FSKIT_INCLUDES_OPENHEFS__
diff --git a/test/kernel_tests/libddk_tests/Makefile b/test/kernel_tests/libddk_tests/Makefile
index a2bb9d4f..de3df855 100644
--- a/test/kernel_tests/libddk_tests/Makefile
+++ b/test/kernel_tests/libddk_tests/Makefile
@@ -4,14 +4,11 @@
##################################################
GCC=x86_64-w64-mingw32-g++ -Wl,-subsystem=17
-LIB=-L../../src/libSystem -lSystem
+LIB=-L../../src/libDDK -lDDK
STD=-std=c++20 -DKT_TESTING_ENABLED
INCLUDE=-I../../src -I../../public -I../../public/frameworks/ -I../../
-OBJ_FILES = \
- thread.test.exe \
- memory.test.exe \
- io.test.exe
+OBJ_FILES =
.PHONY: all
all: $(OBJ_FILES)
diff --git a/test/module_tests/libpthread_tests/Makefile b/test/module_tests/libpthread_tests/Makefile
new file mode 100644
index 00000000..cb3f818c
--- /dev/null
+++ b/test/module_tests/libpthread_tests/Makefile
@@ -0,0 +1,19 @@
+##################################################
+# (c) Amlal El Mahrouss and NeKernel Authors, licensed under the Apache 2.0 license.
+# This file is for libsystem testing.
+##################################################
+
+GCC=x86_64-w64-mingw32-g++ -Wl,-subsystem=17
+LIB=-L../../src/libPThread -lPThread
+STD=-std=c++20 -DKT_TESTING_ENABLED
+INCLUDE=-I../../src -I../../public -I../../public/frameworks/ -I../../
+
+OBJ_FILES =
+
+.PHONY: all
+all: $(OBJ_FILES)
+
+%.exe: %.cc
+ @echo "==> Building test: $@"
+ $(GCC) $(LIB) $< \
+ $(STD) $(INCLUDE) -o $(basename $<).exe \ No newline at end of file