This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [PATCH] Fix xdr_long and xdr_u_long



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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]