提交 3bfa995a 编写于 作者: V vcbchang

fix:调用sync函数会打印出unsupport sync,但现在在fat文件系统下可以sync,这里做出修复

【背景】 当前调用sync函数会打印出unsupport sync,但实际上在fat文件系统下可以正常调用sync,而在其他文件系统下不可以,因此这里的实现不正确,故修改限制sync的打印
【修改方案】
删除musl/porting下的sync,使用原生musl下的函数,并把不支持的打印放到内核系统调用中

re #I446P5
Signed-off-by: Nvcbchang <vcbchang@qq.com>
Change-Id: Ideec24fb8d29263fd011af9428801d08000e17e5
上级 d2fe0e78
...@@ -460,8 +460,10 @@ void sync(void) ...@@ -460,8 +460,10 @@ void sync(void)
{ {
(void)sd_sync_fn(0); (void)sd_sync_fn(0);
(void)sd_sync_fn(1); (void)sd_sync_fn(1);
return;
} }
#endif #endif
PRINT_ERR("Unsupport syscall %s\n", __FUNCTION__);
} }
static char *ls_get_fullpath(const char *path, struct dirent *pdirent) static char *ls_get_fullpath(const char *path, struct dirent *pdirent)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册