From db5dae20793d5696c5c3e905d2c467c2ff0a23a1 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Mon, 6 Jul 2020 08:12:01 -0500 Subject: time: New module adding __strftime_l --- CHANGELOG.rst | 9 ++++++++- Makefile | 1 + libgcompat/time.c | 7 +++++++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 libgcompat/time.c diff --git a/CHANGELOG.rst b/CHANGELOG.rst index b88a0a7..cec0a43 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -16,9 +16,16 @@ locale * New module. -* Adds newlocale and freelocale, which provide a glibc-compatible locale_t ABI. +* Add newlocale and freelocale, which provide a glibc-compatible locale_t ABI. This is necessary for software using the libstdc++ / modules. +time +---- + +* New module. + +* Add __strftime_l. + unistd ------ diff --git a/Makefile b/Makefile index fd46a19..e421055 100644 --- a/Makefile +++ b/Makefile @@ -29,6 +29,7 @@ LIBGCOMPAT_SRC = \ libgcompat/string.c \ libgcompat/sysctl.c \ libgcompat/syslog.c \ + libgcompat/time.c \ libgcompat/ucontext.c \ libgcompat/unistd.c \ libgcompat/utmp.c \ diff --git a/libgcompat/time.c b/libgcompat/time.c new file mode 100644 index 0000000..a058edb --- /dev/null +++ b/libgcompat/time.c @@ -0,0 +1,7 @@ +#include + +size_t __strftime_l(char *restrict s, size_t n, const char *restrict f, + const struct tm *restrict tm, locale_t loc) +{ + return strftime_l(s, n, f, tm, loc); +} -- cgit v1.2.3-70-g09d2