mirror of
https://github.com/openharmony/filemanagement_filemanagement_cangjie_wrapper.git
synced 2026-07-01 01:37:55 -04:00
@@ -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[
|
||||
|
||||
Reference in New Issue
Block a user