The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
* [TUHS] FreeBSD retires gets()!
@ 2019-11-26 21:59 Norman Wilson
  2019-11-26 22:31 ` George Michaelson
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Norman Wilson @ 2019-11-26 21:59 UTC (permalink / raw)
  To: tuhs

We retired gets from Research UNIX back in 1984 or perhaps
earlier, with no serious pain because replacing it wasn't
hard and everybody agreed with the reason.

I'm glad to hear some part of the rest of the world is
catching up.

We also decided to retire the old Enigma-derived crypt(1),
except we didn't want to throw it out entirely in case
someone had an old encrypted file and wanted the contents
back.  So it was removed from the manual and the binary
moved to /usr/games.

Norman Wilson
Toronto ON

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [TUHS] FreeBSD retires gets()!
@ 2019-11-26 21:10 Dave Horsfall
  0 siblings, 0 replies; 7+ messages in thread
From: Dave Horsfall @ 2019-11-26 21:10 UTC (permalink / raw)
  To: The Eunuchs Hysterical Society

Seen in the FreeBSD Quarterly Report:

gets(3) retirement

    Contact: Ed Maste <emaste@FreeBSD.org>

    gets is an obsolete C library routine for reading a string from
    standard input. It was removed from the C standard as of C11 because
    there was no way to use it safely. Prompted by a comment during Paul
    Vixie's talk at vBSDCon 2017 I started investigating what it would take
    to remove gets from libc.

    The patch was posted to Phabricator and refined several times, and the
    portmgr team performed several exp-runs to identify ports broken by the
    removal. Symbol versioning is used to preserve binary compatibility for
    existing software that uses gets.

    The change was committed in September, and will be in FreeBSD 13.0.

    This project was sponsored by The FreeBSD Foundation.

And the world is a slightly safer place...

-- Dave

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-11-27  0:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-26 21:59 [TUHS] FreeBSD retires gets()! Norman Wilson
2019-11-26 22:31 ` George Michaelson
2019-11-26 22:32 ` Dave Horsfall
2019-11-26 23:29   ` Richard Salz
2019-11-27  0:29     ` Dave Horsfall
2019-11-26 23:06 ` Katherine Barto
  -- strict thread matches above, loose matches on Subject: below --
2019-11-26 21:10 Dave Horsfall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).