This is the mail archive of the libc-hacker@sourceware.cygnus.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: LFS/syscalls -> Kernel interface incompatibility


>>>>> Ulrich Drepper writes:

Uli> Andreas Jaeger <aj@suse.de> writes:
>> I've one design question: In case of such problems do we put little
>> endian or big endian files in sysdeps/unix/sysv/linux?
>> 
>> Currently we have there for example:
>> - ftruncate64 that works for little endian
>> - pread64 that works for big endian

Uli> I agree with this.  It is better to be consistent.

So, what's the policy? Big or little? - and I would even like to use:
#if __BYTE_ORDER == __LITTLE_ENDIAN
#elif __BYTE_ORDER == __BIG_ENDIAN
#else
#error "..."
#endif

I'll send a patch later for pread64.c to show what I mean.

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.rhein-neckar.de

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