Avatar
めっちゃ意外だった もっとOSの力が要るのかと
2:27 PM
/* Search for the name to see if it's already loaded */ for (p=head->next; p; p=p->next) { if (p->shortname && !strcmp(p->shortname, name)) { return p; } }
2:28 PM
static struct dso ldso; static struct dso *head, *tail, *fini_head, *syms_tail, *lazy_head; static char *env_path, *sys_path;
2:28 PM
2回読み込まない仕組みも、static変数で作ったグローバル変数の head とか tail でリストにしてあって、そこから探すだけ・・・