<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/libstd/os/dragonfly, branch 1.34.2</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.34.2</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.34.2'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2018-12-26T04:08:33+00:00</updated>
<entry>
<title>Remove licenses</title>
<updated>2018-12-26T04:08:33+00:00</updated>
<author>
<name>Mark Rousskov</name>
<email>mark.simulacrum@gmail.com</email>
</author>
<published>2018-12-25T15:56:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2a663555ddf36f6b041445894a8c175cd1bc718c'/>
<id>urn:sha1:2a663555ddf36f6b041445894a8c175cd1bc718c</id>
<content type='text'>
</content>
</entry>
<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 libstd on DragonFly</title>
<updated>2016-04-07T09:39:27+00:00</updated>
<author>
<name>Michael Neumann</name>
<email>mneumann@ntecs.de</email>
</author>
<published>2016-04-02T17:06:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=60c988ec176b9653bc1c3a6d6a738646d15a5ad6'/>
<id>urn:sha1:60c988ec176b9653bc1c3a6d6a738646d15a5ad6</id>
<content type='text'>
Following changes:

* birthtime does not exist on DragonFly
* errno: __dfly_error is no more. Use #[thread_local] static errno.
* clock_gettime expects a c_ulong (use a type alias)

These changes are required to build DragonFly snapshots again.
</content>
</entry>
<entry>
<title>time_t is long on freebsd and dragonfly (and nsec should be long)</title>
<updated>2016-02-17T16:55:43+00:00</updated>
<author>
<name>Ali Clark</name>
<email>ali@clark.gb.net</email>
</author>
<published>2016-02-17T16:55:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3c534188f0875f5881cfa66c2daf64ec49d79af9'/>
<id>urn:sha1:3c534188f0875f5881cfa66c2daf64ec49d79af9</id>
<content type='text'>
This becomes less relevant for dragonfly a i686 support is dropped since
release 40, but using long allows some compatibility for older versions.
</content>
</entry>
<entry>
<title>remove unused import from dragonfly os raw</title>
<updated>2016-02-17T14:09:22+00:00</updated>
<author>
<name>Ali Clark</name>
<email>ali@clark.gb.net</email>
</author>
<published>2016-02-17T14:09:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cf144d16e9cf4ce56affbbf82ae1e6b60c62a0ef'/>
<id>urn:sha1:cf144d16e9cf4ce56affbbf82ae1e6b60c62a0ef</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>
</feed>
