This is the mail archive of the libc-alpha@sources.redhat.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]
Other format: [Raw text]

[PATCH] Update sysdeps/unix/sysv/linux/*/bits/mman.h


This patch updates some MAP_* declarations in
sysdeps/unix/sysv/linux/{mips,powerpc,sh,sparc}/bits/mman.h.  Note
that the recent linux kernel has PROT_SEM, but I don't include it
because it has no effect these days.

Regards,
-- gotom

2005-03-10  GOTO Masanori  <gotom@debian.or.jp>

	* sysdeps/unix/sysv/linux/mips/bits/mman.h: Fix MAP_RENAME value.
	Add misc flags.
	* sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_RENAME.
	* sysdeps/unix/sysv/linux/sh/bits/mman.h: Define MAP_POPULATE and
	MAP_NONBLOCK.
	* sysdeps/unix/sysv/linux/sparc/bits/mman.h: Define MAP_POPULATE and
	MAP_NONBLOCK.  Update MAP_GROWSDOWN value.

Index: sysdeps/unix/sysv/linux/mips/bits/mman.h
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/mips/bits/mman.h,v
retrieving revision 1.9
diff -u -p -r1.9 mman.h
--- sysdeps/unix/sysv/linux/mips/bits/mman.h	15 Dec 2004 01:00:48 -0000	1.9
+++ sysdeps/unix/sysv/linux/mips/bits/mman.h	18 Feb 2005 06:30:45 -0000
@@ -1,5 +1,5 @@
 /* Definitions for POSIX memory map interface.  Linux/MIPS version.
-   Copyright (C) 1997, 2000, 2003, 2004 Free Software Foundation, Inc.
+   Copyright (C) 1997, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -52,7 +52,10 @@
 # define MAP_FILE	0x00
 # define MAP_ANONYMOUS	0x0800		/* Don't use a file.  */
 # define MAP_ANON	MAP_ANONYMOUS
-# define MAP_RENAME	MAP_ANONYMOUS
+# define MAP_RENAME	0x020		/* Assign page to file.  */
+# define MAP_AUTOGROW	0x040		/* File may grow by writing.  */
+# define MAP_LOCAL	0x080		/* Copy on fork/sproc.  */
+# define MAP_AUTORSRV	0x100		/* Logical swap reserved on demand.  */
 #endif
 
 /* These are Linux-specific.  */
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.9
diff -u -p -r1.9 mman.h
--- sysdeps/unix/sysv/linux/powerpc/bits/mman.h	25 Sep 2003 16:39:37 -0000	1.9
+++ sysdeps/unix/sysv/linux/powerpc/bits/mman.h	14 Feb 2005 09:56:24 -0000
@@ -1,5 +1,5 @@
 /* Definitions for POSIX memory map interface.  Linux/PowerPC version.
-   Copyright (C) 1997, 2000, 2003 Free Software Foundation, Inc.
+   Copyright (C) 1997, 2000, 2003, 2005 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -52,6 +52,7 @@
 # define MAP_FILE	0x000
 # define MAP_ANONYMOUS	0x020		/* Don't use a file.  */
 # define MAP_ANON	MAP_ANONYMOUS
+# define MAP_RENAME	MAP_ANONYMOUS
 #endif
 
 /* These are Linux-specific.  */
Index: sysdeps/unix/sysv/linux/sh/bits/mman.h
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/sh/bits/mman.h,v
retrieving revision 1.3
diff -u -p -r1.3 mman.h
--- sysdeps/unix/sysv/linux/sh/bits/mman.h	25 Sep 2003 16:39:37 -0000	1.3
+++ sysdeps/unix/sysv/linux/sh/bits/mman.h	14 Feb 2005 09:56:24 -0000
@@ -1,5 +1,5 @@
 /* Definitions for POSIX memory map interface.  Linux/SH version.
-   Copyright (C) 1997, 1999, 2000, 2003 Free Software Foundation, Inc.
+   Copyright (C) 1997, 1999, 2000, 2003, 2005 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -61,6 +61,8 @@
 # define MAP_EXECUTABLE	0x1000		/* Mark it as an executable.  */
 # define MAP_LOCKED	0x2000		/* Lock the mapping.  */
 # define MAP_NORESERVE	0x4000		/* Don't check for reservations.  */
+# define MAP_POPULATE	0x8000		/* Populate (prefault) pagetables.  */
+# define MAP_NONBLOCK	0x10000		/* Do not block on IO.  */
 #endif
 
 /* Flags to `msync'.  */
Index: sysdeps/unix/sysv/linux/sparc/bits/mman.h
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/sparc/bits/mman.h,v
retrieving revision 1.7
diff -u -p -r1.7 mman.h
--- sysdeps/unix/sysv/linux/sparc/bits/mman.h	25 Sep 2003 16:39:37 -0000	1.7
+++ sysdeps/unix/sysv/linux/sparc/bits/mman.h	14 Feb 2005 09:56:24 -0000
@@ -1,5 +1,5 @@
 /* Definitions for POSIX memory map interface.  Linux/SPARC version.
-   Copyright (C) 1997, 1999, 2000, 2003 Free Software Foundation, Inc.
+   Copyright (C) 1997, 1999, 2000, 2003, 2005 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -57,12 +57,14 @@
 
 /* These are Linux-specific.  */
 #ifdef __USE_MISC
-# define MAP_GROWSDOWN	0x0100		/* Stack-like segment.  */
+# define MAP_GROWSDOWN	0x0200		/* Stack-like segment.  */
 # define MAP_DENYWRITE	0x0800		/* ETXTBSY */
 # define MAP_EXECUTABLE	0x1000		/* Mark it as an executable.  */
 # define MAP_LOCKED	0x0100		/* Lock the mapping.  */
 # define MAP_NORESERVE	0x0040		/* Don't check for reservations.  */
 # define _MAP_NEW	0x80000000	/* Binary compatibility with SunOS.  */
+# define MAP_POPULATE	0x8000		/* Populate (prefault) pagetables.  */
+# define MAP_NONBLOCK	0x10000		/* Do not block on IO.  */
 #endif
 
 /* Flags to `msync'.  */


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