Removes bcopy and bzero from bionic.

These symbols are still defined for LP32 for binary compatibility, but
the declarations have been replaced with the POSIX recommended #defines.

Bug: 13935372
Change-Id: Ief7e6ca012db374588ba5839f11e8f3a13a20467
This commit is contained in:
Dan Albert
2014-06-03 11:35:48 -07:00
parent 2f9400b679
commit ce9ce28e5d
10 changed files with 5 additions and 200 deletions

View File

@@ -43,20 +43,14 @@
#include <sys/cdefs.h>
__BEGIN_DECLS
void bcopy(const void *, void *, size_t);
void bzero(void *, size_t);
#define bcopy(b1, b2, len) (void)(memmove((b2), (b1), (len)))
#define bzero(b, len) (void)(memset((b), '\0', (len)))
int ffs(int);
char *index(const char *, int);
int strcasecmp(const char *, const char *);
int strncasecmp(const char *, const char *, size_t);
#if defined(__BIONIC_FORTIFY)
__BIONIC_FORTIFY_INLINE
void bzero (void *s, size_t n) {
__builtin___memset_chk(s, '\0', n, __builtin_object_size (s, 0));
}
#endif /* defined(__BIONIC_FORTIFY) */
__END_DECLS
#endif /* !defined(_STRINGS_H_) */