From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 30 20:30:44 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E09991065670 for ; Fri, 30 Sep 2011 20:30:44 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id A93E28FC0A for ; Fri, 30 Sep 2011 20:30:44 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:906c:6af3:5301:18c6]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id CB4A44AC1C for ; Sat, 1 Oct 2011 00:30:42 +0400 (MSD) Date: Sat, 1 Oct 2011 00:30:37 +0400 From: Lev Serebryakov Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <362958423.20111001003037@serebryakov.spb.ru> To: hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: Subject: sizeof(size_t) and other "semantic" types on 32 bit systems? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lev@FreeBSD.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 20:30:45 -0000 Hello, Hackers. I was surprised, when I discover that size_t are 32-bit wide on 32-bit (i386) system. Which "semantic" type should I use, for example, for storing GEOM size in bytes in system-independent way? I could use "uint64_t", of course, but I don't like this solution, as it very low-level (ok, not so low-level as "unsigned long long", to be honest). --=20 // Black Lion AKA Lev Serebryakov