gimli-rs/findshlibs

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

findshlibs

Build Status Coverage Status

Find the shared libraries loaded in the current process with a cross platform API.

Documentation

? Documentation on docs.rs ?

Example

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());
    }
});

Supported OSes

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!


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.