From owner-svn-src-head@freebsd.org Fri May 27 08:19:39 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 F253BB4CF03; Fri, 27 May 2016 08:19:38 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B4C9D133B; Fri, 27 May 2016 08:19:38 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id E4A9A1FE024; Fri, 27 May 2016 10:19:35 +0200 (CEST) Subject: Re: svn commit: r300718 - in head/sys: kern sys To: Konstantin Belousov References: <201605260841.u4Q8ft9r045564@repo.freebsd.org> <20160526213716.GK58287@FreeBSD.org> <20160527081120.GJ38613@kib.kiev.ua> Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org From: Hans Petter Selasky Message-ID: Date: Fri, 27 May 2016 10:22:55 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <20160527081120.GJ38613@kib.kiev.ua> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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:19:39 -0000 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. --HPS