dlfcn.h 461 B

12345678910111213141516171819202122232425
  1. #ifndef __DLFCN_H
  2. #define __DLFCN_H
  3. #include "asmc.h"
  4. #define RTLD_LAZY 0x001
  5. #define RTLD_NOW 0x002
  6. #define RTLD_GLOBAL 0x100
  7. #define RTLD_DEFAULT NULL
  8. void *dlopen(const char *filename, int flags) {
  9. printf("Fail to dlopen(\"%s\")\n", filename);
  10. return NULL;
  11. }
  12. void *dlsym(void *handle, const char *symbol) {
  13. printf("Fail to dlsym(\"%s\")\n", symbol);
  14. return NULL;
  15. }
  16. int dlclose(void *handle) {
  17. return 1;
  18. }
  19. #endif