Lines Matching refs:ar
66 register Ar_t* ar = (Ar_t*)ap->data;
68 if (!ar)
71 free(ar);
79 register Ar_t* ar;
96 if (!(ar = newof(0, Ar_t, 1, n - sizeof(Dir_t))))
98 if (paxread(pax, ap, NiL, PAX_BLOCK, 0, 0) != PAX_BLOCK || paxread(pax, ap, ar->dir, n, 0, 0) != n)
101 free(ar);
104 ar->dp = ar->dir;
105 ar->ep = ar->dir + w;
106 ar->pax = pax;
107 ar->ap = ap;
108 ap->data = ar;
115 register Ar_t* ar = (Ar_t*)ap->data;
123 if (ar->dp >= ar->ep)
125 dp = ar->dp++;
128 for (e = (s = (ui1*)ar->dir) + sizeof(Dir_t); s < e; s += 2)
132 error(2, "%s: %s format directory entry %d checksum error", ap->name, ap->format->name, ar->dp - ar->dir);
146 ar->offset = (off_t)(dp->tapeaddr[0] + (dp->tapeaddr[1]<<8)) * TP_BLOCK;