manager.c 395 B

123456789101112131415
  1. #include "__virtualmath.h"
  2. void importClibCore(char *file, struct LinkValue *belong, FUNC_CORE){
  3. void *dl;
  4. Registered reg;
  5. if (file != NULL) {
  6. dl = dlopen(file, RTLD_NOW);
  7. reg = dlsym(dl, "registered");
  8. if (reg != NULL) {
  9. reg(CR_FUNC(belong, var_list));
  10. makeClibInfoToInter(dl, inter);
  11. } else
  12. dlclose(dl);
  13. }
  14. }