[PATCH] Fix xdr_long and xdr_u_long

Thorsten Kukuk kukuk@suse.de
Wed Jan 3 04:11:00 GMT 2001


HJ\i,

On Wed, Jan 03, Jakub Jelinek wrote:

> Hi!
> 
> xdr_long and xdr_u_long silently discard upper bits on 64bit arches, they
> should fail instead.

No, it is correct that this functions silently discard upper bits on
64bit arches. Sun defines this functions for 32bit values only (is from
the old SunOS days). For 64bit you have to use the newer xdr_int64_t 
and xdr_uint64_t functions.

  Thorsten

-- 
Thorsten Kukuk       http://www.suse.de/~kukuk/       kukuk@suse.de
SuSE GmbH            Schanzaeckerstr. 10            90443 Nuernberg
Linux is like a Vorlon.  It is incredibly powerful, gives terse,
cryptic answers and has a lot of things going on in the background.



More information about the Libc-hacker mailing list