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

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

re #I446P5

Signed-off-by: vcbchang <vcbchang@qq.com>
Change-Id: Ideec24fb8d29263fd011af9428801d08000e17e5
This commit is contained in:
vcbchang 2021-08-06 16:48:46 +08:00
parent d2fe0e788b
commit 3bfa995a9d
1 changed files with 2 additions and 0 deletions

View File

@ -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)