dlfcn.h 734 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (C) 2000-2005 by Erik Andersen <andersen@codepoet.org>
  3. *
  4. * GNU Lesser General Public License version 2.1 or later.
  5. */
  6. /* User functions for run-time dynamic loading. libdl version */
  7. #ifndef _DLFCN_H
  8. #define _DLFCN_H 1
  9. #include <features.h>
  10. #include <bits/dlfcn.h>
  11. #define RTLD_NEXT ((void *) -1l)
  12. #define RTLD_DEFAULT ((void *) 0)
  13. /* Structure containing information about object searched using
  14. `dladdr'. */
  15. typedef struct
  16. {
  17. const char *dli_fname; /* File name of defining object. */
  18. void *dli_fbase; /* Load address of that object. */
  19. const char *dli_sname; /* Name of nearest symbol. */
  20. void *dli_saddr; /* Exact value of nearest symbol. */
  21. } Dl_info;
  22. #endif /* _DLFCN_H */