mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 03:09:16 +08:00
add errno implementation in RT-Thread.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1682 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
@@ -365,6 +365,12 @@ void rt_kprintf(const char *fmt, ...);
|
||||
|
||||
rt_err_t rt_get_errno(void);
|
||||
void rt_set_errno(rt_err_t no);
|
||||
int *_rt_errno(void);
|
||||
#ifndef RT_USING_NEWLIB
|
||||
#ifndef errno
|
||||
#define errno *_rt_errno()
|
||||
#endif
|
||||
#endif
|
||||
|
||||
void* rt_memset(void *src, int c, rt_ubase_t n);
|
||||
void* rt_memcpy(void *dest, const void *src, rt_ubase_t n);
|
||||
|
||||
Reference in New Issue
Block a user