Re: Typedef inconsistency for gsize and gssize



On Wed, 8 Feb 2006, Banginwar, Rajesh wrote:

Hello,
	For IA32 gsize (found in glibconfig.h) is defined as: typedef
unsigned int gsize;
	For IA32-64bit extn and IA64 (Itanium) the definition is:
typedef unsigned long gsize;

Is this intentional? The documentation does not mention anything about
this.. It says: unsigned int only

then the documentation is wrong.

The question is in LSB context. What is the correct way of typedefing
this?

gsize and gssize are supposed to have exactly the same size as
size_t and ssize_t, but without having to include the system
header files that include these types (some systems don't even
define ssize_t or none of them at all).
size_t and ssize_t are supposed to be usable to hold pointer values
without loss, the same applies to gsize and gssize. so they have
to have different width across architectures with different
width pointers.

Thanks,

-Rajesh


---
ciaoTJ



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]