diff options
author | James Buren <braewoods+rb@braewoods.net> | 2021-07-08 17:45:57 +0000 |
---|---|---|
committer | James Buren <braewoods+rb@braewoods.net> | 2021-07-08 17:47:51 +0000 |
commit | a9f36efa62c0f095994e2a711a689b3b3e81aea2 (patch) | |
tree | eebaf4a08f4b74997bd69f87dae7d0ef6ab8acbb /firmware/libc | |
parent | a0f1236e882fb20611c17b1e2275505f70ba8ed4 (diff) | |
download | rockbox-a9f36efa62c0f095994e2a711a689b3b3e81aea2.tar.gz rockbox-a9f36efa62c0f095994e2a711a689b3b3e81aea2.zip |
file/fat: rework utime function as modtime extension
This eliminates the dependence on a special struct since we were only
using the modtime anyway. But it no longer fits any known standard APIs
so I have converted it to our own extension instead. This can still be
adapted to existing hosted APIs if the need arises.
Change-Id: Ic8800698ddfd3a1a48b7cf921c0d0f865302d034
Diffstat (limited to 'firmware/libc')
-rw-r--r-- | firmware/libc/include/time.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/firmware/libc/include/time.h b/firmware/libc/include/time.h index 217b454321..4796b8b083 100644 --- a/firmware/libc/include/time.h +++ b/firmware/libc/include/time.h | |||
@@ -28,12 +28,6 @@ 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 | |||
37 | /* this define below is used by the mingw headers to prevent duplicate | 31 | /* this define below is used by the mingw headers to prevent duplicate |
38 | typedefs */ | 32 | typedefs */ |
39 | #define _TIME_T_DEFINED | 33 | #define _TIME_T_DEFINED |