]> sourceware.org Git - glibc.git/commitdiff
Remove gets declaration
authorUlrich Drepper <drepper@gmail.com>
Sat, 24 Dec 2011 03:59:38 +0000 (22:59 -0500)
committerUlrich Drepper <drepper@gmail.com>
Sun, 1 Jan 2012 12:17:20 +0000 (07:17 -0500)
ChangeLog
NEWS
libio/stdio.h

index c85afad32173bd59c98e102d605338f329311a65..6be3d32698db553667b393053da7c0db57db97a4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -28,6 +28,9 @@
 
 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]
        * assert/assert.h (static_assert): Define.
 
diff --git a/NEWS b/NEWS
index b276f3169adfe79ae37a2f8bcb0d4555853c5e4a..c22df477770a8dddc0045a8d3df23363286ce81b 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -9,7 +9,7 @@ Version 2.16
 
 * The following bugs are resolved with this release:
 
-  13526, 13529
+  13526, 13528, 13529
 
 \f
 Version 2.15
index 8e23903c2515e3dde2f48eeb413df541642313b8..3656bb5590dcde745734b6aec8b5a6908e4ea417 100644 (file)
@@ -628,12 +628,18 @@ __BEGIN_NAMESPACE_STD
 extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      __wur;
 
+#ifndef __USE_ISOC11
 /* 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.
 
+   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
    marked with __THROW.  */
 extern char *gets (char *__s) __wur;
+#endif
 __END_NAMESPACE_STD
 
 #ifdef __USE_GNU
This page took 0.050105 seconds and 5 git commands to generate.