Add implementations for strlcpy/strlcat when missing (#737)

This commit shows how to add implementations of missing functions for
platforms where those functions are not present. In this case we are
adding the `strlcpy()` and `strlcat()`, which are "safe" replacements
for `strncpy()` and `strncat()` that behave in a way more consistent
with developer expectations.

After this commit, adding additional replacements for missing
functions should be fairly straightforward.

[1]: http://stackoverflow.com/questions/3821916/how-to-merge-two-ar-static-libraries-into-one
[2]: https://www.gnu.org/software/automake/manual/html_node/Libtool-Convenience-Libraries.html
This commit is contained in:
Robert Quattlebaum
2017-03-27 10:06:36 -07:00
committed by Jonathan Hui
parent 127eb435d8
commit 73564c399a
31 changed files with 691 additions and 10 deletions
+1
View File
@@ -35,6 +35,7 @@ libopenthread_cli_a_CPPFLAGS = \
-I$(top_srcdir)/src \
-I$(top_srcdir)/src/core \
$(OPENTHREAD_TARGET_DEFINES) \
$(MISSING_CPPFLAGS) \
$(NULL)
libopenthread_cli_a_SOURCES = \