add preview api

Signed-off-by: goukun <wangkunshi@huawei.com>
This commit is contained in:
goukun
2026-02-25 09:55:39 +08:00
parent 1156c422b5
commit f6213f5ad3
+8 -1
View File
@@ -731,7 +731,14 @@ public class FileIo {
workerthread: true
]
public static func fsync(fd: Int32): Unit {
return ()
let ret: Int32
unsafe {
ret = FfiOHOSFileFsFsync(fd)
}
if (ret != SUCCESS_CODE) {
FS_LOG.error(getErrorInfo(ret))
throw BusinessException(ret, getErrorInfo(ret))
}
}
@!APILevel[