Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Sep 2011 13:33:18 -0700
From:      Xin LI <delphij@gmail.com>
To:        lev@freebsd.org
Cc:        hackers@freebsd.org
Subject:   Re: sizeof(size_t) and other "semantic" types on 32 bit systems?
Message-ID:  <CAGMYy3sEW5k96bxUsQu%2BPnbCS93unS6h=dGX6XsYP%2B83Qybf6Q@mail.gmail.com>
In-Reply-To: <362958423.20111001003037@serebryakov.spb.ru>
References:  <362958423.20111001003037@serebryakov.spb.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
2011/9/30 Lev Serebryakov <lev@freebsd.org>:
> Hello, Hackers.
>
> =C2=A0I was surprised, when I discover that size_t are 32-bit wide on
> =C2=A032-bit (i386) system. Which "semantic" type should I use, for
> =C2=A0example, for storing GEOM size in bytes in system-independent way? =
I
> =C2=A0could use "uint64_t", of course, but I don't like this solution, as
> =C2=A0it very low-level (ok, not so low-level as "unsigned long long", to
> =C2=A0be honest).

off_t?

Cheers,
--=20
Xin LI <delphij@delphij.net> https://www.delphij.net/
FreeBSD - The Power to Serve! Live free or die



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGMYy3sEW5k96bxUsQu%2BPnbCS93unS6h=dGX6XsYP%2B83Qybf6Q>