mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Remove gets declaration
This commit is contained in:
@ -28,6 +28,9 @@
|
|||||||
|
|
||||||
2011-12-23 Ulrich Drepper <drepper@gmail.com>
|
2011-12-23 Ulrich Drepper <drepper@gmail.com>
|
||||||
|
|
||||||
|
[BZ #13528]
|
||||||
|
* libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
|
||||||
|
|
||||||
[BZ #13529]
|
[BZ #13529]
|
||||||
* assert/assert.h (static_assert): Define.
|
* assert/assert.h (static_assert): Define.
|
||||||
|
|
||||||
|
2
NEWS
2
NEWS
@ -9,7 +9,7 @@ Version 2.16
|
|||||||
|
|
||||||
* The following bugs are resolved with this release:
|
* The following bugs are resolved with this release:
|
||||||
|
|
||||||
13526, 13529
|
13526, 13528, 13529
|
||||||
|
|
||||||
|
|
||||||
Version 2.15
|
Version 2.15
|
||||||
|
@ -628,12 +628,18 @@ __BEGIN_NAMESPACE_STD
|
|||||||
extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
|
extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
|
||||||
__wur;
|
__wur;
|
||||||
|
|
||||||
|
#ifndef __USE_ISOC11
|
||||||
/* 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.
|
||||||
|
|
||||||
|
The function has been officially removed in ISO C11. This opportunity
|
||||||
|
is used to also remove it from the GNU feature list. It is now only
|
||||||
|
available when explicitly using an old ISO C, Unix, or POSIX standard.
|
||||||
|
|
||||||
This function is a possible cancellation point and therefore not
|
This function is a possible cancellation point and therefore not
|
||||||
marked with __THROW. */
|
marked with __THROW. */
|
||||||
extern char *gets (char *__s) __wur;
|
extern char *gets (char *__s) __wur;
|
||||||
|
#endif
|
||||||
__END_NAMESPACE_STD
|
__END_NAMESPACE_STD
|
||||||
|
|
||||||
#ifdef __USE_GNU
|
#ifdef __USE_GNU
|
||||||
|
Reference in New Issue
Block a user