Lines Matching refs:header
65 Header_t header; /* current header */
66 char term[1]; /* trailing '\0' for header */
78 char buf[sizeof(state->header.ar_date) + 1];
175 hdr = &state->header;
176 while (read(ar->fd, (char*)hdr, sizeof(state->header)) == sizeof(state->header) && hdr->ar_name[0] == TERM_port)
199 state->offset += sizeof(state->header) + size;
257 if (read(ar->fd, (char*)&state->header, sizeof(state->header)) != sizeof(state->header))
259 if ((z = read(ar->fd, (char*)&state->header, 1)) < 0)
266 if (state->header.ar_fmag[0] != FMAG_port_0 || state->header.ar_fmag[1] != FMAG_port_1)
271 if (sfsscanf(state->header.ar_date, "%ld", &n) != 1)
277 ar->dirent.name = state->header.ar_name;
278 ar->dirent.name[sizeof(state->header.ar_name)] = 0;
281 if (ar_uid_gid(ar, state->header.ar_uid, &n))
284 if (ar_uid_gid(ar, state->header.ar_gid, &n))
287 if (sfsscanf(state->header.ar_mode, "%lo", &n) != 1)
293 if (sfsscanf(state->header.ar_size, "%ld", &n) != 1)
298 ar->dirent.offset = state->offset += sizeof(state->header);
346 char buf[sizeof(state->header.ar_date) + 1];