[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-ia64
Subject:    [Linux-ia64] headsup: MS_SYNC/MS_INVALIDATE mismatch
From:       David Mosberger <davidm () napali ! hpl ! hp ! com>
Date:       2002-07-18 20:33:42
[Download RAW message or body]

A bug in the glibc version of the header file /usr/include/bits/mman.h
has been found which has the effect that the values of MS_SYNC and
MS_INVALIDATE are swapped compared to what the kernel expects.  The
correct values are as follows:

#define MS_INVALIDATE   2               /* invalidate the caches */
#define MS_SYNC         4               /* synchronous memory sync */

The glibc maintainer (Uli Drepper) is aware of the problem and future
versions of glibc will be fixed.

This bug was introduced by yours truly back in 1999.  The fact that it
went unnoticed for so long suggests that there don't seem to be too
many applications out there that depend on these values.  Still, my
apologies for any inconvenience this may have caused.

	--david


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic