From owner-svn-src-all@FreeBSD.ORG Tue Oct 7 07:33:44 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8C100C0D; Tue, 7 Oct 2014 07:33:44 +0000 (UTC) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id 4E84436B; Tue, 7 Oct 2014 07:33:43 +0000 (UTC) Received: from nine.des.no (smtp.des.no [194.63.250.102]) by smtp-int.des.no (Postfix) with ESMTP id 876D96D65; Tue, 7 Oct 2014 07:33:42 +0000 (UTC) Received: by nine.des.no (Postfix, from userid 1001) id 8D0E8452F; Tue, 7 Oct 2014 09:33:46 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Xin LI Subject: Re: svn commit: r272673 - in head: include lib/libc/string sys/conf sys/libkern sys/sys References: <201410070454.s974sB9a036605@svn.freebsd.org> Date: Tue, 07 Oct 2014 09:33:46 +0200 In-Reply-To: <201410070454.s974sB9a036605@svn.freebsd.org> (Xin LI's message of "Tue, 7 Oct 2014 04:54:11 +0000 (UTC)") Message-ID: <86lhos72qt.fsf@nine.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Oct 2014 07:33:44 -0000 Xin LI writes: > Log: > Add explicit_bzero(3) and its kernel counterpart. I would much prefer that we add memset_s(3) from C11, which predates explicit_bzero(3) by either three or five years (depending on whether you count from the publication date or the proposal date). In the longer term, we should also consider adding the rest of annex K. Here's a patch for NetBSD (which was never accepted): https://mail-index.netbsd.org/tech-userlevel/2012/02/24/msg006125.html I realize that these extensions are controversial, but I still believe that having them is better than not having them. As the WG points out, the intention with gets_s(3) and scanf_s(3) is not to encourage the use of those interfaces, but to make it easier to retrofit code that uses gets(3) and scanf(3). DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no