<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libc, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>sysctl.3: Correct kern and kern.proc type descriptions</title>
<updated>2026-04-16T06:05:20+00:00</updated>
<author>
<name>brothersw</name>
<email>tyler.waddell112@gmail.com</email>
</author>
<published>2026-04-07T18:45:08+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=32cc01e75aabc117c2c19c25291aa25eb1ec3cef'/>
<id>32cc01e75aabc117c2c19c25291aa25eb1ec3cef</id>
<content type='text'>
Fix several incorrect sysctl.3 type and mutability descriptions so the
manpage matches the actual kern and kern.proc interfaces.

Signed-off-by: Tyler Waddell &lt;tyler.waddell112@gmail.com&gt;
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2128
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix several incorrect sysctl.3 type and mutability descriptions so the
manpage matches the actual kern and kern.proc interfaces.

Signed-off-by: Tyler Waddell &lt;tyler.waddell112@gmail.com&gt;
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2128
</pre>
</div>
</content>
</entry>
<entry>
<title>libc: fix memfd_create's HUGETLB handling</title>
<updated>2026-04-09T02:37:11+00:00</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2026-04-09T02:37:00+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=9a8d333368baef356f0a611b47ec592568dd14f9'/>
<id>9a8d333368baef356f0a611b47ec592568dd14f9</id>
<content type='text'>
The 'simplification' commit referenced below actually broke one aspect
of MFD_HUGETLB: the caller isn't supposed to be required to specify a
size.  MFD_HUGETLB by itself without a shift mask just requests a large
page, so we revert that part of memfd_create() back.

While we're here, fix up the related parts of the manpages a little bit,
since MFD_HUGETLB is actually supported.  The manpage claims that we
would return ENOSYS if forced mappings weren't supported, but this was
actually not true.  However, that seems like a very important
distinction to make between ENOSYS and EOPNOTSUPP, so fix the
implementation to match the docs.

Fixes:	8b8cf4ece660f ("memfd_create: simplify HUGETLB support [...]")
Reviewed by:	kib, markj
Differential Revision:	https://reviews.freebsd.org/D56114
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The 'simplification' commit referenced below actually broke one aspect
of MFD_HUGETLB: the caller isn't supposed to be required to specify a
size.  MFD_HUGETLB by itself without a shift mask just requests a large
page, so we revert that part of memfd_create() back.

While we're here, fix up the related parts of the manpages a little bit,
since MFD_HUGETLB is actually supported.  The manpage claims that we
would return ENOSYS if forced mappings weren't supported, but this was
actually not true.  However, that seems like a very important
distinction to make between ENOSYS and EOPNOTSUPP, so fix the
implementation to match the docs.

Fixes:	8b8cf4ece660f ("memfd_create: simplify HUGETLB support [...]")
Reviewed by:	kib, markj
Differential Revision:	https://reviews.freebsd.org/D56114
</pre>
</div>
</content>
</entry>
<entry>
<title>libc/tests/string: add a more comprehensive unit test for strrchr()</title>
<updated>2026-04-08T13:21:50+00:00</updated>
<author>
<name>Robert Clausecker</name>
<email>fuz@FreeBSD.org</email>
</author>
<published>2026-03-22T21:39:42+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=8b5d77bbcbd98e684226950be1c779e108059d8d'/>
<id>8b5d77bbcbd98e684226950be1c779e108059d8d</id>
<content type='text'>
The unit tests are patterned after those for memrchr().
This catches the issue found in 293915.

PR:		293915
Reviewed by:	strajabot
Reported by:	safonov.paul@gmail.com
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D56037
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The unit tests are patterned after those for memrchr().
This catches the issue found in 293915.

PR:		293915
Reviewed by:	strajabot
Reported by:	safonov.paul@gmail.com
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D56037
</pre>
</div>
</content>
</entry>
<entry>
<title>libc: Add missing MLINK for stravis(3)</title>
<updated>2026-04-07T11:04:49+00:00</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2026-04-07T11:04:37+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=a09d06bc5bff64baab76220a66c3501b89899134'/>
<id>a09d06bc5bff64baab76220a66c3501b89899134</id>
<content type='text'>
MFC after:	1 week
Fixes:		8dfeba04eb36 ("Update to a June 8th snapshot of (un)vis form NetBSD.")
Reviewed by:	ziaee
Differential Revision:	https://reviews.freebsd.org/D56260
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
MFC after:	1 week
Fixes:		8dfeba04eb36 ("Update to a June 8th snapshot of (un)vis form NetBSD.")
Reviewed by:	ziaee
Differential Revision:	https://reviews.freebsd.org/D56260
</pre>
</div>
</content>
</entry>
<entry>
<title>pause.3: Fix a typo in the manual page</title>
<updated>2026-04-04T07:11:10+00:00</updated>
<author>
<name>Gordon Bergling</name>
<email>gbe@FreeBSD.org</email>
</author>
<published>2026-04-04T07:02:01+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=9eea5eccf40d408ad22ac06d9962b3a98a0f0628'/>
<id>9eea5eccf40d408ad22ac06d9962b3a98a0f0628</id>
<content type='text'>
- s/reimplemeted/reimplemented/

MFC after:	3 days
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- s/reimplemeted/reimplemented/

MFC after:	3 days
</pre>
</div>
</content>
</entry>
<entry>
<title>posix_spawn_file_action_addopen.3: ignoring close failure is now approved</title>
<updated>2026-04-03T08:22:53+00:00</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2026-04-02T08:06:52+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=b7b485efac8c1b601b9c0ada39921bad0e342970'/>
<id>b7b485efac8c1b601b9c0ada39921bad0e342970</id>
<content type='text'>
Reviewed by:	dim
Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
Differential revision:	https://reviews.freebsd.org/D56222
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by:	dim
Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
Differential revision:	https://reviews.freebsd.org/D56222
</pre>
</div>
</content>
</entry>
<entry>
<title>posix_spawn: actions chdir and fchdir are now required by POSIX</title>
<updated>2026-04-03T08:22:53+00:00</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2026-04-02T07:57:58+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=7caa71145c5eea5925c295e0cdd95b517005acf9'/>
<id>7caa71145c5eea5925c295e0cdd95b517005acf9</id>
<content type='text'>
Drop the _np suffix.

Reviewed by:	dim
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D56222
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Drop the _np suffix.

Reviewed by:	dim
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D56222
</pre>
</div>
</content>
</entry>
<entry>
<title>posix_spawn.3: fix formatting of xref</title>
<updated>2026-04-02T07:42:16+00:00</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2026-04-02T07:42:16+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=59e9a4c05a81a25aaf355cb18c24835abad96ff2'/>
<id>59e9a4c05a81a25aaf355cb18c24835abad96ff2</id>
<content type='text'>
Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
</pre>
</div>
</content>
</entry>
<entry>
<title>rtld: allow dlopen("#&lt;number&gt;/&lt;path&gt;")</title>
<updated>2026-04-02T02:41:55+00:00</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2026-03-29T22:45:49+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=ffbf3fecdeffa17c0745e7ed342989acb620d68e'/>
<id>ffbf3fecdeffa17c0745e7ed342989acb620d68e</id>
<content type='text'>
When a specially formatted path is passed to dlopen(), of the form
  #number/path
and the number is the valid dirfd file descriptor listed in the
LD_LIBRARY_FDS, interpret it as a relative path name against dirfd
number.

This complements the result returned from dladdr() for such objects
in dli_fname.

Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D56152
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When a specially formatted path is passed to dlopen(), of the form
  #number/path
and the number is the valid dirfd file descriptor listed in the
LD_LIBRARY_FDS, interpret it as a relative path name against dirfd
number.

This complements the result returned from dladdr() for such objects
in dli_fname.

Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D56152
</pre>
</div>
</content>
</entry>
<entry>
<title>_exit.2: Cross-reference atexit(3)</title>
<updated>2026-03-31T17:13:02+00:00</updated>
<author>
<name>Artem Bunichev</name>
<email>tembun@bk.ru</email>
</author>
<published>2026-03-31T17:09:00+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=c082e5656417945bfa567114c60969844f3d7bdf'/>
<id>c082e5656417945bfa567114c60969844f3d7bdf</id>
<content type='text'>
atexit(3) is one of the cases when _exit(2) must be used instead of
exit(3).

MFC after:		3 days
Reviewed by:		mhorne, ziaee
Differential Revision:	https://reviews.freebsd.org/D54467
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
atexit(3) is one of the cases when _exit(2) must be used instead of
exit(3).

MFC after:		3 days
Reviewed by:		mhorne, ziaee
Differential Revision:	https://reviews.freebsd.org/D54467
</pre>
</div>
</content>
</entry>
</feed>
