mirror of https://github.com/RT-Thread/rt-thread
[rtdef] attach RT_ETRAP errno
this code will not be used in here, but will be used in other user apps related:8e6f9cf1be
ecf2d82159
This commit is contained in:
parent
d75090dd16
commit
f6083af2cb
|
@ -419,6 +419,7 @@ typedef int (*init_fn_t)(void);
|
||||||
#define RT_ENOENT ENOENT /**< No entry */
|
#define RT_ENOENT ENOENT /**< No entry */
|
||||||
#define RT_ENOSPC ENOSPC /**< No space left */
|
#define RT_ENOSPC ENOSPC /**< No space left */
|
||||||
#define RT_EPERM EPERM /**< Operation not permitted */
|
#define RT_EPERM EPERM /**< Operation not permitted */
|
||||||
|
#define RT_ETRAP 254 /**< Trap event */
|
||||||
#else
|
#else
|
||||||
#define RT_EOK 0 /**< There is no error */
|
#define RT_EOK 0 /**< There is no error */
|
||||||
#define RT_ERROR 1 /**< A generic/unknown error happens */
|
#define RT_ERROR 1 /**< A generic/unknown error happens */
|
||||||
|
@ -434,6 +435,7 @@ typedef int (*init_fn_t)(void);
|
||||||
#define RT_ENOENT 11 /**< No entry */
|
#define RT_ENOENT 11 /**< No entry */
|
||||||
#define RT_ENOSPC 12 /**< No space left */
|
#define RT_ENOSPC 12 /**< No space left */
|
||||||
#define RT_EPERM 13 /**< Operation not permitted */
|
#define RT_EPERM 13 /**< Operation not permitted */
|
||||||
|
#define RT_ETRAP 14 /**< Trap event */
|
||||||
#endif /* defined(RT_USING_LIBC) && !RT_USING_LIBC_ISO_ONLY */
|
#endif /* defined(RT_USING_LIBC) && !RT_USING_LIBC_ISO_ONLY */
|
||||||
|
|
||||||
/**@}*/
|
/**@}*/
|
||||||
|
|
|
@ -118,6 +118,7 @@ static struct _errno_str_t rt_errno_strs[] =
|
||||||
{RT_ENOENT , "ENOENT "},
|
{RT_ENOENT , "ENOENT "},
|
||||||
{RT_ENOSPC , "ENOSPC "},
|
{RT_ENOSPC , "ENOSPC "},
|
||||||
{RT_EPERM , "EPERM "},
|
{RT_EPERM , "EPERM "},
|
||||||
|
{RT_ETRAP , "ETRAP "},
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue