Re: a question regarding <sys/shm.h>
- From: des@xxxxxx (Dag-Erling Smørgrav)
- Date: Wed, 31 Jan 2007 11:05:17 +0100
Pascal Hofstee <caelian@xxxxxxxxx> 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
--
Dag-Erling Smørgrav - des@xxxxxx
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: a question regarding <sys/shm.h>
- From: Robert Watson
- Re: a question regarding <sys/shm.h>
- References:
- a question regarding <sys/shm.h>
- From: Pascal Hofstee
- Re: a question regarding <sys/shm.h>
- From: Peter Jeremy
- Re: a question regarding <sys/shm.h>
- From: Pascal Hofstee
- a question regarding <sys/shm.h>
- Prev by Date: Re: a question regarding <sys/shm.h>
- Next by Date: Re: sysctl(3) interface
- Previous by thread: Re: a question regarding <sys/shm.h>
- Next by thread: Re: a question regarding <sys/shm.h>
- Index(es):
Relevant Pages
- Re: Better use of random number genator bits?
... This on average is a total of about 2880 bits to shuffle a deck (of course ...
Let's choose a random 32-bit unsigned integer and check if it is ... int i, j, n;
... randnum_UL = KISS; ... (sci.math) - Re: data types
... sizeof tells me there are 4 bytes to an int. ... Depending on what you are doing,
you might want to consider as an alternative what is generally used where I used to work and generally
called with "wrap angles" or BAMs. ... Unsigned integer types are guaranteed by
the C standard to wrap. ... There are also various IDEs using gcc. ... (comp.lang.c) - Re: Comparing with 0.
... Not "unsigned", but signed int:) ... Arithmetic AND the unsigned integer
with the ... Test for zero. ... (alt.comp.lang.learn.c-cpp) - Re: 2.3 -> 2.4: long int too large to convert to int
... long int too large to convert to int ... How do I tell Python that 0xc0047a80
is an ... somehow cobble together some way of forcing an unsigned integer into a ...
signed integer. ... (comp.lang.python) - Re: questions about size_t
... size_t is an unsigned integer type large enough to hold the value returned from sizeof.
... The actual int types that correspond to size_t can vary. ... Should I change
that to size_t if I need to compare the i ... (comp.lang.c)