1
Fork 0

std: Add a helper for symbols that may not exist

Right now we only attempt to call one symbol which my not exist everywhere,
__pthread_get_minstack, but this pattern will come up more often as we start to
bind newer functionality of systems like Linux.

Take a similar strategy as the Windows implementation where we use `dlopen` to
lookup whether a symbol exists or not.
This commit is contained in:
Alex Crichton 2016-02-04 13:56:59 -08:00
parent 1bd2d20161
commit 1a31e1c09f
4 changed files with 87 additions and 28 deletions

View file

@ -27,6 +27,9 @@ use ops::Neg;
#[cfg(target_os = "openbsd")] pub use os::openbsd as platform;
#[cfg(target_os = "solaris")] pub use os::solaris as platform;
#[macro_use]
pub mod weak;
pub mod backtrace;
pub mod condvar;
pub mod ext;