diff options
author | Joseph Myers <joseph@codesourcery.com> | 2018-10-01 20:30:57 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2018-10-01 20:30:57 +0000 |
commit | d0e91e8c4ef77997c940538eaa752799c9dda2d3 (patch) | |
tree | ceaf4c77ba9e116ace69db2ccd14e2da197d50d9 /sysdeps/unix/sysv/linux/bits/mman-linux.h | |
parent | c52944e8ccb15158b7e44cbb75fb46d81400d75c (diff) | |
download | glibc-d0e91e8c4ef77997c940538eaa752799c9dda2d3.tar glibc-d0e91e8c4ef77997c940538eaa752799c9dda2d3.tar.gz glibc-d0e91e8c4ef77997c940538eaa752799c9dda2d3.tar.bz2 glibc-d0e91e8c4ef77997c940538eaa752799c9dda2d3.zip |
Move MREMAP_* to bits/mman-shared.h.
The MREMAP_* flags are identical between bits/mman-linux.h and the
hppa bits/mman.h; thus, they should be in bits/mman-shared.h instead
to avoid unnecessary duplication. This patch moves them there.
Tested for x86_64, and with build-many-glibcs.py.
* sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
(MREMAP_MAYMOVE): Do not define here.
[__USE_GNU] (MREMAP_FIXED): Likewise.
* sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
(MREMAP_MAYMOVE): Define here instead.
[__USE_GNU] (MREMAP_FIXED): Likewise.
* sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
(MREMAP_MAYMOVE): Remove.
[__USE_GNU] (MREMAP_FIXED): Likewise.
Diffstat (limited to 'sysdeps/unix/sysv/linux/bits/mman-linux.h')
-rw-r--r-- | sysdeps/unix/sysv/linux/bits/mman-linux.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sysdeps/unix/sysv/linux/bits/mman-linux.h b/sysdeps/unix/sysv/linux/bits/mman-linux.h index 70edeb6d60..09b118bb70 100644 --- a/sysdeps/unix/sysv/linux/bits/mman-linux.h +++ b/sysdeps/unix/sysv/linux/bits/mman-linux.h @@ -67,12 +67,6 @@ #define MS_SYNC 4 /* Synchronous memory sync. */ #define MS_INVALIDATE 2 /* Invalidate the caches. */ -/* Flags for `mremap'. */ -#ifdef __USE_GNU -# define MREMAP_MAYMOVE 1 -# define MREMAP_FIXED 2 -#endif - /* Advice to `madvise'. */ #ifdef __USE_MISC # define MADV_NORMAL 0 /* No further special treatment. */ |