dlfcn.h 557 B

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