CE interactive shell
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m36s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m36s
This commit is contained in:
23
libsystem/str_status.h
Normal file
23
libsystem/str_status.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef _LIBSYSTEM_STR_STATUS_H
|
||||
#define _LIBSYSTEM_STR_STATUS_H
|
||||
|
||||
#include <m/status.h>
|
||||
|
||||
static const char* str_status[] = {
|
||||
[ST_OK] = "ok",
|
||||
[ST_SYSCALL_NOT_FOUND] = "syscall not found",
|
||||
[ST_UNALIGNED] = "alignment error",
|
||||
[ST_OOM_ERROR] = "out of memory",
|
||||
[ST_NOT_FOUND] = "not found",
|
||||
[ST_BAD_ADDRESS_SPACE] = "pointer outside of virtual address space",
|
||||
[ST_PERMISSION_ERROR] = "permission error",
|
||||
[ST_BAD_RESOURCE] = "invalid resource",
|
||||
[ST_BAD_DEVICE_OP] = "bad device operation",
|
||||
[ST_EXISTS] = "already exists",
|
||||
[ST_OOB_ERROR] = "out of bounds access",
|
||||
[ST_BAD_PATH] = "path parsing error",
|
||||
[ST_EXEC_ERROR] = "exec error",
|
||||
[ST_MOUNT_ERROR] = "mount error",
|
||||
};
|
||||
|
||||
#endif // _LIBSYSTEM_STR_STATUS_H
|
||||
Reference in New Issue
Block a user