<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libsys/amd64, 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-28T02:26:52Z</updated>
<entry>
<title>libsys, libc: provide rfork_thread() and pdrfork_thread() on all arches</title>
<updated>2026-01-28T02:26:52Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2026-01-26T16:04:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c1be185e3fb9afd6743683a8f5a43b9c364ab529'/>
<id>urn:sha1:c1be185e3fb9afd6743683a8f5a43b9c364ab529</id>
<content type='text'>
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D54898
</content>
</entry>
<entry>
<title>libsys: add pdrfork_thread() on x86</title>
<updated>2026-01-26T19:30:05Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2026-01-25T17:33:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=74a2bf1b7a7ff0c872499cb94df24713f61c872c'/>
<id>urn:sha1:74a2bf1b7a7ff0c872499cb94df24713f61c872c</id>
<content type='text'>
Reviewed by:	asomers
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D54879
</content>
</entry>
<entry>
<title>amd64: assume the kernel supports RDFSBASE and RDGSBASE</title>
<updated>2025-08-08T17:15:21Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2025-08-08T17:15:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8d26a9da0c94f314b7e37a2784b13e2f5fb8052d'/>
<id>urn:sha1:8d26a9da0c94f314b7e37a2784b13e2f5fb8052d</id>
<content type='text'>
There is no need to support pre-12.0 (and thus pre-ino64) kernels in a
15.x libc.

Continue to check if the CPU supports these features before using them
and fall back as required.

Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D50732
</content>
</entry>
<entry>
<title>amd64: add amd64_set_tlsbase(3)</title>
<updated>2025-05-28T11:11:23Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2025-05-22T04:32:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2e7cf772a4114b78eb0ab2687d91d563de89e206'/>
<id>urn:sha1:2e7cf772a4114b78eb0ab2687d91d563de89e206</id>
<content type='text'>
Tested by:	pho
Reviewed by:	olce
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D50482
</content>
</entry>
<entry>
<title>lib{c,sys}: return wrapped syscall APIs to libc</title>
<updated>2024-03-13T18:36:02Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2024-03-13T17:42:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d7847a8d351436a4654bd2c746bc9c04401160ee'/>
<id>urn:sha1:d7847a8d351436a4654bd2c746bc9c04401160ee</id>
<content type='text'>
These provide standard APIs, but are implemented using another system
call (e.g., pipe implemented in terms of pipe2) or are interposed by the
threading library to support cancelation.

After discussion with kib (see D44111), I've concluded that it is
better to keep most public interfaces in libc with as little
as possible in libsys.

Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D44241
</content>
</entry>
<entry>
<title>lib{c,sys}: expose _getlogin consistently</title>
<updated>2024-02-29T19:46:33Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2024-02-29T19:46:33Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=304cdac7385a40477484737fc0a4aa928c3be9d6'/>
<id>urn:sha1:304cdac7385a40477484737fc0a4aa928c3be9d6</id>
<content type='text'>
Historically we exposed _getlogin as a private symbol on a per-arch basis
(except on aarch64 and riscv) for no obvious reason.  We now need to
expose it for libc's use so remove the special case from
makesyscalls.lua and expose it in the generated syscalls.map.

Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D44116
</content>
</entry>
<entry>
<title>SYS.h: make _SYSCALL_BODY overridable</title>
<updated>2024-02-05T20:34:56Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2024-01-05T18:33:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f21777224411fee14b8aea6d8465bd6c2b318429'/>
<id>urn:sha1:f21777224411fee14b8aea6d8465bd6c2b318429</id>
<content type='text'>
Reviewed by:	kib, emaste, imp
Pull Request:	https://github.com/freebsd/freebsd-src/pull/908
</content>
</entry>
<entry>
<title>libthr: move _umtx_op_err() to libsys</title>
<updated>2024-02-05T20:34:56Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2024-01-17T20:26:52Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ef9871c6205c158b16ee23702d2b8c043debc51a'/>
<id>urn:sha1:ef9871c6205c158b16ee23702d2b8c043debc51a</id>
<content type='text'>
Declare in sys/umtx.h and implement in libsys.  Explicitly link libthr
with libsys.

When building libthr static include _umtx_op_err so we don't break static
linkage with -lpthread.

Reviewed by:	kib, emaste, imp
Pull Request:	https://github.com/freebsd/freebsd-src/pull/908
</content>
</entry>
<entry>
<title>libc: move MD sys related symbols to libsys</title>
<updated>2024-02-05T20:34:56Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2023-11-15T21:48:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1e2502bfca58344780747c3948b51164e25c8b5f'/>
<id>urn:sha1:1e2502bfca58344780747c3948b51164e25c8b5f</id>
<content type='text'>
This is a mix genuine MD interfaces and compat symbols like _getlogin.

Reviewed by:	kib, emaste, imp
Pull Request:	https://github.com/freebsd/freebsd-src/pull/908
</content>
</entry>
<entry>
<title>libc: move rfork_thread(3) to libsys</title>
<updated>2024-02-05T20:34:56Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2023-11-15T21:44:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=cdecda8da32b67f2be34a4d2ea37f90986a45a00'/>
<id>urn:sha1:cdecda8da32b67f2be34a4d2ea37f90986a45a00</id>
<content type='text'>
rfork_thread(3) is assembly that makes syscalls directly and uses
cerror so it belongs in libsys.

Reviewed by:	kib, emaste, imp
Pull Request:	https://github.com/freebsd/freebsd-src/pull/908
</content>
</entry>
</feed>
