rust/src/libstd
Alex Crichton 5c8ca26ad7 std: Always check for EDEADLK in rwlocks on unix
Apparently implementations are allowed to return EDEADLK instead of blocking
forever, in which case this can lead to unsafety in the `RwLock` primitive
exposed by the standard library. A debug-build of the standard library would
have caught this error (due to the debug assert), but we don't ship debug
builds right now.

This commit adds explicit checks for the EDEADLK error code and triggers a panic
to ensure the call does not succeed.

Closes #25012
2015-04-30 16:37:41 -07:00
..
collections Register new snapshots 2015-04-28 17:23:45 -07:00
ffi std: Remove deprecated AsOsStr/Str/AsSlice traits 2015-04-21 11:37:34 -07:00
io Register new snapshots 2015-04-28 17:23:45 -07:00
net rollup merge of #24961: nham/net_docs_cleanup 2015-04-29 15:45:57 -07:00
num std: Bring back f32::from_str_radix as an unstable API 2015-04-21 15:23:54 -07:00
os std: Expand the area of std::fs 2015-04-27 17:16:44 -07:00
prelude std: Add Default/IntoIterator/ToOwned to the prelude 2015-04-17 16:37:30 -07:00
rand Change name of unit test sub-module to "tests". 2015-04-24 23:06:41 +02:00
rt Register new snapshots 2015-04-28 17:23:45 -07:00
sync rollup merge of #24908: inrustwetrust/once_memory_ordering 2015-04-29 15:45:45 -07:00
sys std: Always check for EDEADLK in rwlocks on unix 2015-04-30 16:37:41 -07:00
thread rollup merge of #24926: frewsxcv/patch-20 2015-04-29 15:45:49 -07:00
time std: Remove deprecated/unstable num functionality 2015-04-21 11:37:43 -07:00
array.rs rustdoc: Support for "array" primitive 2015-03-23 14:02:34 -07:00
ascii.rs Model lexer: Fix remaining issues 2015-04-21 12:02:12 +02:00
bool.rs Strip all leading/trailing newlines 2015-03-15 09:08:21 -07:00
dynamic_lib.rs std: Prepare for linking to musl 2015-04-27 10:11:15 -07:00
env.rs rollup merge of #24636: alexcrichton/remove-deprecated 2015-04-21 15:28:53 -07:00
error.rs Auto merge of #24133 - kballard:add-sync-to-io-error, r=alexcrichton 2015-04-18 02:53:53 +00:00
fs.rs std: Implement fs::DirBuilder 2015-04-28 17:38:26 -07:00
lib.rs Fallout 2015-04-29 08:55:31 -07:00
macros.rs Register new snapshots 2015-04-28 17:23:45 -07:00
panicking.rs std: Don't assume thread::current() works on panic 2015-04-27 16:15:36 -07:00
path.rs add import (fixup #24649) 2015-04-25 22:33:19 +05:30
process.rs Update process.rs 2015-04-29 18:21:23 -04:00
rtdeps.rs std: Prepare for linking to musl 2015-04-27 10:11:15 -07:00
thunk.rs Remove Thunk struct and Invoke trait; change Thunk to be an alias 2015-04-01 14:41:21 -04:00
tuple.rs Remove doc-comment default::Default imports 2015-04-22 09:42:36 -04:00
unit.rs grandfathered -> rust1 2015-01-23 21:48:20 -08:00