Jeremy Soller
65eecf8bb3
Readd statvfs
2016-12-20 16:12:36 -07:00
Jeremy Soller
e55596fa20
Move rt into sys::rt, fix tidy
2016-12-20 15:26:58 -07:00
Alex Crichton
214a6c6166
Fix compile errors and such
2016-12-20 14:09:50 -08:00
Alex Crichton
4cfb2b48fe
Rollup merge of #38236 - GuillaumeGomez:unix_socket_doc, r=frewsxcv
...
Unix socket doc
r? @frewsxcv
2016-12-20 11:16:26 -08:00
Alex Crichton
68dd6fd964
Rollup merge of #38006 - frewsxcv:libstd-debug, r=alexcrichton
...
Implement `fmt::Debug` for all structures in libstd.
Part of https://github.com/rust-lang/rust/issues/31869 .
Also turn on the `missing_debug_implementations` lint at the crate
level.
2016-12-20 11:16:17 -08:00
Jeremy Soller
57bc1a982e
Add arm syscalls
2016-12-20 11:17:09 -07:00
Corey Farwell
86fc63e62d
Implement fmt::Debug for all structures in libstd.
...
Part of https://github.com/rust-lang/rust/issues/31869 .
Also turn on the `missing_debug_implementations` lint at the crate
level.
2016-12-18 14:55:14 -08:00
bors
71c06a56a1
Auto merge of #38051 - sanxiyn:unused-type-alias-3, r=eddyb
...
Warn unused type aliases, reimplemented
Reimplementation of #37631 . Fix #37455 .
2016-12-18 22:06:34 +00:00
Seo Sanghyeon
5a1b62c0fd
Fix Windows
2016-12-18 22:19:57 +09:00
Aaron Turon
9a5cef4de5
Address fallout
2016-12-16 19:42:17 -08:00
Guillaume Gomez
2938e6a411
Add missing doc examples for UnixDatagram
2016-12-16 11:14:16 +01:00
Jeremy Soller
773a0a2edb
Add start functions, switch allocation crate to ralloc
2016-12-15 16:33:23 -07:00
Jeremy Soller
3e7543a16e
WIP: Cross-compilation for Redox target
2016-12-15 16:31:01 -07:00
Aaron Turon
65b144c964
Stabilize std::os::unix::process::CommandExt::before_exec
2016-12-15 10:56:55 -08:00
Aaron Turon
df26a5a958
Stabilize std::os::*::fs::FileExt
2016-12-15 10:56:55 -08:00
Jeremy Soller
daaa231876
Fix tidy checks
2016-12-12 15:57:19 -07:00
Jeremy Soller
7e7775ce7b
Merge branch 'master' into redox
2016-12-12 14:55:09 -07:00
Jeremy Soller
c61baa0fc7
Fix accidental removal of import
2016-12-12 14:30:41 -07:00
Jeremy Soller
056ebccee3
Rollback prefix
2016-12-12 14:21:44 -07:00
Elahn Ientile
f9bca00469
Ctrl-Z returns from Stdin.read() when reading from the console on
...
Windows.
Fixes #19914 .
Fixes read(), read_to_string(), read_to_end(), etc.
2016-12-10 09:46:47 +10:00
bors
51d29343c0
Auto merge of #38197 - mneumann:dragonfly-fixes-2016-12-06, r=alexcrichton
...
Fix current_exe() on DragonFly (again)
This is a follow up on [this pull request][1].
Since DragonFly 4.6.1 ([this commit][2]), the ```kern.proc.pathname```
sysctl works correctly, i.e. it does not return paths including a ```:```
(see [here][3]). Use it and don't try to fix old versions of DragonFly!
There are not many DragonFly installations out there that we can't
control and no one is compiling Rust from source. If someone wants to
run Rust on a pre-4.6.1 DragonFly system, the ports system should
provide a patch.
[1]: https://github.com/rust-lang/rust/pull/35494
[2]: https://gitweb.dragonflybsd.org/dragonfly.git/commit/726f7ca07e193db73635e9c4e24e40c96087d6d9
[3]: https://gist.github.com/mneumann/a2f6b6a0a03935b561d6185872a4b222
2016-12-09 15:45:41 +00:00
Guillaume Gomez
a78a33c52a
Add Incoming doc examples
2016-12-08 09:43:38 -08:00
Guillaume Gomez
c35b9f6703
Add UnixListener doc examples
2016-12-08 09:43:38 -08:00
Guillaume Gomez
7fe17f96d5
Add doc examples for UnixStream
2016-12-08 09:43:33 -08:00
Guillaume Gomez
9976f5f7c5
Add missing doc examples for SocketAddr struct
2016-12-08 09:38:43 -08:00
bors
816a34aca2
Auto merge of #38146 - kali:master, r=alexcrichton
...
fix objc ABI in std::env::args
iOS use different calling convention for `objc_msgSend` depending on the platform. armv7 expect good old variadic arguments, but aarch64 wants "normal" convention: `objc_msgSend` has to be called mimicking the actual callee prototype.
https://developer.apple.com/library/content/documentation/General/Conceptual/CocoaTouch64BitGuide/ConvertingYourAppto64-Bit/ConvertingYourAppto64-Bit.html#//apple_ref/doc/uid/TP40013501-CH3-SW26
This currently breaks std::env:args() on aarch64 iOS devices. As far as I can tell, in the standard library, this is the only occurrence of ObjectiveC dispatching.
2016-12-08 07:05:19 +00:00
Guillaume Gomez
073351c3c3
Rollup merge of #38153 - GuillaumeGomez:typo, r=bluss
...
Fix small typo
2016-12-07 10:42:51 -08:00
Michael Neumann
dfd3b908f5
Fix current_exe() on DragonFly (again)
...
This is a follow up on [this pull request][1].
Since DragonFly 4.6.1 ([this commit][2]), the "kern.proc.pathname"
sysctl works correctly, i.e. it does not return paths including a ":"
(see [here][3]). Use it and don't try to fix old versions of DragonFly!
There are not many DragonFly installations out there that we can't
control and no one is compiling Rust from source. If someone wants to
run Rust on a pre-4.6.1 DragonFly system, the ports system should
provide a patch.
[1]: https://github.com/rust-lang/rust/pull/35494
[2]: https://gitweb.dragonflybsd.org/dragonfly.git/commit/726f7ca07e193db73635e9c4e24e40c96087d6d9
[3]: https://gist.github.com/mneumann/a2f6b6a0a03935b561d6185872a4b222
2016-12-06 19:31:48 +01:00
bors
b4f4b65f99
Auto merge of #38098 - luser:windows-commandext, r=alexcrichton
...
Add std::os::windows::process::CommandExt. Fixes #37827
This adds a CommandExt trait for Windows along with an implementation of it
for std::process::Command with methods to set the process creation flags that
are passed to CreateProcess.
2016-12-05 06:53:56 +00:00
Guillaume Gomez
b5ea8c00a3
Fix small typo
2016-12-04 00:48:11 -08:00
Mathieu Poumeyrol
a1882ca769
fix objc ABI in std::env::args
2016-12-03 19:47:27 +01:00
bors
af0a0719ea
Auto merge of #37936 - tedsta:fuchsia_std_process, r=alexcrichton
...
Fuchsia support for std::process via liblaunchpad.
Now we can launch processes on Fuchsia via the Rust standard library! ... Mostly.
Right now, ~5% of the time, reading the stdout/stderr off the pipes will fail. Some Magenta kernel people think it's probably a bug in Magenta's pipes. I wrote a unit test that demonstrates the issue in C, which I was told will expedite a fix. https://fuchsia-review.googlesource.com/#/c/15628/
Hopefully this can get merged once the issue is fixed :)
@raphlinus
2016-12-02 07:35:06 +00:00
Theodore DeRego
e1b752b2a1
std::process fuchsia support cleanup
2016-12-01 12:01:07 -08:00
Jeremy Soller
729442206c
Cleanup env
2016-11-30 21:50:17 -07:00
Ted Mielczarek
e6975e9748
just add one method named creation_flags, fix the tidy error
2016-11-30 21:31:47 -05:00
Ted Mielczarek
8b1c4cbbaf
Add std::os::windows::process::CommandExt, with set_creation_flags and add_creation_flags methods. Fixes #37827
...
This adds a CommandExt trait for Windows along with an implementation of it
for std::process::Command with methods to set the process creation flags that
are passed to CreateProcess.
2016-11-30 19:44:07 -05:00
Theodore DeRego
8d9d07a1ca
Removed Option<ExitStatus> member from fuchsia Process struct. Destroy launchpads and close handles in Drop impls rather than manually
2016-11-30 14:20:44 -08:00
Jeremy Soller
e68393397a
Commit to fix make tidy
2016-11-28 21:07:26 -07:00
Jeremy Soller
6378c77716
Remove file path from std::fs::File
2016-11-28 20:21:19 -07:00
Jeremy Soller
1d0bba8224
Move stdout/err flush into sys
2016-11-28 18:25:47 -07:00
Jeremy Soller
2ec21327f2
Switch to using Prefix::Verbatim
2016-11-28 18:19:17 -07:00
Jeremy Soller
746222fd9d
Switch to using syscall crate directly - without import
2016-11-28 18:07:19 -07:00
Jeremy Soller
d73d32f58d
Fix canonicalize
2016-11-25 19:53:21 -07:00
Jeremy Soller
3a1bb2ba26
Use O_DIRECTORY
2016-11-25 18:23:19 -07:00
Theodore DeRego
5c1c48532f
Separated fuchsia-specific process stuff into 'process_fuchsia.rs' and refactored out some now-duplicated code into a 'process_common.rs'
2016-11-23 13:58:13 -08:00
Jeremy Soller
6733074c84
Allow setting nonblock on sockets
2016-11-23 14:22:39 -07:00
Jeremy Soller
4a0bc71bb7
Add File set_permissions
2016-11-23 08:24:49 -07:00
Jeremy Soller
b3c91dfb6a
Merge branch 'master' into redox
2016-11-23 08:21:15 -07:00
Theodore DeRego
fae86b92de
Cleaned up and appeased the linter
2016-11-22 16:08:48 -08:00
Theodore DeRego
5c23f2e3c8
Fuchsia support for std::process via liblaunchpad.
2016-11-22 12:12:46 -08:00