sizeof(size_t) and other "semantic" types on 32 bit systems?
Xin LI
delphij at gmail.com
Fri Sep 30 21:02:45 UTC 2011
2011/9/30 Lev Serebryakov <lev at freebsd.org>:
> 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).
off_t?
Cheers,
--
Xin LI <delphij at delphij.net> https://www.delphij.net/
FreeBSD - The Power to Serve! Live free or die
More information about the freebsd-hackers
mailing list