• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/xar-254/xar/lib/

Lines Matching refs:XAR

139 	return XAR(x)->toc_count + sizeof(xar_header_t);
161 switch(XAR(x)->header.cksum_alg) {
213 if( XAR(x)->fd >= 0 ) {
214 r = lseek(XAR(x)->fd, seekoff, SEEK_SET);
221 len = seekoff - XAR(x)->toc_count;
223 if( XAR(x)->heap_offset > len ) {
229 len -= XAR(x)->heap_offset;
232 rr = xar_read_fd(XAR(x)->fd, buf, len);
239 XAR(x)->heap_offset += rr;
261 off_t orig_heap_offset = XAR(x)->heap_offset;
304 this_write = xar_write_fd(XAR(x)->heap_fd, inbuf, rsize);
316 XAR(x)->heap_offset += written;
325 XAR(x)->heap_offset = orig_heap_offset;
326 lseek(XAR(x)->heap_fd, -writesize, SEEK_CUR);
339 XAR(x)->heap_len += writesize;
344 tmpf = xmlHashLookup(XAR(x)->csum_hash, BAD_CAST(csum));
369 XAR(x)->heap_offset = orig_heap_offset;
370 lseek(XAR(x)->heap_fd, -writesize, SEEK_CUR);
371 XAR(x)->heap_len -= writesize;
390 XAR(x)->heap_offset = orig_heap_offset;
391 lseek(XAR(x)->heap_fd, -writesize, SEEK_CUR);
393 XAR(x)->heap_len -= writesize;
398 xmlHashAddEntry(XAR(x)->csum_hash, BAD_CAST(csum), XAR_FILE(f));
476 r = read(XAR(x)->fd, inbuf, bsize);
486 XAR(x)->heap_offset += r;
544 off_t orig_heap_offset = XAR(xdest)->heap_offset;
556 seekoff += XAR(xsource)->toc_count + sizeof(xar_header_t);
577 r = read(XAR(xsource)->fd, inbuf, bsize);
587 XAR(xsource)->heap_offset += r;
594 r = write(XAR(xdest)->heap_fd, ((char *)inbuf)+off, r-off );
598 XAR(xdest)->heap_offset += off;
599 XAR(xdest)->heap_len += off;
693 seekoff += XAR(x)->toc_count + sizeof(xar_header_t);
742 r = read(XAR(state->x)->fd, inbuf, bsize);
756 XAR(state->x)->heap_offset += r;
836 lseek(XAR(x)->heap_fd, 0, SEEK_SET);
838 r = read(XAR(x)->heap_fd, b, bsize);
848 r = write(XAR(x)->fd, b+off, bsize-off);