diff options
| author | Meco Man <[email protected]> | 2023-09-20 00:42:13 -0400 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2023-09-20 01:31:08 -0400 |
| commit | f6083af2cb6f36c9d64bcc2ad72eb8986a76e3e3 (patch) | |
| tree | 3982fbded5379840a1e129e6c41ff093865c5837 /include/rtdef.h | |
| parent | d75090dd16927f03e8dc0fd8241961aeb126d01c (diff) | |
[rtdef] attach RT_ETRAP errno
this code will not be used in here, but will be used in other user apps
related:
8e6f9cf1be2b08704ff02992dc57d3022bfb073a
ecf2d8215961ca7c539132b62a72df6072cc3e14
Diffstat (limited to 'include/rtdef.h')
| -rw-r--r-- | include/rtdef.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/rtdef.h b/include/rtdef.h index eabbf009ad..5954cf258b 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -419,6 +419,7 @@ typedef int (*init_fn_t)(void); #define RT_ENOENT ENOENT /**< No entry */ #define RT_ENOSPC ENOSPC /**< No space left */ #define RT_EPERM EPERM /**< Operation not permitted */ +#define RT_ETRAP 254 /**< Trap event */ #else #define RT_EOK 0 /**< There is no error */ #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_ENOSPC 12 /**< No space left */ #define RT_EPERM 13 /**< Operation not permitted */ +#define RT_ETRAP 14 /**< Trap event */ #endif /* defined(RT_USING_LIBC) && !RT_USING_LIBC_ISO_ONLY */ /**@}*/ |
