Hi,

What precautions we need to take while writing 32 bit programs for 64
bit machines? Specifically, how can I take care of data type size
differences between user space and kernel space?

In my program long integer is 4 bytes in user space. But when I pass a
pointer to a long integer as an argument to a system call, kernel
accesses 8 bytes using that pointer as size of long integer it is 8
bytes in kernel space.

Regards,
Vijay

Reply via email to