This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
[PATCH] Fix PPC mman.h
- To: libc-alpha at sources dot redhat dot com
- Subject: [PATCH] Fix PPC mman.h
- From: Franz Sirl <Franz dot Sirl-kernel at lauterbach dot com>
- Date: Sat, 13 Jan 2001 02:29:02 +0100
Hi,
inspection showed this small difference between kernel and glibc headers.
Franz.
* sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MS_SYNC): Fix value.
(MAP_LOCKED): New.
(MAP_NORESERVE): New.
Index: sysdeps/unix/sysv/linux/powerpc/bits/mman.h
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/powerpc/bits/mman.h,v
retrieving revision 1.5
diff -u -p -r1.5 mman.h
--- sysdeps/unix/sysv/linux/powerpc/bits/mman.h 2000/04/14 05:57:57 1.5
+++ sysdeps/unix/sysv/linux/powerpc/bits/mman.h 2001/01/13 01:19:54
@@ -55,11 +55,13 @@
# define MAP_GROWSDOWN 0x0100 /* Stack-like segment. */
# define MAP_DENYWRITE 0x0800 /* ETXTBSY */
# define MAP_EXECUTABLE 0x1000 /* Mark it as an executable. */
+# define MAP_LOCKED 0x0080 /* Lock the mapping. */
+# define MAP_NORESERVE 0x0040 /* Don't check for reservations. */
#endif
/* Flags to `msync'. */
#define MS_ASYNC 1 /* Sync memory asynchronously. */
-#define MS_SYNC 0 /* Synchronous memory sync. */
+#define MS_SYNC 4 /* Synchronous memory sync. */
#define MS_INVALIDATE 2 /* Invalidate the caches. */
/* Flags for `mlockall'. */