1
0

dlfcn.h 630 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef _DLFCN_H
  2. #define _DLFCN_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #include <features.h>
  7. #define RTLD_LAZY 1
  8. #define RTLD_NOW 2
  9. #define RTLD_GLOBAL 256
  10. #define RTLD_LOCAL 0
  11. #define RTLD_NEXT ((void *)-1)
  12. #define RTLD_DEFAULT ((void *)0)
  13. int dlclose(void *);
  14. char *dlerror(void);
  15. void *dlopen(const char *, int);
  16. void *dlsym(void *__restrict, const char *__restrict);
  17. #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
  18. typedef struct {
  19. const char *dli_fname;
  20. void *dli_fbase;
  21. const char *dli_sname;
  22. void *dli_saddr;
  23. } Dl_info;
  24. int dladdr(void *, Dl_info *);
  25. #endif
  26. #ifdef __cplusplus
  27. }
  28. #endif
  29. #endif