Lines Matching refs:arch

420 	FILE *arch;  in ArchStatMember()  local
465 arch = ArchFindMember(archive, member, &sarh, "r"); in ArchStatMember()
466 if (arch == NULL) in ArchStatMember()
469 fclose(arch); in ArchStatMember()
473 arch = fopen(archive, "r"); in ArchStatMember()
474 if (arch == NULL) in ArchStatMember()
477 if (fread(magic, SARMAG, 1, arch) != 1 || in ArchStatMember()
479 (void)fclose(arch); in ArchStatMember()
490 while (fread(&arh, sizeof arh, 1, arch) == 1) { in ArchStatMember()
512 switch (ArchSVR4Entry(ar, memName, size, arch)) { in ArchStatMember()
539 if (fread(memName, elen, 1, arch) != 1) in ArchStatMember()
542 if (fseek(arch, -(long)elen, SEEK_CUR) != 0) in ArchStatMember()
560 if (fseek(arch, ((long)size + 1) & ~1, SEEK_CUR) != 0) in ArchStatMember()
564 fclose(arch); in ArchStatMember()
571 fclose(arch); in ArchStatMember()
593 ArchSVR4Entry(Arch *ar, char *inout_name, size_t size, FILE *arch) in ArchSVR4Entry() argument
616 if (fread(ar->fnametab, size, 1, arch) != 1) { in ArchSVR4Entry()
695 FILE *arch; in ArchFindMember() local
700 arch = fopen(archive, mode); in ArchFindMember()
701 if (arch == NULL) in ArchFindMember()
704 if (fread(magic, SARMAG, 1, arch) != 1 || in ArchFindMember()
706 fclose(arch); in ArchFindMember()
714 while (fread(out_arh, sizeof *out_arh, 1, arch) == 1) { in ArchFindMember()
718 fclose(arch); in ArchFindMember()
728 if (fseek(arch, -(long)sizeof *out_arh, SEEK_CUR) != in ArchFindMember()
730 fclose(arch); in ArchFindMember()
733 return arch; in ArchFindMember()
749 fclose(arch); in ArchFindMember()
752 if (fread(ename, elen, 1, arch) != 1) { in ArchFindMember()
753 fclose(arch); in ArchFindMember()
764 if (fseek(arch, in ArchFindMember()
767 fclose(arch); in ArchFindMember()
770 return arch; in ArchFindMember()
772 if (fseek(arch, -(long)elen, SEEK_CUR) != 0) { in ArchFindMember()
773 fclose(arch); in ArchFindMember()
783 if (fseek(arch, (size + 1) & ~1L, SEEK_CUR) != 0) { in ArchFindMember()
784 fclose(arch); in ArchFindMember()
789 fclose(arch); in ArchFindMember()