Lines Matching defs:strlist
1933 struct str_list strlist = { 0 };
1951 strlist.sl_nmods = num_mods;
1952 strlist.sl_modlist = malloc(sizeof (struct str_mlist) * num_mods);
1953 if (strlist.sl_modlist == NULL) {
1959 if (ioctl(fd, I_LIST, (caddr_t)&strlist) < 0) {
1966 for (i = 0; i < strlist.sl_nmods; i++) {
1967 lif->li_modules[i] = strdup(strlist.sl_modlist[i].l_name);
1978 lif->li_modcnt = strlist.sl_nmods;
1979 free(strlist.sl_modlist);
1984 free(strlist.sl_modlist);