Jeremy Soller
57950faeb6
Add socket timeout and ttl support
2016-12-30 10:38:53 -07:00
Jeremy Soller
88df0e3918
Fix arguments on Redox
2016-12-27 10:55:41 -07:00
bors
86896ba0be
Auto merge of #38577 - redox-os:master, r=alexcrichton
...
Add Debug to OpenOptions and DirBuilder
This fixes the build on Redox as the platform independent structs now implement Debug.
2016-12-27 14:15:29 +00:00
bors
77f7c7aaf5
Auto merge of #38274 - elahn:windows-readconsole-ctrl-z, r=alexcrichton
...
Ctrl-Z returns from Stdin.read() when reading from the console on Windows
Fixes #19914 .
Fixes read(), read_to_string(), read_to_end(), etc.
r? @alexcrichton
2016-12-26 23:33:21 +00:00
Steve Klabnik
e9a2a77746
Rollup merge of #38521 - jxson:remove-magenta-warnings, r=sfackler
...
Removes magenta build warning.
Small bug fix to remove an unused type in the magenta process code that causes build failures for magenta's rustc.
r? @alexcrichton
@tedsta @raphlinus
2016-12-24 14:29:29 -05:00
Jeremy Soller
9f9489b976
Cloexec when creating directories
2016-12-23 12:21:29 -07:00
Jeremy Soller
a0a600f0c6
Add Debug to OpenOptions and DirBuilder
2016-12-23 09:42:38 -07:00
bors
99913c5ead
Auto merge of #38401 - redox-os:redox_cross, r=brson
...
Redox Cross Compilation
I will admit - there are things here that I wish I did not have to do. This completes the ability to create a cross compiler from the rust repository for `x86_64-unknown-redox`. I will document this PR with inline comments explaining some things.
[View this gist to see how a cross compiler is built](https://gist.github.com/jackpot51/6680ad973986e84d69c79854249f2b7e )
Prior discussion of a smaller change is here: https://github.com/rust-lang/rust/pull/38366
2016-12-23 09:09:26 +00:00
Jeremy Soller
1eb6c44b1c
Remove start functions, use newlib instead of openlibm + ralloc
2016-12-22 16:13:14 -07:00
Jeremy Soller
7d3ae87453
Add RawFd traits for net
2016-12-21 20:19:32 -07:00
Jason Campbell
88af5bf5ec
Removes magenta build warning.
...
Small bug fix to remove an unused type in the magenta process code that causes build failures for magenta's rustc.
2016-12-21 13:29:55 -08:00
Jeremy Soller
bf50acbc09
Fix tidy
2016-12-20 21:29:42 -07:00
Jeremy Soller
fd4bc88880
Fix building without backtrace
2016-12-20 17:52:47 -07:00
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