This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/350] start removing long time deprecated functions like gets()
- From: "jsm28 at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Fri, 10 Feb 2012 12:40:40 +0000
- Subject: [Bug libc/350] start removing long time deprecated functions like gets()
- Auto-submitted: auto-generated
- References: <bug-350-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=350
Joseph Myers <jsm28 at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
CC| |jsm28 at gcc dot gnu.org
Resolution| |FIXED
--- Comment #5 from Joseph Myers <jsm28 at gcc dot gnu.org> 2012-02-10 12:40:40 UTC ---
> POSIX.1-2008 removes the specification of gets()
> http://pubs.opengroup.org/onlinepubs/9699919799/functions/gets.html
That page says it's obsolete, not removed.
> Should it be removed now to conform to POSIX.1-2008 and preventing developers
> from using it?
It's ISO C11 that removes gets, and if you use current glibc git in C11 (or
GNU) mode then gets will not be declared in stdio.h. It is of course still
declared for C90, C99 etc. modes, since gets is included in those standards.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.