From c3b08d4288e4f61b300217d4eeb327aa1d3be04a Mon Sep 17 00:00:00 2001 From: xqyjlj Date: Mon, 27 Mar 2023 14:50:53 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(components/lwp/lwp=5Fsyscall.c?= =?UTF-8?q?):=20add=20sys=5Flstat=20support?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit temporarily use sys_stat. should be replaced by sys_lstat if symbolic link are implemented --- components/lwp/lwp_syscall.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/lwp/lwp_syscall.c b/components/lwp/lwp_syscall.c index 9c06d84f4c..7c0a83c39e 100644 --- a/components/lwp/lwp_syscall.c +++ b/components/lwp/lwp_syscall.c @@ -4771,10 +4771,11 @@ const static struct rt_syscall_def func_table[] = SYSCALL_SIGN(sys_mq_open), SYSCALL_SIGN(sys_mq_unlink), SYSCALL_SIGN(sys_mq_timedsend), - SYSCALL_SIGN(sys_mq_timedreceive), + SYSCALL_SIGN(sys_mq_timedreceive), /* 165 */ SYSCALL_SIGN(sys_mq_notify), SYSCALL_SIGN(sys_mq_getsetattr), SYSCALL_SIGN(sys_mq_close), + SYSCALL_SIGN(sys_stat), //TODO should be replaced by sys_lstat if symbolic link are implemented }; const void *lwp_get_sys_api(rt_uint32_t number)