summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.rst9
-rw-r--r--Makefile1
-rw-r--r--libgcompat/time.c7
3 files changed, 16 insertions, 1 deletions
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++ <locale>/<ctype> 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 <time.h>
+
+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);
+}