This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: 64 bit version of sunrpc
- From: Florian Weimer <fweimer at redhat dot com>
- To: Mihail Stefanov <michail at mommosoft dot com>
- Cc: "libc-help at sourceware dot org" <libc-help at sourceware dot org>
- Date: Thu, 31 Dec 2015 19:21:25 +0100
- Subject: Re: 64 bit version of sunrpc
- Authentication-results: sourceware.org; auth=none
- References: <68E91EF3-0263-4A78-9C2F-3A6A472DB292 at mommosoft dot com>
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