From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 30 20:51:34 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 1038E106564A; Fri, 30 Sep 2011 20:51:34 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6000F8FC08; Fri, 30 Sep 2011 20:51:32 +0000 (UTC) Received: by fxg9 with SMTP id 9so4418025fxg.13 for ; Fri, 30 Sep 2011 13:51:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=hO0wrvfYpLKN0IhZQ9Bp8rAJm2cUFlBTDuKjN3myENc=; b=jGFmZ7uAYdtSVh4lYTRaeNBotfXYSWsocCk2J6rSpf0KfZK9JSSKAN/tSx8SGdA0Pp nBBtOn667XdA+6ATCkqaBfgNa9GgS4VOe68oSQwCEhv8aIMUW6f4RXDtFmdQy3klvFo7 /Isk/RHdK0tBy8Z7ovCYzOssTcxAfDYxEwyQI= Received: by 10.223.10.25 with SMTP id n25mr8270625fan.72.1317415892095; Fri, 30 Sep 2011 13:51:32 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua. [212.86.226.226]) by mx.google.com with ESMTPS id l8sm8266998fai.16.2011.09.30.13.51.30 (version=SSLv3 cipher=OTHER); Fri, 30 Sep 2011 13:51:31 -0700 (PDT) Sender: Alexander Motin Message-ID: <4E862BB4.9000402@FreeBSD.org> Date: Fri, 30 Sep 2011 23:51:00 +0300 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:6.0.2) Gecko/20110910 Thunderbird/6.0.2 MIME-Version: 1.0 To: Lev Serebryakov References: In-Reply-To: X-Enigmail-Version: undefined Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 7bit Cc: hackers@freebsd.org Subject: Re: 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 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:51:34 -0000 On 30.09.2011 23:30, Lev Serebryakov wrote: > 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). GEOM uses 64bit off_t for media size and many other things. -- Alexander Motin