diff options
author | James Buren <braewoods+rb@braewoods.net> | 2021-07-07 21:06:31 +0000 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2021-07-08 13:15:30 +0000 |
commit | c174d3a544b92be55bc0d09443522386363129f5 (patch) | |
tree | c0462544de28dff56285a55ff2824daee06c0f34 /firmware/export/fat.h | |
parent | e6ee3dd17cf040cf38c8751c99edaec67f7a5ab5 (diff) | |
download | rockbox-c174d3a544b92be55bc0d09443522386363129f5.tar.gz rockbox-c174d3a544b92be55bc0d09443522386363129f5.zip |
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
Diffstat (limited to 'firmware/export/fat.h')
-rw-r--r-- | firmware/export/fat.h | 2 |
1 files changed, 2 insertions, 0 deletions
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? */ | |||
140 | int fat_remove(struct fat_file *file, enum fat_remove_op what); | 140 | int fat_remove(struct fat_file *file, enum fat_remove_op what); |
141 | int fat_rename(struct fat_file *parent, struct fat_file *file, | 141 | int fat_rename(struct fat_file *parent, struct fat_file *file, |
142 | const unsigned char *newname); | 142 | const unsigned char *newname); |
143 | int fat_utime(struct fat_file *parent, struct fat_file *file, | ||
144 | const struct utimbuf *utimes); | ||
143 | 145 | ||
144 | /** File stream functions **/ | 146 | /** File stream functions **/ |
145 | int fat_closewrite(struct fat_filestr *filestr, uint32_t size, | 147 | int fat_closewrite(struct fat_filestr *filestr, uint32_t size, |