<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libc/sys, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2026-01-25T15:54:08Z</updated>
<entry>
<title>lib/libsys, lib/libc: export pdwait</title>
<updated>2026-01-25T15:54:08Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2026-01-08T03:49:33Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2d555ec85a716e016be587b2a1606ca69267f870'/>
<id>urn:sha1:2d555ec85a716e016be587b2a1606ca69267f870</id>
<content type='text'>
Make pdwait(2) cancellable, same as all other wait*(2) syscalls wrappers.

Reviewed by:	asomers, markj
Tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D54592
</content>
</entry>
<entry>
<title>libc: stop trying to create __&lt;syscall&gt; symbols</title>
<updated>2025-08-06T11:31:24Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2025-08-06T11:23:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b59aecef032eb8287ccdac003341f397214fc9ee'/>
<id>urn:sha1:b59aecef032eb8287ccdac003341f397214fc9ee</id>
<content type='text'>
When we switched to an interposing table (commit 8495e8b1e9e1) for
cancelation points we stopped having concrete implementations of
__&lt;syscall&gt; and instead use __sys_&lt;syscall&gt; and __thr_&lt;syscall&gt;.
These entries of the form:

	__weak_reference(__sys_&lt;syscall&gt;, __&lt;syscall&gt;);

seem to be intended to preserve these symbols, but they have no effect
as __sys_&lt;syscall&gt; isn't defined in the translation units in question.

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D51668
</content>
</entry>
<entry>
<title>closefrom: always use close_range(2)</title>
<updated>2025-06-06T21:58:29Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2025-06-06T21:13:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9623040eee15b05b50b90b01da18537cce26a353'/>
<id>urn:sha1:9623040eee15b05b50b90b01da18537cce26a353</id>
<content type='text'>
close_range(2) was added prior to 13.0.  There is no need to support
a new userspace on such an old kernel.

Reviewed by:	kevans, imp
Differential Revision:	https://reviews.freebsd.org/D50730
</content>
</entry>
<entry>
<title>libc: switch to __weak_symbol for fortified interpose stubs</title>
<updated>2024-07-16T05:12:28Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2024-07-16T05:12:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d5f8270917bfee4242778544b990bb7f82f8a4de'/>
<id>urn:sha1:d5f8270917bfee4242778544b990bb7f82f8a4de</id>
<content type='text'>
GCC doesn't like `#pragma weak macro(foo)`, but that's fine; just slap
a __weak_symbol on the definition to more reliably make it weak
anyways.

Reviewed by:	kib (earlier version), markj
Sponsored by:	Klara, Inc.
Sponsored by:	Stormshield
Differential Revision:	https://reviews.freebsd.org/D45976
</content>
</entry>
<entry>
<title>include: ssp: fortify &lt;sys/socket.h&gt;</title>
<updated>2024-07-13T05:16:26Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2024-07-13T05:16:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1f155d48f878495d31592c59cab82f975c210ad8'/>
<id>urn:sha1:1f155d48f878495d31592c59cab82f975c210ad8</id>
<content type='text'>
The entire recv*() implementation set is ripe for opportunities to
validate, so do what we can with what we have.

Reviewed by:	markj
Sponsored by:	Klara, Inc.
Sponsored by:	Stormshield
Differential Revision:	https://reviews.freebsd.org/D45686
</content>
</entry>
<entry>
<title>include: ssp: fortify &lt;sys/uio.h&gt;</title>
<updated>2024-07-13T05:16:25Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2024-07-13T05:16:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1ace24b30cad59c8ae509d0c690aa55b8df73136'/>
<id>urn:sha1:1ace24b30cad59c8ae509d0c690aa55b8df73136</id>
<content type='text'>
Check both the buffer size of the iov object itself, as well as that
of each indidvidually io base.

Reviewed by:	markj
Sponsored by:	Klara, Inc.
Sponsored by:	Stormshield
Differential Revision:	https://reviews.freebsd.org/D45684
</content>
</entry>
<entry>
<title>include: ssp: fortify poll/ppoll from &lt;poll.h&gt;</title>
<updated>2024-07-13T05:16:24Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2024-07-13T05:16:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=88276dfbf19e3c0dbd1abee5c2e18c8a4a8c5559'/>
<id>urn:sha1:88276dfbf19e3c0dbd1abee5c2e18c8a4a8c5559</id>
<content type='text'>
For poll/ppoll we just need to bounds-check the poll array that we're
about to write out to.

Reviewed by:	kib, markj (earlier version)
Sponsored by:	Klara, Inc.
Sponsored by:	Stormshield
Differential Revision:	https://reviews.freebsd.org/D45680
</content>
</entry>
<entry>
<title>Revert "lib{c,sys}: normalize export of openat, setcontext, and swapcontext"</title>
<updated>2024-04-19T21:25:04Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2024-04-19T21:21:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6e83504c603157e9fc1660d2a1556036492662fc'/>
<id>urn:sha1:6e83504c603157e9fc1660d2a1556036492662fc</id>
<content type='text'>
I put the symbols in the wrong file (should have been
lib/libc/sys/Symbol.map), added a duplicate pdfork entry due to a botch
rebase, and there seems to be a issue with gcc13/binutils not exposing
the symbols so revert the whole thing while I debug.

This reverts commit ee632fb9eb4a060a4087a7f5425bfe36e65cda61.
</content>
</entry>
<entry>
<title>lib{c,sys}: normalize export of openat, setcontext, and swapcontext</title>
<updated>2024-04-17T22:39:46Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2024-04-16T22:26:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ee632fb9eb4a060a4087a7f5425bfe36e65cda61'/>
<id>urn:sha1:ee632fb9eb4a060a4087a7f5425bfe36e65cda61</id>
<content type='text'>
List them in the symbol map rather than using the __sym_default to
expose them.  This will allow later improvements in the stub
implementations in libc.so.

Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D44113
</content>
</entry>
<entry>
<title>libc: INTERPOS_SYS macro for interposed syscalls</title>
<updated>2024-04-16T16:48:08Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2024-04-16T16:48:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7dd9070e4425a1c2e2418694fd632425a283d558'/>
<id>urn:sha1:7dd9070e4425a1c2e2418694fd632425a283d558</id>
<content type='text'>
This macro makes uses the __sys_&lt;foo&gt;_t typedefs from libsys.h to
greatly simplify calling functions in the interposing table.

Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D44389
</content>
</entry>
</feed>
