Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jan 2007 11:05:17 +0100
From:      des@des.no (Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?=)
To:        Pascal Hofstee <caelian@gmail.com>
Cc:        hackers@freebsd.org
Subject:   Re: a question regarding <sys/shm.h>
Message-ID:  <86odofjyua.fsf@dwp.des.no>
In-Reply-To: <45C06167.60401@gmail.com> (Pascal Hofstee's message of "Wed, 31 Jan 2007 10:29:11 %2B0100")
References:  <45C04593.2090704@gmail.com> <20070131085206.GW892@turion.vk2pj.dyndns.org> <45C06167.60401@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Pascal Hofstee <caelian@gmail.com> writes:
> Any additional sugestions/objections are always greatly appreciated.

On 32-bit platforms (i386, powerpc), int is a 32-bit signed integer
while size_t is a 32-bit unsigned integer.

On 64-bit platforms (amd64, sparc64 etc), int is a 32-bit signed
integer while size_t is a 64-bit unsigned integer.

In both cases, changing this structure member from int to size_t will
break the ABI.

This doesn't mean you shouldn't do it, just that it should be done
with care.

DES
--=20
Dag-Erling Sm=F8rgrav - des@des.no



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86odofjyua.fsf>