summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-07-06 08:12:01 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-07-06 08:12:01 -0500
commitdb5dae20793d5696c5c3e905d2c467c2ff0a23a1 (patch)
tree660dd542c04be9136e8c40d964cab28b7089558e
parent2eae317bd62a38645f35c46ca62cdde24ff718d8 (diff)
downloadgcompat-db5dae20793d5696c5c3e905d2c467c2ff0a23a1.tar.gz
gcompat-db5dae20793d5696c5c3e905d2c467c2ff0a23a1.tar.bz2
gcompat-db5dae20793d5696c5c3e905d2c467c2ff0a23a1.tar.xz
gcompat-db5dae20793d5696c5c3e905d2c467c2ff0a23a1.zip
time: New module adding __strftime_l
-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);
+}