Home | History | Annotate | Download | only in ldconfig

Lines Matching defs:shp

304 	struct shlib_list	*shp;
306 for (shp = shlib_head; shp; shp = shp->next) {
307 if (strcmp(name, shp->name) != 0 || major != shp->major)
311 if (cmpndewey(dewey, ndewey, shp->dewey, shp->ndewey) > 0) {
316 shp->name, shp->major, shp->minor,
319 free(shp->name);
320 shp->name = strdup(name);
321 free(shp->path);
322 shp->path = concat(dir, "/", file);
323 memcpy(shp->dewey, dewey, sizeof(shp->dewey));
324 shp->ndewey = ndewey;
329 if (shp)
337 shp = (struct shlib_list *)xmalloc(sizeof *shp);
338 shp->name = strdup(name);
339 shp->path = concat(dir, "/", file);
340 memcpy(shp->dewey, dewey, sizeof(shp->dewey));
341 shp->ndewey = ndewey;
342 shp->next = NULL;
344 *shlib_tail = shp;
345 shlib_tail = &shp->next;
377 struct shlib_list *shp;
385 for (shp = shlib_head; shp; shp = shp->next) {
386 strtab_sz += 1 + strlen(shp->name);
387 strtab_sz += 1 + strlen(shp->path);
417 for (shp = shlib_head; shp; shp = shp->next) {
421 (hinthash(shp->name, shp->major, shp->minor) % hdr.hh_nbucket);
440 strcpy(strtab + str_index, shp->name);
441 str_index += 1 + strlen(shp->name);
444 strcpy(strtab + str_index, shp->path);
445 str_index += 1 + strlen(shp->path);
448 memcpy(bp->hi_dewey, shp->dewey, sizeof(bp->hi_dewey));
449 bp->hi_ndewey = shp->ndewey;
521 struct shlib_list *shp;
579 shp = (struct shlib_list *)xmalloc(sizeof *shp);
580 shp->name = strdup(strtab + bp->hi_namex);
581 shp->path = strdup(strtab + bp->hi_pathx);
582 memcpy(shp->dewey, bp->hi_dewey, sizeof(shp->dewey));
583 shp->ndewey = bp->hi_ndewey;
584 shp->next = NULL;
586 *shlib_tail = shp;
587 shlib_tail = &shp->next;
605 struct shlib_list *shp;
611 for (i = 0, shp = shlib_head; shp; i++, shp = shp->next)
613 i, shp->name, shp->major, shp->minor, shp->path);