[Linux-ia64] headsup: MS_SYNC/MS_INVALIDATE mismatch

From: David Mosberger <davidm_at_napali.hpl.hp.com>
Date: 2002-07-19 06:33:42
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.

Received on Thu Jul 18 13:35:27 2002

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:09 EST