summaryrefslogtreecommitdiffhomepage
path: root/Comm
diff options
context:
space:
mode:
authorAmlal EL Mahrouss <amlalelmahrouss@icloud.com>2024-07-01 09:41:25 +0200
committerAmlal EL Mahrouss <amlalelmahrouss@icloud.com>2024-07-01 09:41:25 +0200
commit9e4a472c109d91ae9550b9474425ce16e081894b (patch)
tree9acdadaee3deefa74fb0bfd17cbec308ef2d4a33 /Comm
parent8ee087a640c2ecf592555457f38ff152bd2f2d2e (diff)
IMP: NewFS: Update ErrLocal if file we want to create exists.
Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Comm')
-rw-r--r--Comm/herror.hxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/Comm/herror.hxx b/Comm/herror.hxx
index bad6f50c..1115e357 100644
--- a/Comm/herror.hxx
+++ b/Comm/herror.hxx
@@ -8,15 +8,19 @@
#include <Comm/newstd.hxx>
-#define ErrLocalIsOk() (kLastError == kErrorSuccess)
-#define ErrLocalFailed() (kLastError != kErrorSuccess)
-#define ErrLocal() kLastError
+#ifdef __KERNEL__
+#error !!! including header in kernel mode !!!
+#endif // __KERNEL__
+
+#define ErrLocalIsOk() (kLastError == kErrorSuccess)
+#define ErrLocalFailed() (kLastError != kErrorSuccess)
+#define ErrLocal() (kLastError)
typedef SInt32 HError;
inline constexpr HError kErrorSuccess = 0;
inline constexpr HError kErrorExecutable = 33;
-inline constexpr HError kErrorExecutableLib = 34; // no such library!!!
+inline constexpr HError kErrorExecutableLib = 34;
inline constexpr HError kErrorFileNotFound = 35;
inline constexpr HError kErrorDirectoryNotFound = 36;
inline constexpr HError kErrorDiskReadOnly = 37;