This repository has been archived by the owner on Oct 12, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OpenBSD: Additions for core.posix.* modules, part 1
Add OpenBSD definitions to the core.posix.* modules.
- Loading branch information
Showing
10 changed files
with
310 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** | ||
* D header file for OpenBSD. | ||
* | ||
* $(LINK2 http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/include/link_elf.h?rev=1.6&content-type=text/x-cvsweb-markup, dlfcn.h) | ||
*/ | ||
module core.sys.openbsd.dlfcn; | ||
|
||
public import core.sys.posix.dlfcn; | ||
|
||
version (OpenBSD): | ||
extern (C): | ||
nothrow: | ||
|
||
static assert(RTLD_LAZY == 1); | ||
static assert(RTLD_NOW == 2); | ||
static assert(RTLD_GLOBAL == 0x100); | ||
static assert(RTLD_LOCAL == 0); | ||
enum RTLD_TRACE = 0x200; | ||
|
||
enum RTLD_NEXT = cast(void *)-1; | ||
enum RTLD_DEFAULT = cast(void *)-2; | ||
enum RTLD_SELF = cast(void *)-3; | ||
|
||
enum DL_GETERRNO = 1; | ||
enum DL_SETTHREADLCK = 2; | ||
enum DL_SETBINDLCK = 3; | ||
|
||
enum DL_LAZY = RTLD_LAZY; | ||
|
||
int dlctl(void *, int, void *); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.