glibc/sysdeps/unix/sysv/linux/bits
Carlos Llamas 176671f604 linux: add definitions for hugetlb page size encodings
A desired hugetlb page size can be encoded in the flags parameter of
system calls such as mmap() and shmget(). The Linux UAPI headers have
included explicit definitions for these encodings since v4.14.

This patch adds these definitions that are used along with MAP_HUGETLB
and SHM_HUGETLB flags as specified in the corresponding man pages. This
relieves programs from having to duplicate and/or compute the encodings
manually.

Additionally, the filter on these definitions in tst-mman-consts.py is
removed, as suggested by Florian. I then ran this tests successfully,
confirming the alignment with the kernel headers.

  PASS: misc/tst-mman-consts
  original exit status 0

Signed-off-by: Carlos Llamas <cmllamas@google.com>
Tested-by: Florian Weimer <fweimer@redhat.com>
Reviewed-by: Florian Weimer <fweimer@redhat.com>
2024-06-18 10:56:34 +02:00
..
types Always define __USE_TIME_BITS64 when 64 bit time_t is used 2024-04-02 15:28:36 -03:00
a.out.h Update. 2003-07-25 09:06:04 +00:00
dirent.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
dirent_ext.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
epoll.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
errno.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
eventfd.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
fcntl-linux.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
fcntl.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
in.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
initspin.h Update. 2000-10-15 06:50:42 +00:00
inotify.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
ioctl-types.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
ioctls.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
ipc-perm.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
local_lim.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
mman-linux.h linux: add definitions for hugetlb page size encodings 2024-06-18 10:56:34 +02:00
mman-map-flags-generic.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
mman-shared.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
mman.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
mman_ext.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
mqueue.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
msq.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
param.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
poll.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
posix_opt.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
procfs-extra.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
procfs-id.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
procfs-prregset.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
procfs.h Unify some sys/procfs.h headers. 2018-09-25 16:48:15 +00:00
pthread_stack_min-dynamic.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pthread_stack_min.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
ptrace-shared.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
resource.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
rseq.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
sched.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
sem.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
semaphore.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
shm.h linux: add definitions for hugetlb page size encodings 2024-06-18 10:56:34 +02:00
shmlba.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
sigaction.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
sigcontext.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
sigevent-consts.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
siginfo-arch.h Remove __need macros from signal.h. 2017-05-20 19:04:43 -04:00
siginfo-consts-arch.h Remove __need macros from signal.h. 2017-05-20 19:04:43 -04:00
siginfo-consts.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
signal_ext.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
signalfd.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
signum-arch.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
sigstack.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
sigstksz.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
socket-constants.h Always define __USE_TIME_BITS64 when 64 bit time_t is used 2024-04-02 15:28:36 -03:00
socket.h socket: Use may_alias on sockaddr structs (bug 19622) 2024-05-18 09:33:19 +02:00
socket_type.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
spawn_ext.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
ss_flags.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
stat.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
statfs.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
statvfs.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
statx.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
stdio_lim.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
struct_stat.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
struct_stat_time64_helper.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
termios-baud.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
termios-c_cc.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
termios-c_cflag.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
termios-c_iflag.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
termios-c_lflag.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
termios-c_oflag.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
termios-misc.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
termios-struct.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
termios-tcflow.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
termios.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
time.h Always define __USE_TIME_BITS64 when 64 bit time_t is used 2024-04-02 15:28:36 -03:00
timerfd.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
timex.h Always define __USE_TIME_BITS64 when 64 bit time_t is used 2024-04-02 15:28:36 -03:00
typesizes.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
uio-ext.h misc: Add support for Linux uio.h RWF_NOAPPEND flag 2024-04-04 09:41:27 +01:00
uio_lim.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
unistd_ext.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
utsname.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
waitflags.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00