Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
6cc42ce
Revert "Set test flag when rustdoc is running with --test option"
ollie27 May 25, 2019
6c747e0
Fix tests after revert of rustdoc cfg(test) feature
ollie27 May 25, 2019
c77024c
Fix more tests after revert of rustdoc cfg(test) feature
ollie27 Jun 9, 2019
a8b2b1c
publish_toolstate: don't use 'new' from inside the loop
RalfJung Jun 21, 2019
fb2f841
give a bit more context in the error message
RalfJung Jun 21, 2019
e02c655
dump the JSON we are going to submit to GH to create the issue
RalfJung Jun 21, 2019
8ceab32
fix long line
RalfJung Jun 21, 2019
e10012d
show HTTP error body
RalfJung Jun 21, 2019
ecca52c
don't make PR author assignee; that break creating the issue when the…
RalfJung Jun 21, 2019
02863a3
do as tidy says
RalfJung Jun 21, 2019
a56a6d7
bootstrap: pass '--pass' on to compiletest.
Centril Jun 11, 2019
54337fa
compiletest: support '--pass check' and '// ignore-pass'.
Centril Jun 12, 2019
e364eb4
add '// ignore-pass' where applicable.
Centril Jun 12, 2019
e4e0f95
promoted_errors: warn -> deny.
Centril Jun 12, 2019
5baac07
lint-type-overflow2: warn -> deny.
Centril Jun 12, 2019
5eaedda
Address review comments.
Centril Jun 24, 2019
a60bbb0
--bless you.
Centril Jun 24, 2019
c877989
Add some #[inline] attributes
Zoxc Jun 25, 2019
11221d1
Inform the query system about properties of queries at compile time
Zoxc Jun 24, 2019
93077f3
Hash force_pass_mode when config.mode == Pretty.
Centril Jun 26, 2019
742e851
Update miri
JohnTitor Jun 24, 2019
3ba1f39
Avoid mem::uninitialized() in std::sys::unix
cuviper Jun 26, 2019
b533aff
Use pointer::write_bytes for android sigemptyset
cuviper Jun 26, 2019
c33ab36
Implement mem::{zeroed,uninitialized} in terms of MaybeUninit.
alex Jun 26, 2019
643ae63
doc(libcore) Fix CS
Hywan Jun 28, 2019
bd10be5
Add Vec::leak
cramertj Jun 27, 2019
3dfca34
Rollup merge of #61199 - ollie27:rustdoc_cfg_test, r=QuietMisdreavus
Centril Jun 28, 2019
49c2a2a
Rollup merge of #61755 - Centril:compiletest-force-check, r=petrochenkov
Centril Jun 28, 2019
0bddcd1
Rollup merge of #62023 - RalfJung:miri-toolstate, r=kennytm
Centril Jun 28, 2019
f381c2c
Rollup merge of #62104 - Zoxc:query-info, r=eddyb
Centril Jun 28, 2019
66e8257
Rollup merge of #62105 - JohnTitor:update-miri, r=RalfJung
Centril Jun 28, 2019
2c0f7eb
Rollup merge of #62150 - alex:mem-uninit-refactor, r=RalfJung,oli-obk…
Centril Jun 28, 2019
c130599
Rollup merge of #62163 - cuviper:unix-uninit, r=RalfJung
Centril Jun 28, 2019
eb3f7e2
Rollup merge of #62196 - cramertj:vec-leak, r=withoutboats,Centril
Centril Jun 28, 2019
9ad8ab8
Rollup merge of #62204 - Hywan:patch-2, r=rkruppe
Centril Jun 28, 2019
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use pointer::write_bytes for android sigemptyset
  • Loading branch information
cuviper committed Jun 26, 2019
commit b533aff9275aad7cd7dfbf42ca6b387fc93ed1d3
2 changes: 1 addition & 1 deletion src/libstd/sys/unix/process/process_common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ mod tests {

#[cfg(target_os = "android")]
unsafe fn sigemptyset(set: *mut libc::sigset_t) -> libc::c_int {
libc::memset(set as *mut _, 0, mem::size_of::<libc::sigset_t>());
set.write_bytes(0u8, 1);
return 0;
}

Expand Down
6 changes: 2 additions & 4 deletions src/libstd/sys/unix/process/process_unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ impl Command {
// emscripten has no signal support.
#[cfg(not(any(target_os = "emscripten")))]
{
use crate::mem::{self, MaybeUninit};
use crate::mem::MaybeUninit;
// Reset signal handling so the child process starts in a
// standardized state. libstd ignores SIGPIPE, and signal-handling
// libraries often set a mask. Child processes inherit ignored
Expand All @@ -215,9 +215,7 @@ impl Command {
// Implementing sigemptyset allow us to support older Android
// versions. See the comment about Android and sig* functions in
// process_common.rs
libc::memset(set.as_mut_ptr() as *mut _,
0,
mem::size_of::<libc::sigset_t>());
set.as_mut_ptr().write_bytes(0u8, 1);
} else {
cvt(libc::sigemptyset(set.as_mut_ptr()))?;
}
Expand Down