interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / vendor / libc / src / new / qurt / dlfcn.rs

26 lines · 802 bytes Raw Blame History
1//! Header: `dlfcn.h`
2//!
3//! Dynamic linking functions and constants from Hexagon toolchain.
4
5use crate::prelude::*;
6
7// Values for dlopen `mode`
8pub const RTLD_LAZY: c_int = 1;
9pub const RTLD_NOW: c_int = 2;
10pub const RTLD_GLOBAL: c_int = 0x100;
11pub const RTLD_LOCAL: c_int = 0x200;
12
13// Compatibility constant
14pub const DL_LAZY: c_int = RTLD_LAZY;
15
16// Special handles
17pub const RTLD_NEXT: *mut c_void = -1isize as *mut c_void;
18pub const RTLD_DEFAULT: *mut c_void = -2isize as *mut c_void;
19pub const RTLD_SELF: *mut c_void = -3isize as *mut c_void;
20
21extern "C" {
22 pub fn dlopen(filename: *const c_char, flag: c_int) -> *mut c_void;
23 pub fn dlclose(handle: *mut c_void) -> c_int;
24 pub fn dlsym(handle: *mut c_void, symbol: *const c_char) -> *mut c_void;
25 pub fn dlerror() -> *mut c_char;
26}