]> git.ipfire.org Git - thirdparty/gcc.git/blob - libphobos/libdruntime/core/sys/darwin/dlfcn.d
Add D front-end, libphobos library, and D2 testsuite.
[thirdparty/gcc.git] / libphobos / libdruntime / core / sys / darwin / dlfcn.d
1 /**
2 * D header file for Darwin.
3 *
4 * $(LINK2 https://opensource.apple.com/source/dyld/dyld-360.22/include/dlfcn.h, Apple dyld/dlfcn.h)
5 *
6 * Copyright: Copyright David Nadlinger 2016.
7 * License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
8 * Authors: David Nadlinger
9 */
10 module core.sys.darwin.dlfcn;
11
12 version (OSX)
13 version = Darwin;
14 else version (iOS)
15 version = Darwin;
16 else version (TVOS)
17 version = Darwin;
18 else version (WatchOS)
19 version = Darwin;
20
21 version (Darwin):
22 extern(C):
23 nothrow:
24 @nogc:
25
26 public import core.sys.posix.dlfcn;
27
28 struct Dl_info
29 {
30 const(char)* dli_fname;
31 void* dli_fbase;
32 const(char)* dli_sname;
33 void* dli_saddr;
34 }
35
36 int dladdr(in void* addr, Dl_info* info);
37
38 enum RTLD_NOLOAD = 0x10;
39 enum RTLD_NODELETE = 0x80;
40 enum RTLD_FIRST = 0x100;