From 29ae288dcc2673bb6af3d2f831002615f24e80e9 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Thu, 2 May 2019 09:03:12 -0500 Subject: string: Add __strdup --- CHANGELOG.rst | 11 +++++++++++ libgcompat/string.c | 10 ++++++++++ 2 files changed, 21 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index fbdb762..3def808 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -16,6 +16,12 @@ Build system * Allow building against libobstack. * Fix compatibility with Linux 4.17 and newer. +* Travis CI is now used. + +Documentation +------------- + +* README rewritten to conform to Adélie project standards. malloc ------ @@ -27,6 +33,11 @@ pthread * Add pthread_getname_np. +string +------ + +* Add __strdup. + wchar ----- diff --git a/libgcompat/string.c b/libgcompat/string.c index f4e0620..9207db4 100644 --- a/libgcompat/string.c +++ b/libgcompat/string.c @@ -196,6 +196,16 @@ size_t __strcspn_c2(const char *str, int bad, int bad2) return length; } +/** + * Alias for strdup. + * + * LSB 5.0: LSB-Core-generic/baselib---strdup-1.html + */ +char *__strdup(const char *string) +{ + return strdup(string); +} + /** * Concatenate a string with part of another, with buffer overflow checking. * -- cgit v1.2.3-60-g2f50