diff options
author | Elliott Hughes <enh@google.com> | 2016-03-02 17:18:18 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2016-03-02 17:21:07 -0800 |
commit | 01d5b946acac8519d510781967bf538acdae1853 (patch) | |
tree | 8a5558513fc4642648887d3428f02eb2906c5021 /libc/bionic/ndk_cruft.cpp | |
parent | 5e57039c24d8aa777480e33255d627ca28af7dfe (diff) | |
download | android_bionic-01d5b946acac8519d510781967bf538acdae1853.tar.gz android_bionic-01d5b946acac8519d510781967bf538acdae1853.tar.bz2 android_bionic-01d5b946acac8519d510781967bf538acdae1853.zip |
Remove optimized code for bzero, which was removed from POSIX in 2008.
I'll come back for the last bcopy remnant...
Bug: http://b/26407170
Change-Id: Iabfeb95fc8a4b4b3992e3cc209ec5221040e7c26
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 3ac88f867..6dc233afe 100644 --- a/libc/bionic/ndk_cruft.cpp +++ b/libc/bionic/ndk_cruft.cpp @@ -250,6 +250,12 @@ void bcopy(const void* src, void* dst, size_t n) { // x86 has an assembler implementation. #endif +// This was removed from POSIX 2008. +#undef bzero +void bzero(void* dst, size_t n) { + memset(dst, 0, n); +} + // sysv_signal() was never in POSIX. extern "C++" sighandler_t _signal(int signum, sighandler_t handler, int flags); sighandler_t sysv_signal(int signum, sighandler_t handler) { |