diff options
author | Andreas Schwab <schwab@suse.de> | 2022-08-16 15:18:11 +0200 |
---|---|---|
committer | Andreas Schwab <schwab@suse.de> | 2022-10-10 09:30:24 +0200 |
commit | 954b8f38958de72c4712088735eb175118f17b51 (patch) | |
tree | 5cbe777082730dcf00f3a9fd1e1b95b676bb8675 /bits | |
parent | 589eda82bb2ff210c33003beef239eedea1f9cac (diff) | |
download | glibc-954b8f38958de72c4712088735eb175118f17b51.tar.gz glibc-954b8f38958de72c4712088735eb175118f17b51.tar.xz glibc-954b8f38958de72c4712088735eb175118f17b51.zip |
Expose all MAP_ constants in <sys/mman.h> unconditionally (bug 29375)
POSIX reserves the MAP_ prefix for <sys/mman.h>, so there is no need to conditionalize their definitions on feature test macros.
Diffstat (limited to 'bits')
-rw-r--r-- | bits/mman.h | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/bits/mman.h b/bits/mman.h index a55fd9a251..e2aac6f26a 100644 --- a/bits/mman.h +++ b/bits/mman.h @@ -37,27 +37,21 @@ /* Flags contain mapping type, sharing type and options. */ /* Mapping type (must choose one and only one of these). */ -#ifdef __USE_MISC -# define MAP_FILE 0x0001 /* Mapped from a file or device. */ -# define MAP_ANON 0x0002 /* Allocated from anonymous virtual memory. */ -# define MAP_TYPE 0x000f /* Mask for type field. */ -# define MAP_ANONYMOUS MAP_ANON /* Linux name. */ -#endif +#define MAP_FILE 0x0001 /* Mapped from a file or device. */ +#define MAP_ANON 0x0002 /* Allocated from anonymous virtual memory. */ +#define MAP_TYPE 0x000f /* Mask for type field. */ +#define MAP_ANONYMOUS MAP_ANON /* Linux name. */ /* Sharing types (must choose one and only one of these). */ -#ifdef __USE_MISC -# define MAP_COPY 0x0020 /* Virtual copy of region at mapping time. */ -#endif +#define MAP_COPY 0x0020 /* Virtual copy of region at mapping time. */ #define MAP_SHARED 0x0010 /* Share changes. */ #define MAP_PRIVATE 0x0000 /* Changes private; copy pages on write. */ /* Other flags. */ #define MAP_FIXED 0x0100 /* Map address must be exactly as requested. */ -#ifdef __USE_MISC -# define MAP_NOEXTEND 0x0200 /* For MAP_FILE, don't change file size. */ -# define MAP_HASSEMPHORE 0x0400 /* Region may contain semaphores. */ -# define MAP_INHERIT 0x0800 /* Region is retained after exec. */ -#endif +#define MAP_NOEXTEND 0x0200 /* For MAP_FILE, don't change file size. */ +#define MAP_HASSEMPHORE 0x0400 /* Region may contain semaphores. */ +#define MAP_INHERIT 0x0800 /* Region is retained after exec. */ /* Advice to `madvise'. */ #ifdef __USE_MISC |