The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: Dave Horsfall <dave@horsfall.org>
To: The Eunuchs Hysterical Society <tuhs@tuhs.org>
Subject: [TUHS] FreeBSD retires gets()!
Date: Wed, 27 Nov 2019 08:10:50 +1100 (EST)	[thread overview]
Message-ID: <alpine.BSF.2.21.9999.1911270809310.33542@aneurin.horsfall.org> (raw)

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

             reply	other threads:[~2019-11-26 21:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-26 21:10 Dave Horsfall [this message]
2019-11-26 21:59 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.BSF.2.21.9999.1911270809310.33542@aneurin.horsfall.org \
    --to=dave@horsfall.org \
    --cc=tuhs@tuhs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).