Skip to main content

load_and_bind

Function load_and_bind 

Source
pub fn load_and_bind(_fn_path: &str) -> usize
Expand description

Port of load_and_bind(const char *fn) from Src/module.c:1468.

C body: AIX-only load() + loadbind() wrapper. Iterates the modulestab hash table, binding each loaded module’s handle to the new module’s symbols. On loadbind failure, calls unload() and stores the error in dlerrstr.

Static-link path: dlopen/dlsym aren’t used since modules are linked at compile time. Returns 0 (NULL handle). WARNING: param names don’t match C — Rust=(_fn_path) vs C=(fn)