64 bit version of sunrpc
Florian Weimer
fweimer@redhat.com
Thu Dec 31 18:21:00 GMT 2015
On 07/21/2015 07:55 PM, Mihail Stefanov wrote:
> Hi,
> I am wandering how roc is ported to 64 bits. Example sizeof rpc_msg.rm_xid for 64 bit Fedora returns 8 bytes, when in Mac OS X 10.10 is 4 bytes. Why is the difference? Why apple decided to change all longs to int depending of the architecture (using _L64_), when in glibc code such thing goes not exist?
Do you see any actual differences in the serialized (wire) format?
I think glibc opted to keep the types unchanged, for better application
compatibility. On the wire, longs are transmitted as 4-byte quantities.
Florian
More information about the Libc-help
mailing list