Lines Matching defs:shp

336 	struct shlib_list	*shp;
338 for (shp = shlib_head; shp; shp = shp->next) {
339 if (strcmp(name, shp->name) != 0 || major != shp->major)
343 if (cmpndewey(dewey, ndewey, shp->dewey, shp->ndewey) > 0) {
348 shp->name, shp->major, shp->minor,
351 free(shp->name);
352 shp->name = strdup(name);
353 free(shp->path);
354 shp->path = concat(dir, "/", file);
355 bcopy(dewey, shp->dewey, sizeof(shp->dewey));
356 shp->ndewey = ndewey;
361 if (shp)
369 shp = (struct shlib_list *)xmalloc(sizeof *shp);
370 shp->name = strdup(name);
371 shp->path = concat(dir, "/", file);
372 bcopy(dewey, shp->dewey, sizeof(shp->dewey));
373 shp->ndewey = ndewey;
374 shp->next = NULL;
376 *shlib_tail = shp;
377 shlib_tail = &shp->next;
399 struct shlib_list *shp;
407 for (shp = shlib_head; shp; shp = shp->next) {
408 strtab_sz += 1 + strlen(shp->name);
409 strtab_sz += 1 + strlen(shp->path);
439 for (shp = shlib_head; shp; shp = shp->next) {
443 (hinthash(shp->name, shp->major) % hdr.hh_nbucket);
464 strcpy(strtab + str_index, shp->name);
465 str_index += 1 + strlen(shp->name);
468 strcpy(strtab + str_index, shp->path);
469 str_index += 1 + strlen(shp->path);
472 bcopy(shp->dewey, bp->hi_dewey, sizeof(bp->hi_dewey));
473 bp->hi_ndewey = shp->ndewey;
536 struct shlib_list *shp;
611 shp = (struct shlib_list *)xmalloc(sizeof *shp);
612 shp->name = strdup(strtab + bp->hi_namex);
613 shp->path = strdup(strtab + bp->hi_pathx);
614 bcopy(bp->hi_dewey, shp->dewey, sizeof(shp->dewey));
615 shp->ndewey = bp->hi_ndewey;
616 shp->next = NULL;
618 *shlib_tail = shp;
619 shlib_tail = &shp->next;
629 struct shlib_list *shp;
635 for (i = 0, shp = shlib_head; shp; i++, shp = shp->next)
637 i, shp->name, shp->major, shp->minor, shp->path);