Lines Matching refs:ar
124 #include <ar.h>
462 Arch *ar; /* Archive descriptor */
482 ar = ln->datum;
483 hdr = HashTable_FindValue(&ar->members, member);
494 hdr = HashTable_FindValue(&ar->members, copy);
536 ar = bmake_malloc(sizeof *ar);
537 ar->name = bmake_strdup(archive);
538 ar->fnametab = NULL;
539 ar->fnamesize = 0;
540 HashTable_Init(&ar->members);
573 switch (ArchSVR4Entry(ar, memName, size, arch)) {
616 HashTable_Set(&ar->members, memName, cached_hdr);
625 Lst_Append(&archives, ar);
631 return HashTable_FindValue(&ar->members, member);
635 HashTable_Done(&ar->members);
636 free(ar->fnametab);
637 free(ar);
656 ArchSVR4Entry(Arch *ar, char *inout_name, size_t size, FILE *arch)
666 if (ar->fnametab != NULL) {
676 ar->fnametab = bmake_malloc(size);
677 ar->fnamesize = size;
679 if (fread(ar->fnametab, size, 1, arch) != 1) {
683 eptr = ar->fnametab + size;
684 for (entry = 0, ptr = ar->fnametab; ptr < eptr; ptr++)
702 if (entry >= ar->fnamesize) {
704 inout_name, (unsigned long)ar->fnamesize);
708 DEBUG2(ARCH, "Replaced %s with %s\n", inout_name, &ar->fnametab[entry]);
710 snprintf(inout_name, MAXPATHLEN + 1, "%s", &ar->fnametab[entry]);
1058 * since this is used by 'ar' rules that affect the data contents of the