Crates.io | findshlibs |
lib.rs | findshlibs |
version | 0.10.2 |
source | src |
created_at | 2016-11-24 02:19:19.091031 |
updated_at | 2021-11-11 03:11:23.544215 |
description | Find the set of shared libraries loaded in the current process with a cross platform API |
homepage | |
repository | https://github.com/gimli-rs/findshlibs |
max_upload_size | |
id | 7348 |
size | 75,503 |
findshlibs
Find the shared libraries loaded in the current process with a cross platform API.
📚 Documentation on docs.rs 📚
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.
extern crate findshlibs;
use findshlibs::{Segment, SharedLibrary, TargetSharedLibrary};
fn main() {
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!