mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-05-29 02:28:35 +08:00
添加系统调用
This commit is contained in:
@@ -199,6 +199,11 @@ void *sys_realloc(void *rmem, size_t newsize)
|
|||||||
return rt_lwp_mem_realloc(rmem, newsize);
|
return rt_lwp_mem_realloc(rmem, newsize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int sys_fstat(int file, struct stat *buf)
|
||||||
|
{
|
||||||
|
return fstat(file, buf);
|
||||||
|
}
|
||||||
|
|
||||||
const static void* func_table[] =
|
const static void* func_table[] =
|
||||||
{
|
{
|
||||||
(void *)sys_exit, // 0x01
|
(void *)sys_exit, // 0x01
|
||||||
@@ -219,6 +224,8 @@ const static void* func_table[] =
|
|||||||
|
|
||||||
(void *)sys_malloc, // 0x0d
|
(void *)sys_malloc, // 0x0d
|
||||||
(void *)sys_free, // 0x0e
|
(void *)sys_free, // 0x0e
|
||||||
|
(void *)sys_realloc, //0x0f
|
||||||
|
(void *)sys_fstat, // 0x10
|
||||||
};
|
};
|
||||||
|
|
||||||
const void *lwp_get_sys_api(rt_uint32_t number)
|
const void *lwp_get_sys_api(rt_uint32_t number)
|
||||||
|
|||||||
Reference in New Issue
Block a user