Simon 'corecode' Schubert wrote:

caddr_t is a pointer to a kernel address. I'm not sure about current 64 bit implementations, but at least for ia32/linux/bsd sizeof(caddr_t) == sizeof(unsigned long). If this is the same on 64 bit architectures, a change would be no problem. It's just: SUS/IEEE/ISO/POSIX doesn't guarrantee the equation above.

It's about the same for size_t. size_t is a guarranteed unsigned integer to pass (memory) sizes in. for ia32/linux/bsd again, sizeof(size_t) == sizeof(unsigned [long] int).

So, what happens in x86-64 where sizeof(unsigned long) is 4 bytes for IA-32 apps and 8 bytes for x86-64 apps? I guess since it's a parameter to the ioctl (rather than embedded in a structure) it should be okay, but I just want to be sure...





------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click -- _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to