about summary refs log tree commit diff
path: root/include/unistd.h
diff options
context:
space:
mode:
authorCarlos Llamas <cmllamas@google.com>2024-06-18 10:56:34 +0200
committerFlorian Weimer <fweimer@redhat.com>2024-06-18 10:56:34 +0200
commit176671f6042912200ea9733bb6cc8212e06bc85e (patch)
treeaf87f86fe17f2f002f8025a2faf5b4229c32d6a8 /include/unistd.h
parente260ceb4aa85dfde1280a80bd6373b11b43266af (diff)
downloadglibc-176671f6042912200ea9733bb6cc8212e06bc85e.tar.gz
glibc-176671f6042912200ea9733bb6cc8212e06bc85e.tar.xz
glibc-176671f6042912200ea9733bb6cc8212e06bc85e.zip
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>
Diffstat (limited to 'include/unistd.h')
0 files changed, 0 insertions, 0 deletions