summary refs log tree commit diff
path: root/libio/stdio.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-12-23 22:59:38 -0500
committerUlrich Drepper <drepper@gmail.com>2012-01-01 07:17:20 -0500
commit03a718297d64e68efb36069b0cc14c1039f32d89 (patch)
treefd5d3b1fac42c7f539f7078f74b76070db755361 /libio/stdio.h
parent839e283ece8f4a8312dd6c558df8c739356fddb7 (diff)
downloadglibc-03a718297d64e68efb36069b0cc14c1039f32d89.tar.gz
glibc-03a718297d64e68efb36069b0cc14c1039f32d89.tar.xz
glibc-03a718297d64e68efb36069b0cc14c1039f32d89.zip
Remove gets declaration
Diffstat (limited to 'libio/stdio.h')
-rw-r--r--libio/stdio.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libio/stdio.h b/libio/stdio.h
index 8e23903c25..3656bb5590 100644
--- a/libio/stdio.h
+++ b/libio/stdio.h
@@ -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