From c174d3a544b92be55bc0d09443522386363129f5 Mon Sep 17 00:00:00 2001 From: James Buren Date: Wed, 7 Jul 2021 21:06:31 +0000 Subject: file/fat: add utime function This emulates the traditional utime function from UNIX clones to allow for manual updates of the modification timestamp on files and directories. This should only prove useful for non-native targets as those usually have a libc version of utime. Change-Id: Iea8a1d328e78b92c400d3354ee80689c7cf53af8 --- firmware/export/fat.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'firmware/export/fat.h') diff --git a/firmware/export/fat.h b/firmware/export/fat.h index 27c2a161f6..b83ceeec0d 100644 --- a/firmware/export/fat.h +++ b/firmware/export/fat.h @@ -140,6 +140,8 @@ enum fat_remove_op /* what should fat_remove(), remove? */ int fat_remove(struct fat_file *file, enum fat_remove_op what); int fat_rename(struct fat_file *parent, struct fat_file *file, const unsigned char *newname); +int fat_utime(struct fat_file *parent, struct fat_file *file, + const struct utimbuf *utimes); /** File stream functions **/ int fat_closewrite(struct fat_filestr *filestr, uint32_t size, -- cgit v1.2.3