diff options
Diffstat (limited to 'string')
-rw-r--r-- | string/bits/string3.h | 9 | ||||
-rw-r--r-- | string/bits/strings_fortified.h | 9 |
2 files changed, 9 insertions, 9 deletions
diff --git a/string/bits/string3.h b/string/bits/string3.h index 0b0a37744a..738226d49b 100644 --- a/string/bits/string3.h +++ b/string/bits/string3.h @@ -92,6 +92,15 @@ __NTH (memset (void *__dest, int __ch, size_t __len)) #ifdef __USE_MISC # include <bits/strings_fortified.h> + +void __explicit_bzero_chk (void *__dest, size_t __len, size_t __destlen) + __THROW __nonnull ((1)); + +__fortify_function void +__NTH (explicit_bzero (void *__dest, size_t __len)) +{ + __explicit_bzero_chk (__dest, __len, __bos0 (__dest)); +} #endif __fortify_function char * diff --git a/string/bits/strings_fortified.h b/string/bits/strings_fortified.h index fd396f9f3c..411e7863d6 100644 --- a/string/bits/strings_fortified.h +++ b/string/bits/strings_fortified.h @@ -31,13 +31,4 @@ __NTH (bzero (void *__dest, size_t __len)) (void) __builtin___memset_chk (__dest, '\0', __len, __bos0 (__dest)); } -void __explicit_bzero_chk (void *__dest, size_t __len, size_t __destlen) - __THROW __nonnull ((1)); - -__fortify_function void -__NTH (explicit_bzero (void *__dest, size_t __len)) -{ - __explicit_bzero_chk (__dest, __len, __bos0 (__dest)); -} - #endif |