diff options
author | Joseph Myers <joseph@codesourcery.com> | 2018-09-26 12:33:14 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2018-09-26 12:33:14 +0000 |
commit | 61d8b5feeed36e242a043befe9b11f7f8c294f58 (patch) | |
tree | c2fc88ccc8b269a9da4e6f66d39c12d8c3dd3662 /bits/statvfs.h | |
parent | 4634128642f47da6542a4b73f8ff770d6b0765e5 (diff) | |
download | glibc-61d8b5feeed36e242a043befe9b11f7f8c294f58.tar.gz glibc-61d8b5feeed36e242a043befe9b11f7f8c294f58.tar.xz glibc-61d8b5feeed36e242a043befe9b11f7f8c294f58.zip |
Share MAP_* flags between more architectures.
Continuing bits/mman.h unification between architectures using the Linux kernel, this patch arranges for the common set of MAP_* flags to be used by two more architectures. That common set is moved to bits/mman-map-flags-generic.h, which is included by bits/mman.h, to allow architectures to use that common set even if they also have architecture-specific additions to it. As well as the generic bits/mman.h, the versions for x86 and ia64 are also then made to include bits/mman-map-flags-generic.h, so while they still need architecture-specific bits/mman.h (for MAP_32BIT and MAP_GROWSUP respectively), they do not need to duplicate the generic flag definitions in there. Tested for x86_64 and x86, and with build-many-glibcs.py. * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New file. Most contents moved from .... * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to and include <bits/mman-map-flags-generic.h>. * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc] (sysdep_headers): Add bits/mman-map-flags-generic.h. * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include <bits/mman-map-flags-generic.h>. [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other macros defined in <bits/mman-map-flags-generic.h>. * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include <bits/mman-map-flags-generic.h>. [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros defined in <bits/mman-map-flags-generic.h>.
Diffstat (limited to 'bits/statvfs.h')
0 files changed, 0 insertions, 0 deletions