about summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
2016-12-12Fix accidental removal of importJeremy Soller-0/+1
2016-12-12Rollback prefixJeremy Soller-9/+4
2016-11-30Cleanup envJeremy Soller-4/+5
2016-11-28Commit to fix make tidyJeremy Soller-44/+157
2016-11-28Remove file path from std::fs::FileJeremy Soller-14/+2
2016-11-28Move stdout/err flush into sysJeremy Soller-9/+25
2016-11-28Switch to using Prefix::VerbatimJeremy Soller-6/+4
2016-11-28Switch to using syscall crate directly - without importJeremy Soller-188/+171
2016-11-25Fix canonicalizeJeremy Soller-3/+2
2016-11-25Use O_DIRECTORYJeremy Soller-9/+12
2016-11-23Allow setting nonblock on socketsJeremy Soller-11/+16
2016-11-23Add File set_permissionsJeremy Soller-0/+4
2016-11-23Merge branch 'master' into redoxJeremy Soller-10/+205
2016-11-22Add a method for setting permissions directly on an open file.Steven Allen-0/+85
On unix like systems, the underlying file corresponding to any given path may change at any time. This function makes it possible to set the permissions of the a file corresponding to a `File` object even if its path changes.
2016-11-21Auto merge of #37677 - jsen-:master, r=alexcrichtonbors-8/+26
libstd: support creation of anonymous pipe on WinXP/2K3 `PIPE_REJECT_REMOTE_CLIENTS` flag is not supported on Windows < VISTA, and every invocation of `anon_pipe` including attempts to pipe `std::process::Child`'s stdio fails. This PR should work around this issue by performing a runtime check of windows version and conditionally omitting this flag on "XP and friends". Getting the version should be probably moved out of the function `anon_pipe` itself (the OS version does not often change during runtime :) ), but: - I didn't find any precedent for this and assuming there's not much overhead (I hope windows does not perform any heuristics to find out it's own version, just fills couple of fields in the struct). - the code path is not especially performance sensitive anyway.
2016-11-20support creation of anonymous pipe on WinXP/2K3jsen--8/+26
2016-11-20Rollup merge of #37880 - GuillaumeGomez:socket-4-doc, r=frewsxcvGuillaume Gomez-1/+78
Add missing examples in SocketAddr r? @frewsxcv
2016-11-19Merge branch 'master' into redoxJeremy Soller-18/+211
2016-11-19Auto merge of #37833 - sfackler:process-abort, r=alexcrichtonbors-0/+15
Add std::process::abort This calls libc abort on Unix and fastfail on Windows, first running cleanups to do things like flush stdout buffers. This matches with libc abort's behavior, which flushes open files. r? @alexcrichton
2016-11-19Add missing examples in SocketAddrGuillaume Gomez-1/+78
2016-11-17Add std::process::abortSteven Fackler-0/+15
This calls libc abort on Unix and fastfail on Windows.
2016-11-17Replace setuid, setgid with setreuid, setregidJeremy Soller-2/+2
2016-11-17Add signal support, better exec error handlingJeremy Soller-34/+80
2016-11-16Add examples for Ipv4AddrGuillaume Gomez-1/+124
2016-11-16Add missing urls and improve internal doc representationGuillaume Gomez-6/+21
2016-11-15Use chmod instead of fcntl to change file permsJeremy Soller-4/+1
2016-11-15Add set_permJeremy Soller-4/+7
2016-11-14Simple implementation of read2Jeremy Soller-10/+13
2016-11-14Add current_exe supportJeremy Soller-2/+12
2016-11-14Fix redox prefix handlingJeremy Soller-3/+18
2016-11-14Update top-level path doc examples to show results.Corey Farwell-5/+18
2016-11-14Add fcntlJeremy Soller-5/+11
2016-11-13Minor rewriting of `std::path::Path::push` doc example.Corey Farwell-5/+12
2016-11-12Rollup merge of #37699 - alexcrichton:default-for-duration, r=brsonEduard-Mihai Burtescu-1/+1
std: Derive `Default` for `Duration`. Discussed in #37546 the libs team reached the conclusion that a default zero duration seems like a reasonable implementation of the `Default` trait. Closes #37546
2016-11-12Rollup merge of #37696 - arthurprs:patch-1, r=alexcrichtonEduard-Mihai Burtescu-1/+4
Remove one bounds check from BufReader Very minor thing. Otherwise the optimizer can't be sure that pos <= cap. Added a paranoid debug_assert to ensure correctness instead. CC #37573
2016-11-12Rollup merge of #37527 - Mark-Simulacrum:mpsc-recvtimeouterror-error-impl, ↵Eduard-Mihai Burtescu-0/+32
r=alexcrichton Add Error implementation for std::sync::mpsc::RecvTimeoutError. Fixes https://github.com/rust-lang/rust/issues/37525.
2016-11-10Merge branch 'master' into redoxJeremy Soller-67/+120
2016-11-10Use target_os = redox for cfgJeremy Soller-8/+5
2016-11-10Fix readdirJeremy Soller-7/+11
2016-11-10Fixes for stdio and processes on RedoxJeremy Soller-4/+35
2016-11-10std: Derive `Default` for `Duration`.Alex Crichton-1/+1
Discussed in #37546 the libs team reached the conclusion that a default zero duration seems like a reasonable implementation of the `Default` trait. Closes #37546
2016-11-10Remove one bounds check from BufReaderArthur Silva-1/+4
Otherwise the optimizer can't be sure that pos <= cap. Added a paranoid debug_assert to ensure correctness instead.
2016-11-09Fix execJeremy Soller-56/+10
2016-11-10doc: fix typosTshepang Lekhonkhobe-2/+2
2016-11-09Rollup merge of #37622 - ollie27:cstring, r=alexcrichtonEduard-Mihai Burtescu-1/+1
Slightly optimise CString Avoid a reallocation in CString::from and CStr::to_owned.
2016-11-09Rollup merge of #37432 - achanda:send_to, r=alexcrichtonEduard-Mihai Burtescu-0/+3
Clarify that send_to might panic in certain cases Closes #34202 r? @alexcrichton
2016-11-09Clarify that send_to might return an error in certain casesAbhishek Chanda-0/+3
Closes #34202
2016-11-08Rollup merge of #37588 - GuillaumeGomez:missing_io_urls, r=frewsxcvSteve Klabnik-11/+19
Add missing urls on io structs r? @steveklabnik
2016-11-08Slightly optimise CStringOliver Middleton-1/+1
Avoid a reallocation in CString::from and CStr::to_owned.
2016-11-08Auto merge of #36843 - petrochenkov:dotstab, r=nikomatsakisbors-1/+1
Stabilize `..` in tuple (struct) patterns I'd like to nominate `..` in tuple and tuple struct patterns for stabilization. This feature is a relatively small extension to existing stable functionality and doesn't have known blockers. The feature first appeared in Rust 1.10 6 months ago. An example of use: https://github.com/rust-lang/rust/pull/36203 Closes https://github.com/rust-lang/rust/issues/33627 r? @nikomatsakis