summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorheyuanjie <[email protected]>2018-06-11 17:06:33 +0800
committerheyuanjie <[email protected]>2018-06-11 17:06:33 +0800
commita6e7b334e9400b8e4e9f8a4a0aa0f8cbd2df5253 (patch)
tree2a5bcff50a9207f62121fd9099a191d44a7c9714 /components
parent22d5e3c3a9d7520b0432e5d8ce2775685e0952d9 (diff)
添加系统调用
Diffstat (limited to 'components')
-rw-r--r--components/lwp/lwp_syscall.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/components/lwp/lwp_syscall.c b/components/lwp/lwp_syscall.c
index be5e15dcb3..f0d2f0e9eb 100644
--- a/components/lwp/lwp_syscall.c
+++ b/components/lwp/lwp_syscall.c
@@ -199,6 +199,11 @@ void *sys_realloc(void *rmem, size_t 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[] =
{
(void *)sys_exit, // 0x01
@@ -219,6 +224,8 @@ const static void* func_table[] =
(void *)sys_malloc, // 0x0d
(void *)sys_free, // 0x0e
+ (void *)sys_realloc, //0x0f
+ (void *)sys_fstat, // 0x10
};
const void *lwp_get_sys_api(rt_uint32_t number)