diff options
author | Elliott Hughes <enh@google.com> | 2015-01-26 13:34:58 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2015-01-26 14:28:41 -0800 |
commit | 76f8916b904db14facf811ae44e1265261349702 (patch) | |
tree | cf49d5313eb0e5a05463dbe519de48d4fddf84a9 /libc/bionic/ndk_cruft.cpp | |
parent | 419ed122aa21cf04334f21baab135ac4f9f49840 (diff) | |
download | android_bionic-76f8916b904db14facf811ae44e1265261349702.tar.gz android_bionic-76f8916b904db14facf811ae44e1265261349702.tar.bz2 android_bionic-76f8916b904db14facf811ae44e1265261349702.zip |
Clean up <stdlib.h> slightly.
Interestingly, this mostly involves cleaning up our implementation of
various <string.h> functions.
Change-Id: Ifaef49b5cb997134f7bc0cc31bdac844bdb9e089
Diffstat (limited to 'libc/bionic/ndk_cruft.cpp')
-rw-r--r-- | libc/bionic/ndk_cruft.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libc/bionic/ndk_cruft.cpp b/libc/bionic/ndk_cruft.cpp index 18a4a148a..341ba015a 100644 --- a/libc/bionic/ndk_cruft.cpp +++ b/libc/bionic/ndk_cruft.cpp @@ -235,6 +235,12 @@ extern "C" sighandler_t bsd_signal(int signum, sighandler_t handler) { return signal(signum, handler); } +// This was removed from POSIX 2008. +#undef bcopy +extern "C" void bcopy(const void* src, void* dst, size_t n) { + memcpy(dst, src, n); +} + // sysv_signal() was never in POSIX. extern sighandler_t _signal(int signum, sighandler_t handler, int flags); extern "C" sighandler_t sysv_signal(int signum, sighandler_t handler) { |