1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

Do not declare gets in _GNU_SOURCE mode at all

This commit is contained in:
Ulrich Drepper
2012-01-07 10:41:00 -05:00
parent fbb68a84ee
commit c3a8723670
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2012-01-07 Ulrich Drepper <drepper@gmail.com> 2012-01-07 Ulrich Drepper <drepper@gmail.com>
* libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
* elf/tst-unique3.cc: Add explicit declaration of gets. * elf/tst-unique3.cc: Add explicit declaration of gets.
* elf/tst-unique3lib.cc: Likewise. * elf/tst-unique3lib.cc: Likewise.
* elf/tst-unique3lib2.cc: Likewise. * elf/tst-unique3lib2.cc: Likewise.

View File

@ -629,7 +629,7 @@ extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
__wur; __wur;
#if !defined __USE_ISOC11 \ #if !defined __USE_ISOC11 \
|| (defined __cplusplus && __cplusplus <= 201103L) || (defined __cplusplus && __cplusplus <= 201103L && !defined __USE_GNU)
/* Get a newline-terminated string from stdin, removing the newline. /* Get a newline-terminated string from stdin, removing the newline.
DO NOT USE THIS FUNCTION!! There is no limit on how much it will read. DO NOT USE THIS FUNCTION!! There is no limit on how much it will read.