1 /** 2 * D header file for OpenBSD. 3 * 4 * $(LINK2 http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/include/link_elf.h?rev=1.6&content-type=text/x-cvsweb-markup, dlfcn.h) 5 */ 6 module core.sys.openbsd.dlfcn; 7 8 public import core.sys.posix.dlfcn; 9 10 version (OpenBSD): 11 extern (C): 12 nothrow: 13 14 static assert(RTLD_LAZY == 1); 15 static assert(RTLD_NOW == 2); 16 static assert(RTLD_GLOBAL == 0x100); 17 static assert(RTLD_LOCAL == 0); 18 enum RTLD_TRACE = 0x200; 19 20 enum RTLD_NEXT = cast(void *)-1; 21 enum RTLD_DEFAULT = cast(void *)-2; 22 enum RTLD_SELF = cast(void *)-3; 23 24 enum DL_GETERRNO = 1; 25 enum DL_SETTHREADLCK = 2; 26 enum DL_SETBINDLCK = 3; 27 28 enum DL_LAZY = RTLD_LAZY; 29 30 int dlctl(void *, int, void *); 31