opnsense-src/lib/libc
Brooks Davis c96772227b memfd_create: don't allocate heap memory
Rather than calling calloc() to allocate space for a page size array to
pass to getpagesizes(), just follow the getpagesizes() implementation
and allocate MAXPAGESIZES elements on the stack.  This avoids the need
for the allocation.

While this does mean that a new libc is required to take advantage of a
new huge page size, that was already true due to getpagesizes() using a
static buffer of MAXPAGESIZES elements.

Reviewed by:	kevans, imp, emaste
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D42710
2023-11-28 17:09:27 +00:00
..
aarch64 libc: Teach libc about the BTI elf note 2023-11-21 10:02:51 +00:00
amd64 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
arm lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
capability libc: Remove empty comments in Symbol.map 2023-11-15 17:51:03 +00:00
compat-43 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
csu libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
db lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
gdtoa libc: Remove empty comments in Symbol.map 2023-11-15 17:51:03 +00:00
gen memfd_create: don't allocate heap memory 2023-11-28 17:09:27 +00:00
gmon lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
i386 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
iconv libc: Remove empty comments in Symbol.map 2023-11-15 17:51:03 +00:00
include libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
inet lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
isc lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
locale lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
md Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
nameser lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
net lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
nls libc: Remove empty comments in Symbol.map 2023-11-15 17:51:03 +00:00
posix1e libc: Remove empty comments in Symbol.map 2023-11-15 17:51:03 +00:00
powerpc libc: centralize a few numeric symbols 2023-11-15 23:42:37 +00:00
powerpc64 libc: centralize a few numeric symbols 2023-11-15 23:42:37 +00:00
powerpcspe libc/<arch>/sys/Makefile.inc: remove cruft 2023-11-15 17:50:53 +00:00
quad Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
regex lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
resolv lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
riscv libc: centralize a few numeric symbols 2023-11-15 23:42:37 +00:00
rpc lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
secure libc: Remove empty comments in Symbol.map 2023-11-15 17:51:03 +00:00
softfloat libc: Remove empty comments in Symbol.map 2023-11-15 17:51:03 +00:00
stdio lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
stdlib lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
stdtime Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
string lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
sys memfd_create: move implementation to libc/gen 2023-11-28 17:09:27 +00:00
tests lib/libc/tests/string: add extended unit tests for strcmp() 2023-11-14 12:37:06 -05:00
uuid libc: Remove empty comments in Symbol.map 2023-11-15 17:51:03 +00:00
x86 libc/<arch>/sys/Makefile.inc: remove cruft 2023-11-15 17:50:53 +00:00
xdr lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
yp lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
libc.ldscript Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
libc_nossp.ldscript Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
Makefile lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
Makefile.depend dirdeps: Update/fix Makefile.depend* for toolchain 2023-11-26 20:50:13 -05:00
Makefile.depend.options Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Versions.def Create namespace for the symbols added during 15-CURRENT cycle 2023-09-22 10:16:29 +02:00