deduplicate bits/mman.h
authorSzabolcs Nagy <nsz@port70.net>
Fri, 18 Mar 2016 00:57:52 +0000 (00:57 +0000)
committerRich Felker <dalias@aerifal.cx>
Sat, 19 Mar 2016 02:40:28 +0000 (22:40 -0400)
commite9f1c7981ae00ad25d59018c1df26897e2effdad
treec42a756e09b9ccb21497bf88fb3e50cc90fe8379
parent4aac019a0efd59011a48d031ad046c934c7e8365
deduplicate bits/mman.h

currently five targets use the same mman.h constants and the rest
share most constants too, so move them to sys/mman.h before the
bits/mman.h include where the differences can be corrected by
redefinition of the macros.

this fixes two minor bugs: POSIX_MADV_DONTNEED was wrong on most
targets (it should be the same as MADV_DONTNEED), and sh defined
the x86-only MAP_32BIT mmap flag.
13 files changed:
arch/aarch64/bits/mman.h [deleted file]
arch/arm/bits/mman.h [deleted file]
arch/generic/bits/mman.h [new file with mode: 0644]
arch/i386/bits/mman.h
arch/microblaze/bits/mman.h [deleted file]
arch/mips/bits/mman.h
arch/mips64/bits/mman.h
arch/or1k/bits/mman.h [deleted file]
arch/powerpc/bits/mman.h
arch/sh/bits/mman.h [deleted file]
arch/x32/bits/mman.h
arch/x86_64/bits/mman.h
include/sys/mman.h