2018-12-24 22:38:14 +01:00
|
|
|
//----------------------------------------------------------------------------//
|
|
|
|
// GNU GPL OS/K //
|
|
|
|
// //
|
|
|
|
// Authors: spectral` //
|
|
|
|
// NeoX //
|
|
|
|
// //
|
|
|
|
// Desc: Implementation of describe_status() //
|
|
|
|
//----------------------------------------------------------------------------//
|
|
|
|
|
2019-01-01 13:09:57 +01:00
|
|
|
#include <kaleid.h>
|
2018-12-24 22:38:14 +01:00
|
|
|
|
2019-01-14 23:16:26 +01:00
|
|
|
error_t __errno = 0;
|
2019-01-14 14:31:49 +01:00
|
|
|
|
|
|
|
/*
|
2018-12-24 22:38:14 +01:00
|
|
|
static const char *descriptions[] = {
|
|
|
|
[-SUCCESS] = "Success",
|
|
|
|
[-FAILED] = "Failed (no precision)",
|
|
|
|
[-NOT_PERMITTED] = "Operation not permitted",
|
|
|
|
[-ACCESS_DENIED] = "Access denied",
|
2019-01-14 23:16:26 +01:00
|
|
|
|
2018-12-24 22:38:14 +01:00
|
|
|
[-BAD_ARGUMENT] = "Bad argument",
|
|
|
|
[-BAD_ARG_RANGE] = "Bad argument (not in range)",
|
|
|
|
[-BAD_ARG_NULL] = "Bad argument (null pointer)",
|
|
|
|
};
|
|
|
|
|
|
|
|
const char *describe_status(status_t status)
|
|
|
|
{
|
|
|
|
(void)descriptions;
|
|
|
|
(void)status;
|
|
|
|
|
|
|
|
// XXX
|
|
|
|
return "";
|
|
|
|
}
|
2019-01-14 14:31:49 +01:00
|
|
|
*/
|