glibc/sysdeps/mach/hurd/bits
Sergey Bugaev 70b9173caa hurd: Implement MAP_32BIT
This is a flag that can be passed to mmap () to request that the mapping
being established should be located in the lower 2 GB area of the
address space, so only the lower 31 (not 32) bits can be set in its
address, and the address can be represented as a 32-bit integer without
truncating it.

This flag is intended to be compatible with Linux, FreeBSD, and Darwin
flags of the same name. Out of those systems, it appears Linux and
FreeBSD take MAP_32BIT to mean "map 31 bit", whereas Darwin allows the
32nd bit to be set in the address as well. The Hurd follows Linux and
FreeBSD behavior.

Unlike on those systems, on the Hurd MAP_32BIT is defined on all
supported architectures (which currently are only i386 and x86_64).

Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-Id: <20230423215526.346009-1-bugaevc@gmail.com>
2023-04-24 22:42:12 +02:00
..
types Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
errno.h Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
fcntl.h hurd: Implement O_TMPFILE 2023-02-01 23:32:21 +01:00
ioctls.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
local_lim.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
mman_ext.h hurd: Implement MAP_32BIT 2023-04-24 22:42:12 +02:00
param.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
posix_opt.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
signum-arch.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
socket.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
stat.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
statfs.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
statvfs.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
stdio_lim.h libio: Do not autogenerate stdio_lim.h 2023-03-27 13:57:55 -03:00
sysmacros.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
timesize.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
typesizes.h hurd: Make timer_t pointer-sized 2023-02-20 00:34:56 +01:00
unistd_ext.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00