import explicit_bzero + strlc* functions update

since 1999 algorithms have changed and register k/w
not necessary anymore.
This commit is contained in:
David Carlier 2016-10-15 14:53:38 +01:00
parent 2bd34885da
commit 2464dbd5f3
8 changed files with 92 additions and 32 deletions

View file

@ -136,6 +136,14 @@ END_EXTERN_C()
#define strlcat php_strlcat
#endif
#ifndef HAVE_STRLCAT
BEGIN_EXTERN_C()
PHPAPI void php_explicit_bzero(void *dst, size_t siz);
END_EXTERN_C()
#undef explicit_bzero
#define explicit_bzero php_explicit_bzero
#endif
#ifndef HAVE_STRTOK_R
BEGIN_EXTERN_C()
char *strtok_r(char *s, const char *delim, char **last);