diff options
| author | Sébastien Marie <semarie@online.fr> | 2020-11-10 05:23:13 +0000 |
|---|---|---|
| committer | Sébastien Marie <semarie@online.fr> | 2020-11-10 05:23:13 +0000 |
| commit | 17276df488caff7ff9fd9dbb7e7a9418e924ecc1 (patch) | |
| tree | 4f83da54058e31fdc7983a2e388183566ae17db1 /lib/std | |
| parent | 06a3a69e6f38798b1768976520b8db40c9a210bf (diff) | |
| download | zig-17276df488caff7ff9fd9dbb7e7a9418e924ecc1.tar.gz zig-17276df488caff7ff9fd9dbb7e7a9418e924ecc1.zip | |
openbsd: add dlfcn.h definitions for dlopen()
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/os/bits/openbsd.zig | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/std/os/bits/openbsd.zig b/lib/std/os/bits/openbsd.zig index d265c68b42..0e66f14e39 100644 --- a/lib/std/os/bits/openbsd.zig +++ b/lib/std/os/bits/openbsd.zig @@ -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, |
