/**
* Close file \a fd.
- * This is a generic implementation that only return 0.
+ * This is a generic implementation that only flush the file.
*/
-int kfile_genericClose(UNUSED_ARG(struct KFile *, fd))
+int kfile_genericClose(struct KFile *fd)
{
- return 0;
-};
+ return kfile_flush(fd);
+}
/**