Lines Matching defs:arh
419 #define AR_MAX_NAME_LEN (sizeof arh.ar_name - 1)
425 struct ar_hdr arh;
490 while (fread(&arh, sizeof arh, 1, arch) == 1) {
493 if (strncmp(arh.AR_FMAG, ARFMAG, sizeof arh.AR_FMAG) != 0)
496 arh.AR_SIZE[sizeof arh.AR_SIZE - 1] = '\0';
497 size = (size_t)strtol(arh.AR_SIZE, NULL, 10);
499 memcpy(memName, arh.AR_NAME, sizeof arh.AR_NAME);
555 memcpy(cached_hdr, &arh, sizeof arh);
802 struct ar_hdr arh;
804 f = ArchFindMember(GNode_VarArchive(gn), GNode_VarMember(gn), &arh,
809 snprintf(arh.ar_date, sizeof arh.ar_date, "%-ld", (unsigned long)now);
810 (void)fwrite(&arh, sizeof arh, 1, f);
826 struct ar_hdr arh; /* Header describing table of contents */
829 f = ArchFindMember(gn->path, RANLIBMAG, &arh, "r+");
833 snprintf(arh.ar_date, sizeof arh.ar_date, "%-ld", (unsigned long)now);
834 (void)fwrite(&arh, sizeof arh, 1, f);
849 struct ar_hdr *arh;
851 arh = ArchStatMember(GNode_VarArchive(gn), GNode_VarMember(gn), true);
852 if (arh != NULL)
853 gn->mtime = (time_t)strtol(arh->ar_date, NULL, 10);
925 struct ar_hdr *arh; /* Header for __.SYMDEF */
928 arh = ArchStatMember(gn->path, RANLIBMAG, false);
930 if (arh == NULL) {
937 tocModTime = (int)strtol(arh->ar_date, NULL, 10);