From 736e2ab430e006ba09a2fe34d7887d3812ac808f Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 21 Jul 2005 08:25:57 +0000 Subject: Updated to fedora-glibc-20050721T0814 --- stdlib/stdlib.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'stdlib/stdlib.h') diff --git a/stdlib/stdlib.h b/stdlib/stdlib.h index 4a1571e7db..bff7722e2c 100644 --- a/stdlib/stdlib.h +++ b/stdlib/stdlib.h @@ -618,7 +618,7 @@ extern void *valloc (size_t __size) __THROW __attribute_malloc__ __wur; #ifdef __USE_XOPEN2K /* Allocate memory of SIZE bytes with an alignment of ALIGNMENT. */ extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) - __THROW __attribute_malloc__ __nonnull ((1)) __wur; + __THROW __nonnull ((1)) __wur; #endif __BEGIN_NAMESPACE_STD @@ -961,6 +961,12 @@ extern int getloadavg (double __loadavg[], int __nelem) __THROW __nonnull ((1)); #endif + +/* Define some macros helping to catch buffer overflows. */ +#if __USE_FORTIFY_LEVEL > 0 && !defined __cplusplus +# include +#endif + #endif /* don't just need malloc and calloc */ #undef __need_malloc_and_calloc -- cgit v1.2.3