Name: findshlibs
Owner: gimli-rs
Description: Find the shared libraries loaded in the current process with a cross platform API
Created: 2016-11-24 02:00:48.0
Updated: 2018-04-16 17:07:36.0
Pushed: 2018-04-16 17:07:53.0
Homepage: https://crates.io/crates/findshlibs
Size: 60
Language: Rust
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
findshlibs
Find the shared libraries loaded in the current process with a cross platform API.
Here is an example program that prints out each shared library that is loaded in the process and the addresses where each of its segments are mapped into memory.
rn crate findshlibs;
findshlibs::{Segment, SharedLibrary, TargetSharedLibrary};
ain() {
TargetSharedLibrary::each(|shlib| {
println!("{}", shlib.name().to_string_lossy());
for seg in shlib.segments() {
println!(" {}: segment {}",
seg.actual_virtual_memory_address(shlib),
seg.name().to_string_lossy());
}
});
These are the OSes that findshlibs
currently supports:
If a platform is not supported then a fallback implementation is used that
does nothing. To see if your platform does something at runtime the
TARGET_SUPPORTED
constant can be used.
Is your OS missing here? Send us a pull request!