freebsd-skq/lib
Kyle Evans 8b8cf4ece6 memfd_create: simplify HUGETLB support a little bit
This also fixes a minor issue that was missed in the initial review; the
layout of the MFD_HUGE_* flags is actually not 1:1 bit:flag -- it instead
borrowed the Linux convention of how this is laid out since it was
originally implemented on Linux, the top 6 bits represent the shift required
for the requested page size.

This allows us to remove the flag <-> pgsize mapping table and simplify the
logic just prior to validation of the requested page size.

While we're here, fix two small nits:

- HUGETLB memfd shouldn't exhibit the SHM_GROW_ON_WRITE behavior. We can
  only grow largepage shm by appropriately aligned (i.e. requested pagesize)
  sizes, so it can't work in the typical/sane fashion. Furthermore, Linux
  does the same, so let's be compatible.

- We don't allow MFD_HUGETLB without specifying a pagesize, so no need to
  check for that later.

Reviewed by:	kib (slightly earlier version)
2020-09-11 02:02:15 +00:00
..
atf
clang Add a few more files to libllvm, which are required when doing sanitized 2020-09-03 18:27:13 +00:00
csu
geom gpart(8): Recognize apple-zfs and solaris-reserved partition ids 2020-08-17 17:07:05 +00:00
googletest
kyua
lib80211
libalias
libarchive
libauditd
libbe ZFS: MFV 2.0-rc1-gfd20a8 2020-09-04 22:25:14 +00:00
libbearssl
libbegemot
libblacklist
libblocksruntime
libbluetooth
libbsdstat
libbsm
libbsnmp
libbz2
libc memfd_create: simplify HUGETLB support a little bit 2020-09-11 02:02:15 +00:00
libc_nonshared
libc++ Add a few new source files to libc++, in particular the implementation 2020-08-22 12:05:11 +00:00
libc++experimental
libcalendar
libcam
libcapsicum Add missing FreeBSD functions to -legacy when building on macOS/Linux 2020-08-25 13:23:31 +00:00
libcasper
libclang_rt
libcom_err
libcompat
libcompiler_rt Follow-up r364753 by only using arm's stdatomic.c implementation, as it 2020-09-10 16:47:12 +00:00
libcrypt
libcuse
libcxxrt
libdevctl
libdevdctl
libdevinfo
libdevstat
libdl
libdpv
libdwarf
libedit
libefivar
libelf
libelftc
libevent1
libexecinfo
libexpat
libfetch
libfigpar
libgcc_eh After r364423, which ensures the callbacks that dl_iterate_phdr(3) 2020-08-25 20:07:11 +00:00
libgcc_s
libgeom
libgpio
libgssapi
libiconv_modules
libifconfig libifconfig now depends on libm due to usage of log10(). 2020-09-02 22:10:08 +00:00
libipsec
libipt
libjail
libkiconv
libkvm
libldns
liblua Fix -Wundef warnings when building liblua 2020-08-25 13:30:34 +00:00
liblutok
liblzma
libmagic
libmd
libmemstat memstat_kvm_uma: fix reading of uma_zone_domain structures 2020-08-28 19:50:40 +00:00
libmilter
libmp
libmt
libnetbsd
libnetgraph
libnetmap lib: libnetmap: add missing copyright headers 2020-09-01 06:06:32 +00:00
libngatm
libnv
libomp
libopenbsd
libopencsd
libopie
libpam
libpathconv
libpcap
libpe
libpjdlog
libpmc libpmc: Fix memory leak in process_mapfile 2020-08-31 16:07:40 +00:00
libpmcstat
libproc Remove -I flag for include path that doesn't exist 2020-09-10 15:37:07 +00:00
libprocstat Merge OpenZFS support in to HEAD. 2020-08-25 02:21:27 +00:00
libradius
libregex
librpcsec_gss
librpcsvc
librss
librt
librtld_db
libsbuf
libsdp
libsecureboot veloader: insist on verifying .4th .lua etc 2020-08-21 00:27:06 +00:00
libsm
libsmb
libsmdb
libsmutil
libsqlite3
libssp
libssp_nonshared
libstats
libstdbuf
libstdthreads
libsysdecode Fix compilation of libsysdecode after r365522, should have been part of it. 2020-09-09 22:18:44 +00:00
libtacplus
libtelnet
libthr
libthread_db
libucl Avoid issues with STAGING by using LIBUCL_DIR for the source directory 2020-09-03 03:48:42 +00:00
libufs
libugidfw
libulog
libunbound
libusb
libusbhid
libutil
libveriexec
libvgl
libvmmapi
libwrap
libxo
liby
libypclnt
libz
libzstd Vendor import of openzfs master @ 184df27eef0abdc7ab2105b21257f753834b936b 2020-08-24 22:48:19 +00:00
msun
ncurses
ofed
tests
Makefile lib: add libnetmap 2020-08-28 20:03:54 +00:00
Makefile.inc