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/libc/include/time.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/libc/include/time.h')
-rw-r--r-- | firmware/libc/include/time.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/libc/include/time.h b/firmware/libc/include/time.h index 4796b8b083..217b454321 100644 --- a/firmware/libc/include/time.h +++ b/firmware/libc/include/time.h | |||
@@ -28,6 +28,12 @@ struct tm | |||
28 | #if !defined(_TIME_T_DEFINED) && !defined(_TIME_T_DECLARED) | 28 | #if !defined(_TIME_T_DEFINED) && !defined(_TIME_T_DECLARED) |
29 | typedef long time_t; | 29 | typedef long time_t; |
30 | 30 | ||
31 | struct utimbuf | ||
32 | { | ||
33 | time_t actime; | ||
34 | time_t modtime; | ||
35 | }; | ||
36 | |||
31 | /* this define below is used by the mingw headers to prevent duplicate | 37 | /* this define below is used by the mingw headers to prevent duplicate |
32 | typedefs */ | 38 | typedefs */ |
33 | #define _TIME_T_DEFINED | 39 | #define _TIME_T_DEFINED |