libc/time: add lib_strptime

The community deleted strptime due to license reasons, and we replaced it with musl.

Signed-off-by: chenjiahua1 <chenjiahua1@xiaomi.com>
This commit is contained in:
chenjiahua1
2024-09-11 16:55:59 +08:00
committed by GUIDINGLI
parent 8cfe8a0f3e
commit 64eecbfede
4 changed files with 626 additions and 23 deletions
+4
View File
@@ -44,4 +44,8 @@ else()
list(APPEND SRCS lib_timegm.c lib_gmtime.c lib_gmtimer.c)
endif()
if(CONFIG_ALLOW_MIT_COMPONENTS)
list(APPEND SRCS lib_strptime.c)
endif()
target_sources(c PRIVATE ${SRCS})
+4
View File
@@ -34,6 +34,10 @@ else
CSRCS += lib_timegm.c lib_gmtime.c lib_gmtimer.c
endif
ifdef CONFIG_ALLOW_MIT_COMPONENTS
CSRCS += lib_strptime.c
endif
# Add the time directory to the build
DEPPATH += --dep-path time
File diff suppressed because it is too large Load Diff