13 switch (errno_input) {
23 status = File::Status::DOESNT_EXIST;
28 status = File::Status::NO_PERMISSION;
31 status = File::Status::FILE_EXISTS;
34 status = File::Status::NOT_OPENED;
39 status = File::Status::NOT_SUPPORTED;
42 status = File::Status::INVALID_ARGUMENT;
53 switch (errno_input) {
59 status = FileSystem::Status::NO_PERMISSION;
64 status = FileSystem::Status::NO_PERMISSION;
67 status = FileSystem::Status::ALREADY_EXISTS;
71 status = FileSystem::Status::DOESNT_EXIST;
74 status = FileSystem::Status::INVALID_PATH;
77 status = FileSystem::Status::NOT_DIR;
83 status = FileSystem::Status::FILE_LIMIT;
91 status = FileSystem::Status::NOT_SUPPORTED;
94 status = FileSystem::Status::BUFFER_TOO_SMALL;
97 status = FileSystem::Status::EXDEV_ERROR;
108 switch (errno_input) {
113 status = Directory::Status::DOESNT_EXIST;
116 status = Directory::Status::NO_PERMISSION;
119 status = Directory::Status::NOT_DIR;
122 status = Directory::Status::ALREADY_EXISTS;
133 switch (errno_input) {
138 status = RawTime::Status::INVALID_PARAMS;
149 switch (posix_status) {
154 status = Task::Status::INVALID_PARAMS;
157 status = Task::Status::ERROR_PERMISSION;
160 status = Task::Status::ERROR_RESOURCES;
163 status = Task::Status::UNKNOWN_ERROR;
171 switch (posix_status) {
176 status = Mutex::Status::ERROR_BUSY;
179 status = Mutex::Status::ERROR_DEADLOCK;
182 status = Mutex::Status::ERROR_OTHER;
int PlatformIntType
DefaultTypes.hpp provides fallback defaults for the platform types.
@ OP_OK
Operation succeeded.
File::Status errno_to_file_status(PlatformIntType errno_input)
Directory::Status errno_to_directory_status(PlatformIntType errno_input)
FileSystem::Status errno_to_filesystem_status(PlatformIntType errno_input)
Task::Status posix_status_to_task_status(PlatformIntType posix_status)
Mutex::Status posix_status_to_mutex_status(PlatformIntType posix_status)
RawTime::Status errno_to_rawtime_status(PlatformIntType errno_input)
@ OTHER_ERROR
A catch-all for other errors. Have to look in implementation-specific code.
@ NO_SPACE
No space left on the device for writing.