From owner-svn-src-head@freebsd.org Tue Feb 13 20:55:49 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 87F36F239FE for ; Tue, 13 Feb 2018 20:55:49 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io0-x22c.google.com (mail-io0-x22c.google.com [IPv6:2607:f8b0:4001:c06::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 08ACF70DE0 for ; Tue, 13 Feb 2018 20:55:49 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io0-x22c.google.com with SMTP id g14so16581313iob.9 for ; Tue, 13 Feb 2018 12:55:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=epFvpRX+my3GnN0uqKet373QIPyUv57PikhtsSXKr7Q=; b=Hb3BEtKz5Ptz1anLkW8R9qQ6hpo9I1uBobIR9pfi/de+r62/qhGe3zw9USweeMQGNt P8dtG8S0Dira5RLcIXdc4ShKagJPFfCTmAlYulpbR4ASt7GwNhVlsiy140TlGkFOeRxX AuMYNtM7m43Wa725NwXwERQ5ra///ektpTCF/XGgr2r2hPGpaEA2faPArL1N/gxcFoy2 wermtVQgGsY+hQY+DR9T3usWQpawJMbC+u+c9e+ga/LpT04TKQXNXx7Dq494dMGoBcvh W1SlvlAUnSiWfPVSUEKLjQb4anaIIHvEWIGvZbJlaSHWRDLL69b5phnuRgMSWtDvqHiK IIaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=epFvpRX+my3GnN0uqKet373QIPyUv57PikhtsSXKr7Q=; b=tSekbxBhWViDOlv+s6t98POfnpPmISDXlGhZFxIL/jEnZcvmbew6lnTfTxPH6/g/9G h+BYd03lg1/qYw02IlFphEMFbQtzFcoGhDRNQ6wGLCHVUbaYZ2fOZeJAEzQYHSjolkgB UJ0U+fIumh24fPENE9EStTMRaAtafu/7Ko49ib/8OGNxOyg3Eia6Ehq3ryDCc9jWCpfC ZqHMgpKkBkhZNQdceW+LvKL8SlHXUi01uMVVHwcqGfqjpQYwyC6YRi1yZvH8wL25yChK 4ClBrhFRVlwENI9xcA3RUnGdLzetd3VxQVHv1T6u4LKjwkuukCG5QiVQo0pOPbP4LkW/ Is3w== X-Gm-Message-State: APf1xPCo3iyQQhH0Plx8ZpYbZj4kpEuRK8ZFNm9ck9MvM/XVhpN0+5qz 48CgAGynw9KFcIop0/X3Dap0y2WhW6Oi+wsFf1AvQg== X-Google-Smtp-Source: AH8x2246Q+9D6hjKi6KzQR4NA/wLL4613CeYq/KyThmStt3QeqH7WygfUcNXz40ehhzkgUpX9p/GQgXhsW+S4N2DEdw= X-Received: by 10.107.88.12 with SMTP id m12mr2732026iob.136.1518555348338; Tue, 13 Feb 2018 12:55:48 -0800 (PST) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.201.67 with HTTP; Tue, 13 Feb 2018 12:55:47 -0800 (PST) X-Originating-IP: [2607:fb10:7061:7fd::663] In-Reply-To: References: <201802131917.w1DJHmso047463@repo.freebsd.org> <1518549829.85310.39.camel@freebsd.org> <1b3a489d-d62c-6f88-a269-a35ad9bf5ef5@vangyzen.net> From: Warner Losh Date: Tue, 13 Feb 2018 13:55:47 -0700 X-Google-Sender-Auth: nrE71FpvrgDUGfzD18VVqG7_nlI Message-ID: Subject: Re: svn commit: r329237 - head/sys/libkern To: Ravi Pokala Cc: Eric van Gyzen , Ed Maste , Ian Lepore , src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Feb 2018 20:55:49 -0000 On Tue, Feb 13, 2018 at 1:40 PM, Ravi Pokala wrote: > -----Original Message----- > From: on behalf of Eric van Gyzen < > eric@vangyzen.net> > Date: 2018-02-13, Tuesday at 11:52 > To: Ed Maste , Ian Lepore > Cc: src-committers , , > > Subject: Re: svn commit: r329237 - head/sys/libkern > > > ... > > > > I prefer '\0' here because it tells the reader that it's a NUL > > character, as opposed to a NULL pointer or a zero integer. Yes, the > > reader should already know that, but the author can /help/ the reader by > > communicating more clearly and completely. > > > > Eric > > Out of morbid curiosity, does any standard (or any of our non-standard > headers) define a "NUL" macro for use as a manual string terminator? > No. There's no standard define. Warner