mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-11-16 12:34:33 +00:00
[enhancement] Add string information for error (#3186)
* [enhancement]Add string information for error * Update src/kservice.c * Update src/kservice.c Co-authored-by: Man, Jianting (Meco) <920369182@qq.com> * remove %m Signed-off-by: a1012112796 <1012112796@qq.com> Co-authored-by: Meco Man <920369182@qq.com>
This commit is contained in:
@@ -592,6 +592,7 @@ rt_device_t rt_console_get_device(void);
|
||||
rt_err_t rt_get_errno(void);
|
||||
void rt_set_errno(rt_err_t no);
|
||||
int *_rt_errno(void);
|
||||
const char *rt_strerror(rt_err_t error);
|
||||
#if !defined(RT_USING_NEWLIB) && !defined(_WIN32)
|
||||
#ifndef errno
|
||||
#define errno *_rt_errno()
|
||||
|
||||
Reference in New Issue
Block a user