This is the mail archive of the libc-alpha@sourceware.cygnus.com mailing list for the glibc project.


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

Re: getconf bug: wrong CFLAGS for large file support at i586


   Date: Mon, 27 Sep 1999 15:22:52 +0200
   From: Artur Frysiak <wiget@pld.org.pl>

   getconf on i586-*-linux-gnu wrote -D_FILE_OFFSET_BITS=64 if I ask
   for LFS_CFLAGS.  Correct value is -D_FILE_OFFSET_BITS=32 (AI86
   can't mmap() more that 2^32 bytes).

Could you explain this bug a bit more?  mmap can't map more bytes than
its size_t length parameter can represent, so it's not a bug if the
problem is merely that you can't mmap more than 2**32 bytes at once.
(That is how 32-bit Solaris 7 works, for example.)

However, if you can't pass an off_t offset parameter larger than 2**32
to mmap and get the correct behavior, then that is indeed a bug.  But
surely this is a bug with mmap, not a bug with getconf.

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