remove dependency of memmove on memcpy direction
[musl] / include / dlfcn.h
1 #ifndef _DLFCN_H
2 #define _DLFCN_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 #define RTLD_LAZY   1
9 #define RTLD_NOW    2
10 #define RTLD_GLOBAL 256
11 #define RTLD_LOCAL  0
12
13 #define RTLD_NEXT    ((void *)-1)
14 #define RTLD_DEFAULT ((void *)0)
15
16 int    dlclose(void *);
17 char  *dlerror(void);
18 void  *dlopen(const char *, int);
19 void  *dlsym(void *, const char *);
20
21 #ifdef _GNU_SOURCE
22 typedef struct {
23         const char *dli_fname;
24         void *dli_fbase;
25         const char *dli_sname;
26         void *dli_saddr;
27 } Dl_info;
28 int dladdr(void *, Dl_info *);
29 #endif
30
31 #ifdef __cplusplus
32 }
33 #endif
34
35 #endif