From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from minnie.tuhs.org (minnie.tuhs.org [45.79.103.53]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 3e434013 for ; Tue, 26 Nov 2019 21:11:32 +0000 (UTC) Received: by minnie.tuhs.org (Postfix, from userid 112) id 7B5109B7E9; Wed, 27 Nov 2019 07:11:31 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 83DDB93DBE; Wed, 27 Nov 2019 07:10:59 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id C158F93DBE; Wed, 27 Nov 2019 07:10:55 +1000 (AEST) Received: from viclamta14p.bpe.bigpond.com (viclamta14p.bpe.bigpond.com [203.38.21.78]) by minnie.tuhs.org (Postfix) with ESMTPS id B05F793D9E for ; Wed, 27 Nov 2019 07:10:54 +1000 (AEST) Received: from smtp.telstra.com ([10.10.26.4]) by viclafep14p-svc.bpe.nexus.telstra.com.au with ESMTP id <20191126211052.KBTY6141.viclafep14p-svc.bpe.nexus.telstra.com.au@smtp.telstra.com> for ; Wed, 27 Nov 2019 08:10:52 +1100 X-RG-Spam: Unknown X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedufedrudeifedgudegkecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfupfevtfgpvffgnffuvffttedpqfgfvfenuceurghilhhouhhtmecugedttdenucenucfjughrpeffhffvuffkfgggtgesthdttddttdervdenucfhrhhomhepffgrvhgvucfjohhrshhfrghllhcuoegurghvvgeshhhorhhsfhgrlhhlrdhorhhgqeenucfkphepuddutddrudeguddrudelfedrvdeffeenucfrrghrrghmpehhvghloheprghnvghurhhinhdrhhhorhhsfhgrlhhlrdhorhhgpdhinhgvthepuddutddrudeguddrudelfedrvdeffedpmhgrihhlfhhrohhmpeeouggrvhgvsehhohhrshhfrghllhdrohhrgheqpdhrtghpthhtohepoehtuhhhshesthhuhhhsrdhorhhgqeenucevlhhushhtvghrufhiiigvpedt X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean X-RG-VS-CLASS: clean Received: from aneurin.horsfall.org (110.141.193.233) by smtp.telstra.com (5.8.418) id 5D8A7DF90A79E22E for tuhs@tuhs.org; Wed, 27 Nov 2019 08:10:52 +1100 Received: from aneurin.horsfall.org (localhost [127.0.0.1]) by aneurin.horsfall.org (8.15.2/8.15.2) with ESMTP id xAQLAppM075618 for ; Wed, 27 Nov 2019 08:10:51 +1100 (EST) (envelope-from dave@horsfall.org) Received: from localhost (dave@localhost) by aneurin.horsfall.org (8.15.2/8.15.2/Submit) with ESMTP id xAQLAoc5075615 for ; Wed, 27 Nov 2019 08:10:51 +1100 (EST) (envelope-from dave@horsfall.org) X-Authentication-Warning: aneurin.horsfall.org: dave owned process doing -bs Date: Wed, 27 Nov 2019 08:10:50 +1100 (EST) From: Dave Horsfall To: The Eunuchs Hysterical Society Message-ID: User-Agent: Alpine 2.21.9999 (BSF 287 2018-06-16) X-GPG-Public-Key: http://www.horsfall.org/gpgkey.pub X-GPG-Fingerprint: 05B4 FFBC 0218 B438 66E0 587B EF46 7357 EF5E F58B X-Home-Page: http://www.horsfall.org/ X-Witty-Saying: "chmod 666 the_mode_of_the_beast" MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII Subject: [TUHS] FreeBSD retires gets()! X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" Seen in the FreeBSD Quarterly Report: gets(3) retirement Contact: Ed Maste 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