diff options
| author | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-03-15 20:37:20 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-03-15 20:39:36 +0100 |
| commit | 8f9b5e08f53f6e49a1f4c6b20e17c54298da9c44 (patch) | |
| tree | 6436b7deedeffc32cdc9e27c24a868ac896db89a /Private/KernelKit | |
| parent | a87a74f9d56078ec55b3b73c81cfc422dca6554c (diff) | |
HCR-14: HCFS and NewFS: Reworked some parts of it, will also work on
exposing objects for it.
- Expsoing objects to the API is important so that the developer can
take advantage of these filesystem specific APIs.
- Update XRN UUID formatting.
Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Private/KernelKit')
| -rw-r--r-- | Private/KernelKit/HError.hpp | 4 | ||||
| -rw-r--r-- | Private/KernelKit/LoaderInterface.hpp | 10 | ||||
| -rw-r--r-- | Private/KernelKit/PECodeManager.hxx | 2 | ||||
| -rw-r--r-- | Private/KernelKit/ProcessScheduler.hpp | 1 |
4 files changed, 10 insertions, 7 deletions
diff --git a/Private/KernelKit/HError.hpp b/Private/KernelKit/HError.hpp index 41bfaf3d..6fb55f5a 100644 --- a/Private/KernelKit/HError.hpp +++ b/Private/KernelKit/HError.hpp @@ -14,7 +14,7 @@ typedef Int32 HError; inline constexpr HError kErrorSuccess = 0; inline constexpr HError kErrorExecutable = 33; -inline constexpr HError kErrorExecutableLib = 34; +inline constexpr HError kErrorExecutableLib = 34; // no such library!!! inline constexpr HError kErrorFileNotFound = 35; inline constexpr HError kErrorDirectoryNotFound = 36; inline constexpr HError kErrorDiskReadOnly = 37; @@ -27,6 +27,8 @@ inline constexpr HError kErrorNoNetwork = 43; inline constexpr HError kErrorHeapOutOfMemory = 44; inline constexpr HError kErrorNoSuchDisk = 45; inline constexpr HError kErrorFileExists = 46; +inline constexpr HError kErrorFormatFailed = 47; +inline constexpr HError kErrorNetworkTimeout = 48; inline constexpr HError kErrorUnimplemented = 0; Boolean ke_bug_check(void) noexcept; diff --git a/Private/KernelKit/LoaderInterface.hpp b/Private/KernelKit/LoaderInterface.hpp index a19ba483..51257e72 100644 --- a/Private/KernelKit/LoaderInterface.hpp +++ b/Private/KernelKit/LoaderInterface.hpp @@ -21,10 +21,10 @@ class LoaderInterface { HCORE_COPY_DEFAULT(LoaderInterface); public: - virtual const char* Format() = 0; - virtual const char* MIME() = 0; - virtual const char* Path() = 0; - virtual ErrorOr<VoidPtr> FindStart() = 0; - virtual VoidPtr FindSymbol(const char* name, Int32 kind) = 0; + virtual _Output const char* Format() = 0; + virtual _Output const char* MIME() = 0; + virtual _Output const char* Path() = 0; + virtual _Output ErrorOr<VoidPtr> FindStart() = 0; + virtual _Output VoidPtr FindSymbol(_Input const char* name, _Input Int32 kind) = 0; }; } // namespace HCore diff --git a/Private/KernelKit/PECodeManager.hxx b/Private/KernelKit/PECodeManager.hxx index bd72f4ec..1f15a742 100644 --- a/Private/KernelKit/PECodeManager.hxx +++ b/Private/KernelKit/PECodeManager.hxx @@ -21,4 +21,4 @@ #include <KernelKit/PE.hpp> #include <NewKit/ErrorOr.hpp> -#include <NewKit/String.hpp>
\ No newline at end of file +#include <NewKit/String.hpp> diff --git a/Private/KernelKit/ProcessScheduler.hpp b/Private/KernelKit/ProcessScheduler.hpp index e69d2fcf..733c7c65 100644 --- a/Private/KernelKit/ProcessScheduler.hpp +++ b/Private/KernelKit/ProcessScheduler.hpp @@ -16,6 +16,7 @@ #include <NewKit/UserHeap.hpp> #define kMinMicroTime AffinityKind::kHartStandard +#define kPIDInvalid (-1) //////////////////////////////////////////////////// |
