<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/libstd/os/netbsd, branch 1.31.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.31.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.31.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2018-04-14T22:32:24+00:00</updated>
<entry>
<title>Add doc links to `std::os` extension traits</title>
<updated>2018-04-14T22:32:24+00:00</updated>
<author>
<name>Dylan MacKenzie</name>
<email>ecstaticmorse@gmail.com</email>
</author>
<published>2018-04-10T00:44:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=182d99cfd1a551b9daa3d7f6896775278fb2962e'/>
<id>urn:sha1:182d99cfd1a551b9daa3d7f6896775278fb2962e</id>
<content type='text'>
Add documentation links to the original type for various OS-specific
extension traits and normalize the language for introducing such traits.
Also, remove some outdated comments around the extension trait
definitions.
</content>
</entry>
<entry>
<title>std: Fix up stabilization discrepancies</title>
<updated>2016-06-23T21:08:11+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2016-06-21T17:14:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c3e8c178abe08c3427046490242ddb9eb3704b03'/>
<id>urn:sha1:c3e8c178abe08c3427046490242ddb9eb3704b03</id>
<content type='text'>
* Remove the deprecated `CharRange` type which was forgotten to be removed
  awhile back.
* Stabilize the `os::$platform::raw::pthread_t` type which was intended to be
  stabilized as part of #32804
</content>
</entry>
<entry>
<title>Fix `struct stat` usage on NetBSD</title>
<updated>2016-02-21T15:35:37+00:00</updated>
<author>
<name>Sebastian Wicki</name>
<email>gandro@gmx.net</email>
</author>
<published>2016-02-21T15:31:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=028106c434dfe428d111c3c532f6995e16e26198'/>
<id>urn:sha1:028106c434dfe428d111c3c532f6995e16e26198</id>
<content type='text'>
Some struct members have a slighty different name on NetBSD. This has been
fixed in the libc crate, but not in libstd.

This also removes `st_spare` from MetadataExt, since it is private field
reserved for future use.
</content>
</entry>
<entry>
<title>fixes a small netbsd compile error</title>
<updated>2016-02-17T21:40:33+00:00</updated>
<author>
<name>Dave Huseby</name>
<email>dhuseby@mozilla.com</email>
</author>
<published>2016-02-17T21:40:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=aeda8445a7295b7ca9e836db8c0328829cd6ee21'/>
<id>urn:sha1:aeda8445a7295b7ca9e836db8c0328829cd6ee21</id>
<content type='text'>
</content>
</entry>
<entry>
<title>std: Deprecate all std::os::*::raw types</title>
<updated>2016-02-13T22:42:55+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2016-02-05T01:16:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=aa23c98450063992473d40d707273903f8a3937d'/>
<id>urn:sha1:aa23c98450063992473d40d707273903f8a3937d</id>
<content type='text'>
This commit is an implementation of [RFC 1415][rfc] which deprecates all types
in the `std::os::*::raw` modules.

[rfc]: https://github.com/rust-lang/rfcs/blob/master/text/1415-trim-std-os.md

Many of the types in these modules don't actually have a canonical platform
representation, for example the definition of `stat` on 32-bit Linux will change
depending on whether C code is compiled with LFS support or not. Unfortunately
the current types in `std::os::*::raw` are billed as "compatible with C", which
in light of this means it isn't really possible.

To make matters worse, platforms like Android sometimes define these types as
*smaller* than the way they're actually represented in the `stat` structure
itself. This means that when methods like `DirEntry::ino` are called on Android
the result may be truncated as we're tied to returning a `ino_t` type, not the
underlying type.

The commit here incorporates two backwards-compatible components:

* Deprecate all `raw` types that aren't in `std::os::raw`
* Expand the `std::os::*::fs::MetadataExt` trait on all platforms for method
  accessors of all fields. The fields now returned widened types which are the
  same across platforms (consistency across platforms is not required, however,
  it's just convenient).

and two also backwards-incompatible components:

* Change the definition of all `std::os::*::raw` type aliases to
  correspond to the newly widened types that are being returned on each
  platform.
* Change the definition of `std::os::*::raw::stat` on Linux to match the LFS
  definitions rather than the standard ones.

The breaking changes here will specifically break code that assumes that `libc`
and `std` agree on the definition of `std::os::*::raw` types, or that the `std`
types are faithful representations of the types in C. An [audit] has been
performed of crates.io to determine the fallout which was determined two be
minimal, with the two found cases of breakage having been fixed now.

[audit]: https://github.com/rust-lang/rfcs/pull/1415#issuecomment-180645582

---

Ok, so after all that, we're finally able to support LFS on Linux! This commit
then simultaneously starts using `stat64` and friends on Linux to ensure that we
can open &gt;4GB files on 32-bit Linux. Yay!

Closes #28978
Closes #30050
Closes #31549
</content>
</entry>
<entry>
<title>Add JoinHandleExt to get the pthread_t on unix platforms</title>
<updated>2015-12-05T01:09:32+00:00</updated>
<author>
<name>Peter Atashian</name>
<email>retep998@gmail.com</email>
</author>
<published>2015-12-04T02:58:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9749a193d629dd723562004879bca3e2d47e25a1'/>
<id>urn:sha1:9749a193d629dd723562004879bca3e2d47e25a1</id>
<content type='text'>
Signed-off-by: Peter Atashian &lt;retep998@gmail.com&gt;
</content>
</entry>
<entry>
<title>Fix buildbot failures</title>
<updated>2015-11-18T18:16:20+00:00</updated>
<author>
<name>Vadim Petrochenkov</name>
<email>vadim.petrochenkov@gmail.com</email>
</author>
<published>2015-11-18T18:16:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=64b90f81c3ec2cf5564ed8456d836516491b9d01'/>
<id>urn:sha1:64b90f81c3ec2cf5564ed8456d836516491b9d01</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make the Metadata struct Clone</title>
<updated>2015-10-13T12:06:00+00:00</updated>
<author>
<name>Ben S</name>
<email>ogham@bsago.me</email>
</author>
<published>2015-10-13T12:06:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b40163beb925b176fdb570e4f4998ab9919e77a4'/>
<id>urn:sha1:b40163beb925b176fdb570e4f4998ab9919e77a4</id>
<content type='text'>
This commit adds #[derive(Clone)] to std::fs::Metadata, making that struct
cloneable. Although the exact contents of that struct differ between OSes,
they all have it contain only value types, meaning that the data can be re-used without repercussions.

It also adds #[derive(Clone)] to every type used by that struct across all
OSes, including the various Unix `stat` structs and Windows's
`WIN32_FILE_ATTRIBUTE_DATA`.
</content>
</entry>
<entry>
<title>Various fixes for NetBSD/amd64</title>
<updated>2015-09-21T19:50:54+00:00</updated>
<author>
<name>Sebastian Wicki</name>
<email>gandro@gmx.net</email>
</author>
<published>2015-09-20T15:39:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=318cd843d1103579291a9f6c9eab8aacce7e9f82'/>
<id>urn:sha1:318cd843d1103579291a9f6c9eab8aacce7e9f82</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add netbsd amd64 support</title>
<updated>2015-07-02T02:09:14+00:00</updated>
<author>
<name>Alex Newman</name>
<email>posix4e@gmail.com</email>
</author>
<published>2015-07-01T03:37:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0b7c4f57f6ba59dabe4db2808fe45e8bd8bbce22'/>
<id>urn:sha1:0b7c4f57f6ba59dabe4db2808fe45e8bd8bbce22</id>
<content type='text'>
</content>
</entry>
</feed>
