Lines Matching defs:hdr
114 Header_t* hdr;
128 hdr = (Header_t*)(buf + MAGIC_SIZE);
129 if (hdr->ar_fmag[0] != FMAG_port_0 || hdr->ar_fmag[1] != FMAG_port_1)
140 name = hdr->ar_name;
146 name = (char*)(hdr + 1);
151 if (sfsscanf(hdr->ar_size, "%ld", &size) != 1)
155 if ((ar->flags & ARDIR_RANLIB) && (sfsscanf(hdr->ar_date, "%lu", &ar->symtime) != 1 || (unsigned long)ar->st.st_mtime > ar->symtime + (strmatch(name, SYMDIR_strict) ? 0 : SYMDIR_age)))
157 if (!(ar->flags & ARDIR_RANLIB) && hdr->ar_uid[0] == ' ' && hdr->ar_gid[0] == ' ')
167 hdr->ar_date[0] = 0;
175 hdr = &state->header;
176 while (read(ar->fd, (char*)hdr, sizeof(state->header)) == sizeof(state->header) && hdr->ar_name[0] == TERM_port)
178 if (sfsscanf(hdr->ar_size, "%ld", &size) != 1)
181 if (!state->names && hdr->ar_name[1] == TERM_port && (hdr->ar_name[2] == ' ' || hdr->ar_name[2] == TERM_port && hdr->ar_name[3] == ' '))
190 if (hdr->ar_name[1] == TERM_port)
195 else if (isdigit(hdr->ar_name[1]))