diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-07-13 06:09:58 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-07-13 06:09:58 +0000 |
commit | b799f91dddb33467760c260e67d9cd86f53a829c (patch) | |
tree | 2aed3cc5c3968b4041938f0c4d3146ff45600090 /stdlib/stdlib.h | |
parent | 9d653cd1893cdd0a073b8aef3f2d8f7626d778df (diff) | |
download | glibc-b799f91dddb33467760c260e67d9cd86f53a829c.tar.gz glibc-b799f91dddb33467760c260e67d9cd86f53a829c.tar.xz glibc-b799f91dddb33467760c260e67d9cd86f53a829c.zip |
* stdlib/bits/stdlib.h: New file.
* stdlib/stdlib.h: Include <bits/stdlib.h> if fortification is requested. * Makefile (headers): Add bits/stdlib.h. * include/bits/stdlib.h: New file. * debug/Depend: New file. * debug/ptsname_r_chk.c: New file. * debug/realpath_chk.c: New file. * debug/wctomb_chk.c: New file. * debug/Makefile (routines): Add ptsname_r_chk, realpath_chk, and wctomb_chk. * debug/Versions: Export __ptsname_r_chk, __realpath_chk, and __wctomb_chk. * debug/tst-chk1.c: Add tests for __ptsname_r_chk, __realpath_chk, and __wctomb_chk.
Diffstat (limited to 'stdlib/stdlib.h')
-rw-r--r-- | stdlib/stdlib.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/stdlib/stdlib.h b/stdlib/stdlib.h index 4a1571e7db..9e75e71ed6 100644 --- a/stdlib/stdlib.h +++ b/stdlib/stdlib.h @@ -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 <bits/stdlib.h> +#endif + #endif /* don't just need malloc and calloc */ #undef __need_malloc_and_calloc |