summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
65067f3)
Change-Id: I174c6dd5fb90cf32b51de86bcd08ca2c75a7ebd0
status = fwrite(vibe_buferf, 1, size, pf);
if (status != size) {
MODULE_ERROR("To write file is failed");
status = fwrite(vibe_buferf, 1, size, pf);
if (status != size) {
MODULE_ERROR("To write file is failed");
return HAPTIC_MODULE_OPERATION_FAILED;
}
fd = fileno(pf);
if (fd == -1) {
MODULE_ERROR("To get file descriptor is failed");
return HAPTIC_MODULE_OPERATION_FAILED;
}
fd = fileno(pf);
if (fd == -1) {
MODULE_ERROR("To get file descriptor is failed");
return HAPTIC_MODULE_OPERATION_FAILED;
}
status = fsync(fd);
if (status == -1) {
MODULE_ERROR("To be synchronized with the disk is failed");
return HAPTIC_MODULE_OPERATION_FAILED;
}
status = fsync(fd);
if (status == -1) {
MODULE_ERROR("To be synchronized with the disk is failed");
return HAPTIC_MODULE_OPERATION_FAILED;
}
return HAPTIC_MODULE_OPERATION_FAILED;
}