Date: Fri, 30 Sep 2011 23:51:00 +0300 From: Alexander Motin <mav@FreeBSD.org> To: Lev Serebryakov <lev@FreeBSD.org> Cc: hackers@freebsd.org Subject: Re: sizeof(size_t) and other "semantic" types on 32 bit systems? Message-ID: <4E862BB4.9000402@FreeBSD.org> In-Reply-To: <mailpost.1317414721.8442466.207.mailing.freebsd.hackers@FreeBSD.cs.nctu.edu.tw> References: <mailpost.1317414721.8442466.207.mailing.freebsd.hackers@FreeBSD.cs.nctu.edu.tw>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E862BB4.9000402>