return -1;
}
- silc_file_close(fd);
+ fsync(fd);
- return 0;
+ return silc_file_close(fd);
}
/* Writes a buffer to the file. If the file is created specific mode is
return -1;
}
- silc_file_close(fd);
+ fsync(fd);
- return 0;
+ return silc_file_close(fd);
}
/* Reads a file to a buffer. The allocated buffer is returned. Length of