summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-12 01:46:18 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-12 01:46:18 -0600
commite97935b9c3b3c745d6264f9fad8afd912dbd366d (patch)
tree5053c7ee73b275ccbdd4068da7e44ba1e703f65d
parent7babed497362fff4efd2073fbe65c123d726b61f (diff)
downloadgcompat-e97935b9c3b3c745d6264f9fad8afd912dbd366d.tar.gz
gcompat-e97935b9c3b3c745d6264f9fad8afd912dbd366d.tar.bz2
gcompat-e97935b9c3b3c745d6264f9fad8afd912dbd366d.tar.xz
gcompat-e97935b9c3b3c745d6264f9fad8afd912dbd366d.zip
wchar: Implement __wcstol_internal
-rw-r--r--CHANGELOG.rst5
-rw-r--r--libgcompat/wchar.c12
2 files changed, 17 insertions, 0 deletions
diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index d5e78e8..7c5365c 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -11,6 +11,11 @@
0.4.0 (201?-??-??)
==================
+wchar
+-----
+
+* Add __wcstol_internal.
+
0.3.0 (2018-09-21)
diff --git a/libgcompat/wchar.c b/libgcompat/wchar.c
index 1ddaa1f..823c3e3 100644
--- a/libgcompat/wchar.c
+++ b/libgcompat/wchar.c
@@ -38,3 +38,15 @@ int __vswprintf_chk(wchar_t *s, size_t n, int flag, size_t slen,
return vswprintf(s, n, format, ap);
}
+
+/**
+ * Representation of the glibc internals of wcstol(3).
+ *
+ * LSB 5.0: LSB-Core-generic/baselib---wcstol-internal-1.html
+ */
+long int __wcstol_internal(const wchar_t *nptr, wchar_t **endptr, int base,
+ int group)
+{
+ assert(group == 0);
+ return wcstol(nptr, endptr, base);
+}