Mercurial > projects > ldc
comparison tango/tango/stdc/posix/dlfcn.d @ 132:1700239cab2e trunk
[svn r136] MAJOR UNSTABLE UPDATE!!!
Initial commit after moving to Tango instead of Phobos.
Lots of bugfixes...
This build is not suitable for most things.
author | lindquist |
---|---|
date | Fri, 11 Jan 2008 17:57:40 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
131:5825d48b27d1 | 132:1700239cab2e |
---|---|
1 /** | |
2 * D header file for POSIX. | |
3 * | |
4 * Copyright: Public Domain | |
5 * License: Public Domain | |
6 * Authors: Sean Kelly | |
7 * Standards: The Open Group Base Specifications Issue 6, IEEE Std 1003.1, 2004 Edition | |
8 */ | |
9 module tango.stdc.posix.dlfcn; | |
10 | |
11 private import tango.stdc.posix.config; | |
12 | |
13 extern (C): | |
14 | |
15 // | |
16 // XOpen (XSI) | |
17 // | |
18 /* | |
19 RTLD_LAZY | |
20 RTLD_NOW | |
21 RTLD_GLOBAL | |
22 RTLD_LOCAL | |
23 | |
24 int dlclose(void*); | |
25 char* dlerror(); | |
26 void* dlopen(char*, int); | |
27 void* dlsym(void*, char*); | |
28 */ | |
29 | |
30 version( linux ) | |
31 { | |
32 const RTLD_LAZY = 0x00001; | |
33 const RTLD_NOW = 0x00002; | |
34 const RTLD_GLOBAL = 0x00100; | |
35 const RTLD_LOCAL = 0x00000; | |
36 | |
37 int dlclose(void*); | |
38 char* dlerror(); | |
39 void* dlopen(char*, int); | |
40 void* dlsym(void*, char*); | |
41 } | |
42 else version( darwin ) | |
43 { | |
44 const RTLD_LAZY = 0x00001; | |
45 const RTLD_NOW = 0x00002; | |
46 const RTLD_GLOBAL = 0x00100; | |
47 const RTLD_LOCAL = 0x00000; | |
48 | |
49 int dlclose(void*); | |
50 char* dlerror(); | |
51 void* dlopen(char*, int); | |
52 void* dlsym(void*, char*); | |
53 } |