Debian Codegraph @

rt/+openbsd/dynamic_linker.ha

raw
1 // SPDX-License-Identifier: MPL-2.0
2 // (c) Hare authors <https://harelang.org>
3
4 // Functions and types for interacting with the dynamic linker.
5 export type dl_info = struct {
6 fname: nullable *u8,
7 fbase: nullable *opaque,
8 sname: nullable *u8,
9 saddr: nullable *opaque,
10 };
11
12 // dlopen
13 // dlclose
14 // dlsym
15 // dladdr
16
17 export @symbol("dladdr") fn dladdr(addr: *opaque, info: *dl_info) int;
18
19 // dlctl
20 // dlerror
21
22 export @symbol("dlerror") fn dlerror() nullable *const u8;