This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/350] start removing long time deprecated functions like gets()


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]