diff options
-rw-r--r-- | libc/sysdeps/linux/arm/bits/mman.h | 1 | ||||
-rw-r--r-- | libc/sysdeps/linux/bfin/bits/mman.h | 1 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/bits/mman.h | 12 | ||||
-rw-r--r-- | libc/sysdeps/linux/cris/bits/mman.h | 1 | ||||
-rw-r--r-- | libc/sysdeps/linux/e1/bits/mman.h | 1 | ||||
-rw-r--r-- | libc/sysdeps/linux/frv/bits/mman.h | 1 | ||||
-rw-r--r-- | libc/sysdeps/linux/h8300/bits/mman.h | 1 | ||||
-rw-r--r-- | libc/sysdeps/linux/i386/bits/mman.h | 1 | ||||
-rw-r--r-- | libc/sysdeps/linux/i960/bits/mman.h | 1 | ||||
-rw-r--r-- | libc/sysdeps/linux/microblaze/bits/mman.h | 1 | ||||
-rw-r--r-- | libc/sysdeps/linux/mips/bits/mman.h | 1 | ||||
-rw-r--r-- | libc/sysdeps/linux/nios/bits/mman.h | 1 | ||||
-rw-r--r-- | libc/sysdeps/linux/nios2/bits/mman.h | 1 | ||||
-rw-r--r-- | libc/sysdeps/linux/powerpc/bits/mman.h | 1 | ||||
-rw-r--r-- | libc/sysdeps/linux/sh/bits/mman.h | 1 | ||||
-rw-r--r-- | libc/sysdeps/linux/sh64/bits/mman.h | 1 | ||||
-rw-r--r-- | libc/sysdeps/linux/sparc/bits/mman.h | 1 | ||||
-rw-r--r-- | libc/sysdeps/linux/v850/bits/mman.h | 1 | ||||
-rw-r--r-- | libc/sysdeps/linux/x86_64/bits/mman.h | 1 |
19 files changed, 29 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/arm/bits/mman.h b/libc/sysdeps/linux/arm/bits/mman.h index 715e0f04c..596bd316c 100644 --- a/libc/sysdeps/linux/arm/bits/mman.h +++ b/libc/sysdeps/linux/arm/bits/mman.h @@ -72,6 +72,7 @@ /* Flags for `mremap'. */ #ifdef __USE_GNU # define MREMAP_MAYMOVE 1 +# define MREMAP_FIXED 2 #endif /* Advice to `madvise'. */ diff --git a/libc/sysdeps/linux/bfin/bits/mman.h b/libc/sysdeps/linux/bfin/bits/mman.h index 0e0f8d113..d57eeb587 100644 --- a/libc/sysdeps/linux/bfin/bits/mman.h +++ b/libc/sysdeps/linux/bfin/bits/mman.h @@ -72,6 +72,7 @@ /* Flags for `mremap'. */ #ifdef __USE_GNU # define MREMAP_MAYMOVE 1 +# define MREMAP_FIXED 2 #endif /* Advice to `madvise'. */ diff --git a/libc/sysdeps/linux/common/bits/mman.h b/libc/sysdeps/linux/common/bits/mman.h index f567b9baa..0c1590270 100644 --- a/libc/sysdeps/linux/common/bits/mman.h +++ b/libc/sysdeps/linux/common/bits/mman.h @@ -1,5 +1,5 @@ /* Definitions for BSD-style memory management. - Copyright (C) 1994-1998,2000,01 Free Software Foundation, Inc. + Copyright (C) 1994-1998,2000,01,02,05 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 @@ -80,6 +80,16 @@ # define POSIX_MADV_DONTNEED 4 /* Don't need these pages. */ #endif +/* Flags to `msync'. */ +#define MS_ASYNC 1 /* Sync memory asynchronously. */ +#define MS_SYNC 0 /* Synchronous memory sync. */ +#define MS_INVALIDATE 2 /* Invalidate the caches. */ + +/* Flags for `mremap'. */ +#ifdef __USE_GNU +# define MREMAP_MAYMOVE 1 /* Mapping address may change. */ +# define MREMAP_FIXED 2 /* Fifth argument sets new address. */ +#endif /* Flags for `mlockall' (can be OR'd together). */ #define MCL_CURRENT 1 /* Lock all currently mapped pages. */ diff --git a/libc/sysdeps/linux/cris/bits/mman.h b/libc/sysdeps/linux/cris/bits/mman.h index 16216855f..b1f22a1c4 100644 --- a/libc/sysdeps/linux/cris/bits/mman.h +++ b/libc/sysdeps/linux/cris/bits/mman.h @@ -72,6 +72,7 @@ /* Flags for `mremap'. */ #ifdef __USE_GNU # define MREMAP_MAYMOVE 1 +# define MREMAP_FIXED 2 #endif /* Advice to `madvise'. */ diff --git a/libc/sysdeps/linux/e1/bits/mman.h b/libc/sysdeps/linux/e1/bits/mman.h index 34f14ee5b..7f644b99b 100644 --- a/libc/sysdeps/linux/e1/bits/mman.h +++ b/libc/sysdeps/linux/e1/bits/mman.h @@ -72,4 +72,5 @@ /* Flags for `mremap'. */ #ifdef __USE_GNU # define MREMAP_MAYMOVE 1 +# define MREMAP_FIXED 2 #endif diff --git a/libc/sysdeps/linux/frv/bits/mman.h b/libc/sysdeps/linux/frv/bits/mman.h index 9e87f804c..0802005f4 100644 --- a/libc/sysdeps/linux/frv/bits/mman.h +++ b/libc/sysdeps/linux/frv/bits/mman.h @@ -72,4 +72,5 @@ /* Flags for `mremap'. */ #ifdef __USE_GNU # define MREMAP_MAYMOVE 1 +# define MREMAP_FIXED 2 #endif diff --git a/libc/sysdeps/linux/h8300/bits/mman.h b/libc/sysdeps/linux/h8300/bits/mman.h index 34f14ee5b..7f644b99b 100644 --- a/libc/sysdeps/linux/h8300/bits/mman.h +++ b/libc/sysdeps/linux/h8300/bits/mman.h @@ -72,4 +72,5 @@ /* Flags for `mremap'. */ #ifdef __USE_GNU # define MREMAP_MAYMOVE 1 +# define MREMAP_FIXED 2 #endif diff --git a/libc/sysdeps/linux/i386/bits/mman.h b/libc/sysdeps/linux/i386/bits/mman.h index 0778afbb5..f7a855aba 100644 --- a/libc/sysdeps/linux/i386/bits/mman.h +++ b/libc/sysdeps/linux/i386/bits/mman.h @@ -72,6 +72,7 @@ /* Flags for `mremap'. */ #ifdef __USE_GNU # define MREMAP_MAYMOVE 1 +# define MREMAP_FIXED 2 #endif /* Advice to `madvise'. */ diff --git a/libc/sysdeps/linux/i960/bits/mman.h b/libc/sysdeps/linux/i960/bits/mman.h index 45663c963..48f46c274 100644 --- a/libc/sysdeps/linux/i960/bits/mman.h +++ b/libc/sysdeps/linux/i960/bits/mman.h @@ -72,6 +72,7 @@ /* Flags for `mremap'. */ #ifdef __USE_GNU # define MREMAP_MAYMOVE 1 +# define MREMAP_FIXED 2 #endif /* Advice to `madvise'. */ diff --git a/libc/sysdeps/linux/microblaze/bits/mman.h b/libc/sysdeps/linux/microblaze/bits/mman.h index 8c457158f..d051c8fa7 100644 --- a/libc/sysdeps/linux/microblaze/bits/mman.h +++ b/libc/sysdeps/linux/microblaze/bits/mman.h @@ -95,4 +95,5 @@ /* Flags for `mremap'. */ #ifdef __USE_GNU # define MREMAP_MAYMOVE 1 +# define MREMAP_FIXED 2 #endif diff --git a/libc/sysdeps/linux/mips/bits/mman.h b/libc/sysdeps/linux/mips/bits/mman.h index 61886e27e..33f9a11df 100644 --- a/libc/sysdeps/linux/mips/bits/mman.h +++ b/libc/sysdeps/linux/mips/bits/mman.h @@ -83,4 +83,5 @@ /* Flags for `mremap'. */ #ifdef __USE_GNU # define MREMAP_MAYMOVE 1 +# define MREMAP_FIXED 2 #endif diff --git a/libc/sysdeps/linux/nios/bits/mman.h b/libc/sysdeps/linux/nios/bits/mman.h index 34f14ee5b..7f644b99b 100644 --- a/libc/sysdeps/linux/nios/bits/mman.h +++ b/libc/sysdeps/linux/nios/bits/mman.h @@ -72,4 +72,5 @@ /* Flags for `mremap'. */ #ifdef __USE_GNU # define MREMAP_MAYMOVE 1 +# define MREMAP_FIXED 2 #endif diff --git a/libc/sysdeps/linux/nios2/bits/mman.h b/libc/sysdeps/linux/nios2/bits/mman.h index 34f14ee5b..7f644b99b 100644 --- a/libc/sysdeps/linux/nios2/bits/mman.h +++ b/libc/sysdeps/linux/nios2/bits/mman.h @@ -72,4 +72,5 @@ /* Flags for `mremap'. */ #ifdef __USE_GNU # define MREMAP_MAYMOVE 1 +# define MREMAP_FIXED 2 #endif diff --git a/libc/sysdeps/linux/powerpc/bits/mman.h b/libc/sysdeps/linux/powerpc/bits/mman.h index 72c24132c..f92bc7fc3 100644 --- a/libc/sysdeps/linux/powerpc/bits/mman.h +++ b/libc/sysdeps/linux/powerpc/bits/mman.h @@ -73,6 +73,7 @@ /* Flags for `mremap'. */ #ifdef __USE_GNU # define MREMAP_MAYMOVE 1 +# define MREMAP_FIXED 2 #endif /* Advice to `madvise'. */ diff --git a/libc/sysdeps/linux/sh/bits/mman.h b/libc/sysdeps/linux/sh/bits/mman.h index 1c17bf616..65eb86581 100644 --- a/libc/sysdeps/linux/sh/bits/mman.h +++ b/libc/sysdeps/linux/sh/bits/mman.h @@ -72,6 +72,7 @@ /* Flags for `mremap'. */ #ifdef __USE_GNU # define MREMAP_MAYMOVE 1 +# define MREMAP_FIXED 2 #endif /* Advice to `madvise'. */ diff --git a/libc/sysdeps/linux/sh64/bits/mman.h b/libc/sysdeps/linux/sh64/bits/mman.h index 3b18b2133..afa889dbf 100644 --- a/libc/sysdeps/linux/sh64/bits/mman.h +++ b/libc/sysdeps/linux/sh64/bits/mman.h @@ -75,6 +75,7 @@ /* Flags for `mremap'. */ #ifdef __USE_GNU # define MREMAP_MAYMOVE 1 +# define MREMAP_FIXED 2 #endif /* Advice to `madvise'. */ diff --git a/libc/sysdeps/linux/sparc/bits/mman.h b/libc/sysdeps/linux/sparc/bits/mman.h index 7db39902d..c3988b441 100644 --- a/libc/sysdeps/linux/sparc/bits/mman.h +++ b/libc/sysdeps/linux/sparc/bits/mman.h @@ -74,6 +74,7 @@ /* Flags for `mremap'. */ #ifdef __USE_GNU # define MREMAP_MAYMOVE 1 +# define MREMAP_FIXED 2 #endif /* Advice to `madvise'. */ diff --git a/libc/sysdeps/linux/v850/bits/mman.h b/libc/sysdeps/linux/v850/bits/mman.h index b32e636c9..4393d0344 100644 --- a/libc/sysdeps/linux/v850/bits/mman.h +++ b/libc/sysdeps/linux/v850/bits/mman.h @@ -95,4 +95,5 @@ /* Flags for `mremap'. */ #ifdef __USE_GNU # define MREMAP_MAYMOVE 1 +# define MREMAP_FIXED 2 #endif diff --git a/libc/sysdeps/linux/x86_64/bits/mman.h b/libc/sysdeps/linux/x86_64/bits/mman.h index a7bac2693..c25900372 100644 --- a/libc/sysdeps/linux/x86_64/bits/mman.h +++ b/libc/sysdeps/linux/x86_64/bits/mman.h @@ -79,6 +79,7 @@ /* Flags for `mremap'. */ #ifdef __USE_GNU # define MREMAP_MAYMOVE 1 +# define MREMAP_FIXED 2 #endif /* Advice to `madvise'. */ |