<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/std/src/sys/unix, branch master</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=master</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=master'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2024-01-11T19:10:25+00:00</updated>
<entry>
<title>std: begin moving platform support modules into `pal`</title>
<updated>2024-01-11T19:10:25+00:00</updated>
<author>
<name>joboet</name>
<email>jonasboettiger@icloud.com</email>
</author>
<published>2024-01-11T19:10:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=99128b7e45f8b95d962da2e6ea584767f0c85455'/>
<id>urn:sha1:99128b7e45f8b95d962da2e6ea584767f0c85455</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #118748 - devnexen:fbsd_getrandom_simpl, r=Nilstrieb,dtolnay</title>
<updated>2024-01-09T12:23:16+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume1.gomez@gmail.com</email>
</author>
<published>2024-01-09T12:23:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=df2f4ae4acac07922a87801b1bf6ebae29ef4392'/>
<id>urn:sha1:df2f4ae4acac07922a87801b1bf6ebae29ef4392</id>
<content type='text'>
std: getrandom simplification for freebsd.

it is in the libcs' crate too now.
</content>
</entry>
<entry>
<title>openbsd: available_parallelism: use the right API</title>
<updated>2023-12-30T09:34:02+00:00</updated>
<author>
<name>Sebastien Marie</name>
<email>semarie@kapouay.eu.org</email>
</author>
<published>2023-12-30T09:34:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3633f8ba1cc5d1853e2768e5a9516574ed7d31e1'/>
<id>urn:sha1:3633f8ba1cc5d1853e2768e5a9516574ed7d31e1</id>
<content type='text'>
use the standard sysconf(_SC_NPROCESSORS_ONLN) way to get the number of 
available processors (capable of running processes), and fallback to 
sysctl([CTL_HW, HW_NCPU]) (number of CPUs configured) only on error.

it permits to differenciate CPUs online vs CPUs configured (and not necessary 
capable of running processes).

while here, use the common code path for BSDs for doing that, and avoid code 
duplication.

Problem initially reported to me by Jiri Navratil.
</content>
</entry>
<entry>
<title>Adjust the std library for sanitizer_cfi cfgs changes</title>
<updated>2023-12-23T00:01:09+00:00</updated>
<author>
<name>Urgau</name>
<email>urgau@numericable.fr</email>
</author>
<published>2023-12-22T23:48:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c88b021782aff93102c8d449829a30210d67b2ab'/>
<id>urn:sha1:c88b021782aff93102c8d449829a30210d67b2ab</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Auto merge of #118566 - klensy:cstr-new, r=WaffleLapkin</title>
<updated>2023-12-14T11:14:03+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2023-12-14T11:14:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1aa6aefdc92555b3fbc5ae4c99365df9845a3e31'/>
<id>urn:sha1:1aa6aefdc92555b3fbc5ae4c99365df9845a3e31</id>
<content type='text'>
use c literals in compiler and library

Relands refreshed https://github.com/rust-lang/rust/pull/111647
</content>
</entry>
<entry>
<title>Auto merge of #117873 - quininer:android-emutls, r=Amanieu</title>
<updated>2023-12-09T05:32:35+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2023-12-09T05:32:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=608f32435afd5b61f61c593e70df1a2b8ada6a79'/>
<id>urn:sha1:608f32435afd5b61f61c593e70df1a2b8ada6a79</id>
<content type='text'>
Add emulated TLS support

This is a reopen of https://github.com/rust-lang/rust/pull/96317 . many android devices still only use 128 pthread keys, so using emutls can be helpful.

Currently LLVM uses emutls by default for some targets (such as android, openbsd), but rust does not use it, because `has_thread_local` is false.

This commit has some changes to allow users to enable emutls:

1. add `-Zhas-thread-local` flag to specify that std uses `#[thread_local]` instead of pthread key.
2. when using emutls, decorate symbol names to find thread local symbol correctly.
3. change `-Zforce-emulated-tls` to `-Ztls-model=emulated` to explicitly specify whether to generate emutls.

r? `@Amanieu`
</content>
</entry>
<entry>
<title>std: getrandom simplification for freebsd.</title>
<updated>2023-12-08T15:26:16+00:00</updated>
<author>
<name>David Carlier</name>
<email>devnexen@gmail.com</email>
</author>
<published>2023-12-08T15:26:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=bc6a5c71b635a9a5ea52c0b5f4ff297b0f611ac7'/>
<id>urn:sha1:bc6a5c71b635a9a5ea52c0b5f4ff297b0f611ac7</id>
<content type='text'>
it is in the libcs' crate too now.
</content>
</entry>
<entry>
<title>Auto merge of #116565 - Sword-Destiny:master, r=Amanieu</title>
<updated>2023-12-07T05:22:21+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2023-12-07T05:22:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=568f6a8641e391ffcdcdb03e79d0901731d8d399'/>
<id>urn:sha1:568f6a8641e391ffcdcdb03e79d0901731d8d399</id>
<content type='text'>
add teeos std impl

add teeos std library implement.

this MR is draft untill the libc update to 0.2.150

this MR is the final step for suppot rust in teeos.
first step(add target): https://github.com/rust-lang/rust/pull/113480
second step(add teeos libc): https://github.com/rust-lang/libc/pull/3333
</content>
</entry>
<entry>
<title>add teeos std impl</title>
<updated>2023-12-07T02:33:03+00:00</updated>
<author>
<name>袁浩</name>
<email>yuanhao34@huawei.com</email>
</author>
<published>2023-10-09T03:27:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e353eb91fb793c5ec7cb12f7c99a13d55e05fba1'/>
<id>urn:sha1:e353eb91fb793c5ec7cb12f7c99a13d55e05fba1</id>
<content type='text'>
Signed-off-by: 袁浩 &lt;yuanhao34@huawei.com&gt;
</content>
</entry>
<entry>
<title>Add emulated TLS support</title>
<updated>2023-12-06T16:21:32+00:00</updated>
<author>
<name>quininer</name>
<email>quininer@live.com</email>
</author>
<published>2023-11-13T12:48:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e5b76892cc5e6fbfb495bf6a7339962a287849a7'/>
<id>urn:sha1:e5b76892cc5e6fbfb495bf6a7339962a287849a7</id>
<content type='text'>
Currently LLVM uses emutls by default
for some targets (such as android, openbsd),
but rust does not use it, because `has_thread_local` is false.

This commit has some changes to allow users to enable emutls:

1. add `-Zhas-thread-local` flag to specify
    that std uses `#[thread_local]` instead of pthread key.
2. when using emutls, decorate symbol names
    to find thread local symbol correctly.
3. change `-Zforce-emulated-tls` to `-Ztls-model=emulated`
    to explicitly specify whether to generate emutls.
</content>
</entry>
</feed>
