36 lines
697 B
C++
36 lines
697 B
C++
/*
|
|
* statuscodes.h
|
|
* MontaukOS status codes
|
|
* Copyright (c) 2026 Daniel Hammer
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
// Userspace mirror of kernel/src/Common/StatusCodes.hpp. Also usable from C
|
|
// (the libc includes it), where the enumerators are unqualified.
|
|
#ifdef __cplusplus
|
|
namespace montauk {
|
|
#endif
|
|
|
|
enum StatusCode {
|
|
Success = 0,
|
|
GenericFailure = -1,
|
|
PermissionDenied = -2,
|
|
CapabilityDenied = -3,
|
|
SystemIntegrityError = -4,
|
|
BadPointer = -5,
|
|
InvalidArgument = -6,
|
|
UnsupportedOp = -7,
|
|
NoDevice = -8,
|
|
IoFailure = -9,
|
|
BadInvocation = -10,
|
|
NoSuchPath = -11,
|
|
Busy = -12,
|
|
BufferTooSmall = -13,
|
|
OutOfMemory = -14
|
|
};
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|