/ast/src/cmd/vczip/tests/ |
H A D | tvcbwt.c | 25 char *tar, *del, *t; local 30 tar = "00000011111122222abc012000000111111222222012abc"; 37 tar = "panama"; 43 if((n = vcapply(vc, tar, strlen(tar), &del)) <= 0) 48 if((n = vcapply(vc, del, n, &t)) != strlen(tar) ) 51 if(t[k] != tar[k])
|
H A D | tvcmtf.c | 25 char *tar, *del, *t; local 29 tar = "00000011111122222abc012000000111111222222012abc"; 38 if((n = vcapply(vc, tar, strlen(tar), &del)) <= 0) 43 if((n = vcapply(vc, del, n, &t)) != strlen(tar) ) 46 if(t[k] != tar[k]) 49 tar = "00000011111122222abc012000000111111222222012abc"; 58 if((n = vcapply(vc, tar, strlen(tar), &del)) <= 0) 63 if((n = vcapply(vc, del, n, &t)) != strlen(tar) ) [all...] |
H A D | tvcdelta.c | 25 char *src, *tar, *del, *t; local 31 tar = "the little dogs and the big dog jump around the sleeping big cat"; 38 if((n = vcapply(vc, tar, strlen(tar), &del)) <= 0) 40 if(n >= strlen(tar) ) 45 if((n = vcapply(vc, del, n, &t)) != strlen(tar) ) 48 if(t[k] != tar[k])
|
H A D | tvcrle.c | 25 char *tar, *del, *t; local 29 tar = "000011111a0b1c2000"; 34 if((n = vcapply(vc, tar, strlen(tar), &del)) <= 0) 39 if((n = vcapply(vc, del, n, &t)) != strlen(tar) ) 42 if(t[k] != tar[k]) 48 if((n = vcapply(vc, tar, strlen(tar), &del)) <= 0) 53 if((n = vcapply(vc, del, n, &t)) != strlen(tar) ) 56 if(t[k] != tar[ [all...] |
H A D | tvchuff.c | 45 char *tar, *cmp, *t, *b, *endb; local 56 tar = "000000000000000011111122222abc012000000111111222222012abc"; 57 ntar = strlen(tar); 58 if((n = vcapply(vch, tar, 0, &cmp)) < 0) 63 if((n = vcapply(vch, tar, 1, &cmp)) < 0) 67 if(t[0] != tar[0]) 70 if((n = vcapply(vch, tar, 16, &cmp)) < 0) /* the string of all zeros */ 75 if(t[k] != tar[k]) 79 if((n = vcapply(vch, tar, ntar, &cmp)) <= 0) 84 if(t[k] != tar[ [all...] |
/ast/src/lib/libodelta/ |
H A D | mtchstring.c | 25 ** Find the longest prefix of tar that match some substring of src 43 /* initial assumptions: src[0] == tar[0] && src+n_match <= endsrc */ 44 static long domatch(char* src, char* endsrc, char* tar, char* endtar, long n_match) argument 49 for(sp = src+n_match, tp = tar+n_match; sp > src; --sp, --tp) 57 tp = tar+n_match+1; 62 return tp-tar; 66 long mtchstring(char* src, long n_src, char* tar, long n_tar, char** match) argument 87 if(!src || n_src <= 0 || !tar || n_tar <= 0) 91 endtar = tar + n_tar; 141 i = (int)(*((unsigned char *)(tar))); [all...] |
H A D | delta.c | 26 ** to the target string 'tar'. Small blockmoves are transformed 299 delta(char* src, long n_src, char* tar, long n_tar, int delfd) argument 319 Btar = tar; 321 etar = tar + n_tar - 1; 331 for(; src <= esrc && tar <= etar; ++src, ++tar) 332 if(*src != *tar) 346 n_tar -= tar-Btar; 351 tar = Btar; 355 for(sp = esrc, tp = etar; sp >= src && tp >= tar; [all...] |
H A D | update.c | 136 unsigned char *src, *tar; local 148 if(tar = (unsigned char*)malloc(n_tar)) /* assignment = */ 149 tarinit(tar,n_tar,tarfd); 180 if(tar) 181 free(tar);
|
/ast/src/lib/libvdelta/ |
H A D | vdexpand.c | 29 uchar* tar; /* target data */ member in struct:_table_s 43 reg uchar *tar, *to, *fr; local 47 tar = tab->tar; 67 STRREAD(tab,tar+t,size); 108 to = tar+t; fr = tar+copy; 133 tab.tar = (uchar*)target;
|
H A D | vddelta.c | 43 uchar* tar; /* target string */ member in struct:_table_s 67 c_addr = (here-tab->tar)+tab->n_src; /* current address */ 164 reg uchar *src = tab->src, *tar = tab->tar; local 173 curm = (fold - tab->tar) + n_src; 201 sm = tar + n; 249 curm = n_src + (ss-tar); 292 { if((len = (tab->tar+tab->n_tar) - endfold) > 0 ) /* match at end */ 309 reg uchar *tar, *src, *endsrc, *endtar, *endt; local 314 tar [all...] |
H A D | vdupdate.c | 42 uchar* tar; /* target string */ member in struct:_utable_s 62 reg uchar *tar, *src, *to, *fr; local 67 tar = tab->tar; 97 { if(!tar) 109 if((*_Vdread)((Vdio_t*)tab,tar+t,n) != n) 161 if(tar) 162 { to = tar+t; 185 { if(tar) 188 ((Void_t*)(tar 269 reg uchar *tar, *src; local [all...] |
H A D | vdsqueeze.c | 41 uchar* tar; /* target string */ member in struct:_table_s 66 c_addr = here-tab->tar; /* current address */ 152 reg uchar *tar = tab->tar; local 155 endfold = (s = tar) + tab->n_tar; 181 sm = tar + n; 224 curm = (ss-tar); 287 tab.tar = (uchar*)target;
|
/ast/src/cmd/pax/ |
H A D | pax-tar.c | 23 * pax { pax tar ustar } formats 36 #define TAR_SUMASK ((1L<<(sizeof(tar->header.chksum)-1)*3)-1) 90 * compute tar->header checksum 96 register Tar_t* tar = (Tar_t*)ap->data; local 106 p = (unsigned char*)tar->header.chksum; 116 p = (unsigned char*)&tar->header; 145 p = (unsigned char*)tar->header.chksum; 178 * check if tar file name may be split to fit in header 291 * synthesize an extended tar header 322 * output an extended tar heade 535 register Tar_t* tar = (Tar_t*)ap->data; local 763 register Tar_t* tar = (Tar_t*)ap->data; local 900 register Tar_t* tar = (Tar_t*)ap->data; local 911 register Tar_t* tar = (Tar_t*)ap->data; local [all...] |
H A D | testpax.sh | 22 # testpax [ + ] [ - ] [ tar-path ] [ pax-path ] [ pax-options ... ] 27 # tar-path tar the old and new archives 47 *tar) tar=$1; shift; formats="tar.tar" ;; 48 *) tar=''; formats="pax.pax pax:gzip.pgz cpio.cpio tar.tar ta [all...] |
H A D | Makefile | 14 pax-rpm.c pax-saveset.c pax-slt.c pax-tar.c pax-tnef.c \ 29 :INSTALLDIR: cpio tar 40 tar :: tar.sh LICENSE=since=1989,author=gsf+brussell
|
H A D | cpio.sh | 97 tar|TAR) format=tar ;; 99 *) print -u2 "$command: $OPTARG: formats are {asc,crc,odc,tar,star}"; exit 1 ;;
|
H A D | tar.sh | 21 # @(#)tar.sh (AT&T Labs Research) 1989-04-06 23 # tar -> pax interface script 26 command=tar 35 [-?\n@(#)$Id: tar (AT&T Labs Research) 2012-05-07 $\n] 37 [+NAME?tar - create tape archives, and add or extract files] 62 [E?Write a tar file with extended headers.] 69 [l?Link. Complain if tar cannot resolve all of the links to files being 74 running the tar program, rather than those on tarfile.]
|
H A D | pax.h | 51 #include <tar.h>
|
/ast/src/lib/libvdelta/vd01/ |
H A D | vdupdate01.c | 40 uchar* tar; /* target string */ member in struct:_table_s 60 reg uchar *tar, *src, *to, *fr; local 65 tar = tab->tar; 95 { if(!tar) 107 if((*_Vdread)((Vdio_t*)tab,tar+t,n) != n) 159 if(tar) 160 { to = tar+t; 183 { if(tar) 186 ((Void_t*)(tar 267 reg uchar *tar, *src; local [all...] |
H A D | vddelta01.c | 47 uchar* tar; /* target string */ member in struct:_table_s 71 c_addr = (here-tab->tar)+tab->n_src; /* current address */ 171 reg uchar *src = tab->src, *tar = tab->tar; local 181 { endfold = (s = tar) + tab->n_tar; 217 sm = tar + n; 265 else curm = base + n_src + (ss-tar); 339 tab.tar = tab.src = NIL(uchar*); 359 if(size > 0 && !(tab.tar = (uchar*)malloc(size*sizeof(uchar))) ) 395 if(tab.tar) [all...] |
/ast/src/cmd/mam/ |
H A D | shmam.awk | 158 #chmod xxx tar tar tar ... 160 #strip tar tar tar ... 162 #mkln tar tar tar ... 294 tar [all...] |
/ast/src/lib/libvcodex/Vcdelta/ |
H A D | vcdelta.c | 59 vcd->vcpa.tar + (dt - vcd->vcpa.nsrc); 133 else data = vcd->vcpa.tar + (sav->addr - vcd->vcpa.nsrc); 176 else data = vcd->vcpa.tar + (dt - vcd->vcpa.nsrc); 248 static ssize_t vcddiff(Vcodex_t* vc, const Void_t* tar, size_t ntar, Void_t** del) argument 250 static ssize_t vcddiff(vc, tar, ntar, del) 252 Void_t* tar; 270 vcd->vcpa.tar = (Vcchar_t*)tar; 341 Vcchar_t *tar, *etar, *src, *rd, *ri, *ra; local 391 if(!(tar [all...] |
/ast/src/lib/libvcodex/ |
H A D | vclzparse.c | 45 Obj_t* tar; /* objects representing target */ member in struct:_hash_s 74 hs->tar = hs->src + nsrc; 143 { mstr = vcpa->tar; /* matching in target data */ 156 ts = vcpa->tar + (m = mt->tpos - vcpa->nsrc); 183 { mt->tpos = (ts - vcpa->tar) + vcpa->nsrc + n; 236 ns = (ks = vcpa->tar) + mmin; et = ks + vcpa->ntar; /* bounds of target data */ 239 for(add = obj = hs->tar, endo = obj + vcpa->ntar - (mmin-1); ; ) 257 { for(p = NIL(Obj_t*), m = *ht; m && m >= hs->tar; ) 267 if(m >= hs->tar) /* possible target match */ 268 { sm = vcpa->tar [all...] |
H A D | vcodex.h | 537 Vcchar_t* tar; /* target string to be parsed */ member in struct:_vclzparse_s
|
/ast/src/cmd/html/ |
H A D | mm2html.sh | 760 link*) tar= 765 tar=" target=_top" 777 data+="<A $nam=\"$pfx$url\"$tar>$txt</A>"
|