fix the type of CLOCKS_PER_SEC to match new clock_t type
[musl] / include / dlfcn.h
1 #ifndef _DLFCN_H
2 #define _DLFCN_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 #include <features.h>
9
10 #define RTLD_LAZY   1
11 #define RTLD_NOW    2
12 #define RTLD_NOLOAD 4
13 #define RTLD_NODELETE 4096
14 #define RTLD_GLOBAL 256
15 #define RTLD_LOCAL  0
16
17 #define RTLD_NEXT    ((void *)-1)
18 #define RTLD_DEFAULT ((void *)0)
19
20 int    dlclose(void *);
21 char  *dlerror(void);
22 void  *dlopen(const char *, int);
23 void  *dlsym(void *__restrict, const char *__restrict);
24
25 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
26 typedef struct {
27         const char *dli_fname;
28         void *dli_fbase;
29         const char *dli_sname;
30         void *dli_saddr;
31 } Dl_info;
32 int dladdr(void *, Dl_info *);
33 #endif
34
35 #ifdef __cplusplus
36 }
37 #endif
38
39 #endif