From 11a09e632ceb5513aad54aa6b2c6031bb28b4533 Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Mon, 11 Nov 2002 10:21:51 +0000 Subject: close() now does not truncate the file. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2821 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/fat.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'firmware/drivers/fat.h') diff --git a/firmware/drivers/fat.h b/firmware/drivers/fat.h index 6ed68ad8d8..b23d8dfa08 100644 --- a/firmware/drivers/fat.h +++ b/firmware/drivers/fat.h @@ -79,8 +79,9 @@ extern int fat_create_file(char* name, extern int fat_readwrite(struct fat_file *ent, int sectorcount, void* buf, bool write ); extern int fat_closewrite(struct fat_file *ent, int size); -extern int fat_seek(struct fat_file *ent, int sector ); +extern int fat_seek(struct fat_file *ent, unsigned int sector ); extern int fat_remove(struct fat_file *ent); +extern int fat_truncate(struct fat_file *ent); extern int fat_opendir(struct fat_dir *ent, unsigned int currdir); extern int fat_getnext(struct fat_dir *ent, struct fat_direntry *entry); -- cgit v1.2.3