Lines Matching defs:header
48 Header_t header; /* current header */
109 if (read(ar->fd, (char*)&state->header, sizeof(state->header)) != sizeof(state->header))
111 if ((z = read(ar->fd, (char*)&state->header, 1)) < 0)
118 strncpy(ar->dirent.name = state->name, state->header.ar_name, sizeof(state->header.ar_name));
119 ar->dirent.mtime = swapget(state->swap, (char*)&state->header.ar_date, sizeof(state->header.ar_date));
120 ar->dirent.uid = swapget(state->swap, (char*)&state->header.ar_uid, sizeof(state->header.ar_uid));
121 ar->dirent.gid = swapget(state->swap, (char*)&state->header.ar_gid, sizeof(state->header.ar_gid));
122 ar->dirent.mode = swapget(state->swap, (char*)&state->header.ar_mode, sizeof(state->header.ar_mode));
123 ar->dirent.offset = state->offset += sizeof(state->header);
124 ar->dirent.size = swapget(state->swap, (char*)&state->header.ar_size, sizeof(state->header.ar_size));
145 swapput(state->swap, (char*)&state->header.ar_date, sizeof(state->header.ar_date), (intmax_t)ent->mtime);
146 if (write(ar->fd, &state->header.ar_date, sizeof(state->header.ar_date)) != sizeof(state->header.ar_date))