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/include/file.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'firmware/include/file.h') diff --git a/firmware/include/file.h b/firmware/include/file.h index 040f48dfc5..f17f14f98e 100644 --- a/firmware/include/file.h +++ b/firmware/include/file.h @@ -85,6 +85,9 @@ int fdprintf(int fildes, const char *fmt, ...) ATTRIBUTE_PRINTF(2, 3); #ifndef rename #define rename FS_PREFIX(rename) #endif +#ifndef utime +#define utime FS_PREFIX(utime) +#endif #ifndef filesize #define filesize FS_PREFIX(filesize) #endif -- cgit v1.2.3