dlfcn.h 759 B

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