This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch, master, updated. glibc-2.15-88-ge0a309c
- From: drepper at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 13 Jan 2012 17:45:35 -0000
- Subject: GNU C Library master sources branch, master, updated. glibc-2.15-88-ge0a309c
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via e0a309cf2a59042718fa95f97c5c35da33e61650 (commit)
from 929d11c7cf81f4b7cfabc1910a583e6fa5897fd5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=e0a309cf2a59042718fa95f97c5c35da33e61650
commit e0a309cf2a59042718fa95f97c5c35da33e61650
Author: Marek Polacek <polacek@redhat.com>
Date: Fri Jan 13 12:45:02 2012 -0500
Don't always provide definition of gets checking version
diff --git a/ChangeLog b/ChangeLog
index c7cba4e..00faba1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-01-12 Marek Polacek <polacek@redhat.com>
+
+ * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
+ and _GNU_SOURCE.
+
2012-01-04 Will Schmidt <will_schmidt@vnet.ibm.com>
* powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
diff --git a/libio/bits/stdio2.h b/libio/bits/stdio2.h
index a4166f7..cbccea7 100644
--- a/libio/bits/stdio2.h
+++ b/libio/bits/stdio2.h
@@ -217,6 +217,8 @@ __NTH (obstack_vprintf (struct obstack *__restrict __obstack,
#endif
+#if !defined __USE_ISOC11 \
+ || (defined __cplusplus && __cplusplus <= 201103L && !defined __USE_GNU)
extern char *__gets_chk (char *__str, size_t) __wur;
extern char *__REDIRECT (__gets_warn, (char *__str), gets)
__wur __warnattr ("please use fgets or getline instead, gets can't "
@@ -229,6 +231,7 @@ gets (char *__str)
return __gets_chk (__str, __bos (__str));
return __gets_warn (__str);
}
+#endif
extern char *__fgets_chk (char *__restrict __s, size_t __size, int __n,
FILE *__restrict __stream) __wur;
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
libio/bits/stdio2.h | 3 +++
2 files changed, 8 insertions(+), 0 deletions(-)
hooks/post-receive
--
GNU C Library master sources