<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libc/i386, 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>2025-08-17T07:24:59Z</updated>
<entry>
<title>libc: Fix a typo in a source code comment</title>
<updated>2025-08-17T07:24:59Z</updated>
<author>
<name>Gordon Bergling</name>
<email>gbe@FreeBSD.org</email>
</author>
<published>2025-08-17T07:24:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=333b0490e3132bf8f1a0d974d8b2597caf765970'/>
<id>urn:sha1:333b0490e3132bf8f1a0d974d8b2597caf765970</id>
<content type='text'>
- s/aguments/arguments/

MFC after:	3 days
</content>
</entry>
<entry>
<title>libc, libthr: Ditch MD __pthread_distribute_static_tls helpers</title>
<updated>2025-05-29T16:06:54Z</updated>
<author>
<name>Jessica Clarke</name>
<email>jrtc27@FreeBSD.org</email>
</author>
<published>2025-05-29T16:06:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=250b2eda0acc44cf882d5ea8fcf28125e7501719'/>
<id>urn:sha1:250b2eda0acc44cf882d5ea8fcf28125e7501719</id>
<content type='text'>
_libc_get_static_tls_base() is just _tcb_get() followed by adding (for
Variant I) or subtracting (for Variant II) the offset, so just inline
that as the implementation (like we do in rtld-elf) rather than having
another copy (or equivalent) of _tcb_get()'s assembly.

_get_static_tls_base() doesn't even have any MD assembly as it's
reading thr-&gt;tcb, the only difference is whether to add or subtract, so
again just inline that.

Whilst here add some missing blank lines to comply with style(9) for
elf_utils.c's includes, and use a pointer type rather than uintptr_t to
reduce the need to cast, as is done in rtld-elf.

Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D50592
</content>
</entry>
<entry>
<title>Remove residual blank line at start of Makefile</title>
<updated>2024-07-15T22:43:39Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2024-07-15T04:46:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e9ac41698b2f322d55ccf9da50a3596edb2c1800'/>
<id>urn:sha1:e9ac41698b2f322d55ccf9da50a3596edb2c1800</id>
<content type='text'>
This is a residual of the $FreeBSD$ removal.

MFC After: 3 days (though I'll just run the command on the branches)
Sponsored by: Netflix
</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>libc/i386: don't attempt to export alloca</title>
<updated>2024-03-07T20:14:55Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2024-03-07T20:14:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=32c7350beb82c0c6f4a2b06afc2369e313126cae'/>
<id>urn:sha1:32c7350beb82c0c6f4a2b06afc2369e313126cae</id>
<content type='text'>
The assembly implementation was removed in 2006 (commit 3c03c7095e7e).

Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D44242
</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>
<entry>
<title>libc: Move per-arch sys/Makefile.inc to libsys</title>
<updated>2024-02-05T20:34:55Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2023-11-14T22:25:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=31a46e2cc84d7ebfc25ce5a33e54681057e9ed9a'/>
<id>urn:sha1:31a46e2cc84d7ebfc25ce5a33e54681057e9ed9a</id>
<content type='text'>
libc/&lt;arch&gt;/sys/Makefile.inc -&gt; libsys/&lt;arch&gt;/Makefile.sys.

Require that libsys/&lt;arch&gt;/Makefile.sys exist.  At least for current
archtiectures, it's not possible for an architecture to not have and MD
syscall bits.

powerpcspe/Makefile.sys's structure means it had to be modified when moved
so rename detection won't work, but it has trivial contents so the
history is unimportant.

Reviewed by:	kib, emaste, imp
Pull Request:	https://github.com/freebsd/freebsd-src/pull/908
</content>
</entry>
<entry>
<title>libc: remove remaining x86 sys bits to libsys</title>
<updated>2024-02-05T20:34:55Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2023-11-14T22:05:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4bc66c0f9f2c349af86cbf4e77f000b49d819fea'/>
<id>urn:sha1:4bc66c0f9f2c349af86cbf4e77f000b49d819fea</id>
<content type='text'>
Reviewed by:	kib, emaste, imp
Pull Request:	https://github.com/freebsd/freebsd-src/pull/908
</content>
</entry>
<entry>
<title>libsys: relocate implementations and manpages</title>
<updated>2024-02-05T20:34:55Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2023-11-14T17:54:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8269e7673cf033aba67dab8264fe719920c70f87'/>
<id>urn:sha1:8269e7673cf033aba67dab8264fe719920c70f87</id>
<content type='text'>
Remove core system call implementations and documentation to lib/libsys
and lib/libsys/&lt;arch&gt; from lib/libc/sys and lib/libc/&lt;arch&gt;/&lt;sys&gt;.
Update paths to allow libc to find them in their new home.

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