aboutsummaryrefslogtreecommitdiff
path: root/dlfcn.h
diff options
context:
space:
mode:
Diffstat (limited to 'dlfcn.h')
-rw-r--r--dlfcn.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/dlfcn.h b/dlfcn.h
new file mode 100644
index 0000000..dfc2551
--- /dev/null
+++ b/dlfcn.h
@@ -0,0 +1,45 @@
1/*
2 * dlfcn-win32
3 * Copyright (c) 2007 Ramiro Polla
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20#ifndef DLFCN_H
21#define DLFCN_H
22
23/* POSIX says these are implementation-defined.
24 * To simplify use with Windows API, we treat them the same way.
25 */
26
27#define RTLD_LAZY 0
28#define RTLD_NOW 0
29
30#define RTLD_GLOBAL (1 << 1)
31#define RTLD_LOCAL (1 << 2)
32
33/* These two were added in The Open Group Base Specifications Issue 6.
34 * Note: All other RTLD_* flags in any dlfcn.h are not standard compliant.
35 */
36
37#define RTLD_DEFAULT 0
38#define RTLD_NEXT 0
39
40void *dlopen ( const char *file, int mode );
41int dlclose( void *handle );
42void *dlsym ( void *handle, const char *name );
43char *dlerror( void );
44
45#endif /* DLFCN_H */