mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
openbsd: add dlfcn.h definitions for dlopen()
This commit is contained in:
parent
06a3a69e6f
commit
17276df488
@ -32,6 +32,24 @@ pub const Kevent = extern struct {
|
||||
udata: usize,
|
||||
};
|
||||
|
||||
// Modes and flags for dlopen()
|
||||
// include/dlfcn.h
|
||||
|
||||
/// Bind function calls lazily.
|
||||
pub const RTLD_LAZY = 1;
|
||||
|
||||
/// Bind function calls immediately.
|
||||
pub const RTLD_NOW = 2;
|
||||
|
||||
/// Make symbols globally available.
|
||||
pub const RTLD_GLOBAL = 0x100;
|
||||
|
||||
/// Opposite of RTLD_GLOBAL, and the default.
|
||||
pub const RTLD_LOCAL = 0x000;
|
||||
|
||||
/// Trace loaded objects and exit.
|
||||
pub const RTLD_TRACE = 0x200;
|
||||
|
||||
pub const dl_phdr_info = extern struct {
|
||||
dlpi_addr: std.elf.Addr,
|
||||
dlpi_name: ?[*:0]const u8,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user