<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/std/src/os/fd/mod.rs, branch auto</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=auto</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=auto'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-03-10T17:00:24+00:00</updated>
<entry>
<title>Apply rustc-0054-Add-std-os-fd-support-for-Trusty.patch</title>
<updated>2025-03-10T17:00:24+00:00</updated>
<author>
<name>Nicole LeGare</name>
<email>legare@google.com</email>
</author>
<published>2025-02-04T22:00:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7f6ee12526700e037ef34912b2b0c628028d382c'/>
<id>urn:sha1:7f6ee12526700e037ef34912b2b0c628028d382c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix the stability attributes for `std::os::fd`.</title>
<updated>2023-01-14T17:47:34+00:00</updated>
<author>
<name>Dan Gohman</name>
<email>dev@sunfishcode.online</email>
</author>
<published>2023-01-14T17:35:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=287c65838cd08904c740b6b412a0ea194d16002c'/>
<id>urn:sha1:287c65838cd08904c740b6b412a0ea194d16002c</id>
<content type='text'>
As @bjorn3 pointed out [here], I used the wrong stability attribute in #98368
when making `std::os::fd` public. I set it to Rust 1.63, which was when
io-safety was stabilized, but it should be Rust 1.66, which was when
`std::os::fd` was stabilized.

[here]: https://github.com/rust-lang/rust/pull/98368#discussion_r1063721420
</content>
</entry>
<entry>
<title>Re-introduce `unstable` attributes.</title>
<updated>2022-08-29T15:31:42+00:00</updated>
<author>
<name>Dan Gohman</name>
<email>dev@sunfishcode.online</email>
</author>
<published>2022-08-23T18:57:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7d80510c16bd2172427aff61e5d929aa695cdfa5'/>
<id>urn:sha1:7d80510c16bd2172427aff61e5d929aa695cdfa5</id>
<content type='text'>
Add `#[unstable(feature = "os_fd", issue = "98699")]` to the new
`pub use` declarations.
</content>
</entry>
<entry>
<title>Clarify that the `fd` module is supported on Unix and WASI.</title>
<updated>2022-08-29T15:31:42+00:00</updated>
<author>
<name>Dan Gohman</name>
<email>dev@sunfishcode.online</email>
</author>
<published>2022-06-30T02:07:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=bda12629c3d0926c14b9fbe3f814972f8d50043c'/>
<id>urn:sha1:bda12629c3d0926c14b9fbe3f814972f8d50043c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make `std::os::fd` public.</title>
<updated>2022-08-29T15:31:40+00:00</updated>
<author>
<name>Dan Gohman</name>
<email>dev@sunfishcode.online</email>
</author>
<published>2022-06-14T17:44:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c846a2af8ddaa14ff2c2da25bc97bbd8d4284df2'/>
<id>urn:sha1:c846a2af8ddaa14ff2c2da25bc97bbd8d4284df2</id>
<content type='text'>
`std::os::fd` defines types like `OwnedFd` and `RawFd` and is common
between Unix and non-Unix platforms that share a basic file-descriptor
concept. Rust currently uses this internally to simplify its own code,
but it would be useful for external users in the same way, so make it
public.

This means that `OwnedFd` etc. will all appear in three places, for
example on unix platforms:
 - `std::os::fd::OwnedFd`
 - `std::os::unix::io::OwnedFd`
 - `std::os::unix::prelude::OwnedFd`
</content>
</entry>
<entry>
<title>Implement stabilization of `#[feature(io_safety)]`.</title>
<updated>2022-06-14T21:46:22+00:00</updated>
<author>
<name>Dan Gohman</name>
<email>dev@sunfishcode.online</email>
</author>
<published>2022-03-08T23:38:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=67ed99e6d2f377fffabedc2cd15fab484095fbea'/>
<id>urn:sha1:67ed99e6d2f377fffabedc2cd15fab484095fbea</id>
<content type='text'>
Implement stabilization of [I/O safety], aka `#[feature(io_safety)]`.

Fixes #87074.

[I/O safety]: https://github.com/rust-lang/rfcs/blob/master/text/3128-io-safety.md
</content>
</entry>
<entry>
<title>Rename `BorrowedFd::borrow_raw_fd` to `BorrowedFd::borrow_raw`.</title>
<updated>2022-02-04T21:41:00+00:00</updated>
<author>
<name>Dan Gohman</name>
<email>dev@sunfishcode.online</email>
</author>
<published>2022-02-04T21:33:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4c4e43035f8b8bcc171e4a359bb5b42108eadf41'/>
<id>urn:sha1:4c4e43035f8b8bcc171e4a359bb5b42108eadf41</id>
<content type='text'>
Also, rename `BorrowedHandle::borrow_raw_handle` and
`BorrowedSocket::borrow_raw_socket` to `BorrowedHandle::borrow_raw` and
`BorrowedSocket::borrow_raw`.

This is just a minor rename to reduce redundancy in the user code calling
these functions, and to eliminate an inessential difference between
`BorrowedFd` code and `BorrowedHandle`/`BorrowedSocket` code.

While here, add a simple test exercising `BorrowedFd::borrow_raw_fd`.
</content>
</entry>
<entry>
<title>Factor out a common `RawFd`/`AsRawFd`/etc for Unix and WASI.</title>
<updated>2021-08-19T20:27:19+00:00</updated>
<author>
<name>Dan Gohman</name>
<email>dev@sunfishcode.online</email>
</author>
<published>2021-08-19T19:24:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e555003e6d6b6d71ce5509a6b6c7a15861208d6c'/>
<id>urn:sha1:e555003e6d6b6d71ce5509a6b6c7a15861208d6c</id>
<content type='text'>
</content>
</entry>
</feed>
