From owner-svn-src-head@freebsd.org Fri May 27 08:37:40 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A9265B49696; Fri, 27 May 2016 08:37:40 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 293491EB7; Fri, 27 May 2016 08:37:39 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id u4R8bZTH007259 (version=TLSv1 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Fri, 27 May 2016 11:37:35 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua u4R8bZTH007259 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id u4R8bZnv007258; Fri, 27 May 2016 11:37:35 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 27 May 2016 11:37:35 +0300 From: Konstantin Belousov To: Hans Petter Selasky Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r300718 - in head/sys: kern sys Message-ID: <20160527083735.GK38613@kib.kiev.ua> References: <201605260841.u4Q8ft9r045564@repo.freebsd.org> <20160526213716.GK58287@FreeBSD.org> <20160527081120.GJ38613@kib.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.1 (2016-04-27) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.22 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: Fri, 27 May 2016 08:37:40 -0000 On Fri, May 27, 2016 at 10:22:55AM +0200, Hans Petter Selasky wrote: > On 05/27/16 10:11, Konstantin Belousov wrote: > > On Fri, May 27, 2016 at 09:42:24AM +0200, Hans Petter Selasky wrote: > >> We cannot use the "bool" type in userspace at least, because > >> sizeof(bool) depends on the compiler. So the interface must use an > >> integer type at least, possibly uint8_t like now. > > > > What do you mean ? There are ABIs, and we expect all used compilers to > > follow common arch ABI. Old psABIs date back to time where _Bool > > did not existed yet, but now it is ubiquitious. E.g. both i386 and > > amd64 require _Bool have a representation by single byte, with the > > byte alignment. > > > > Can you give exact examples of the inconsistencies, on any platform, > > regardless of our tier ? > > > > Hi, > > I was reading this article: > http://stackoverflow.com/questions/4897844/is-sizeofbool-defined > > And is says: > sizeof(bool) is not required to be 1. It is clear that the answers you referenced talk about requirements of the C standard.