summaryrefslogtreecommitdiffstats
path: root/contrib/syslinux-4.02/core/fs/lib/close.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/syslinux-4.02/core/fs/lib/close.c')
-rw-r--r--contrib/syslinux-4.02/core/fs/lib/close.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/syslinux-4.02/core/fs/lib/close.c b/contrib/syslinux-4.02/core/fs/lib/close.c
new file mode 100644
index 0000000..279598b
--- /dev/null
+++ b/contrib/syslinux-4.02/core/fs/lib/close.c
@@ -0,0 +1,9 @@
+#include "fs.h"
+
+void generic_close_file(struct file *file)
+{
+ if (file->inode) {
+ file->offset = 0;
+ put_inode(file->inode);
+ }
+}