/ast/src/cmd/vczip/tests/ |
H A D | tio.c | 32 Vcio_t io; local 36 vcioinit(&io, buf, sizeof(buf)); 37 vciosetb(&io, io.bits, io.nbits, VC_ENCODE); 38 if(vcioputg(&io, 1) < 0) 40 if(vcioputg(&io, 11) < 0) 42 if(vcioputg(&io, 101) < 0) 44 if(vcioputg(&io, 1) < 0) 46 if(vcioputg(&io, 100 [all...] |
/ast/src/lib/libast/sfio/ |
H A D | sfexcept.c | 24 /* Function to handle io exceptions. 29 int _sfexcept(Sfio_t* f, int type, ssize_t io, Sfdisc_t* disc) argument 31 int _sfexcept(f,type,io,disc) 33 int type; /* io type that was performed */ 34 ssize_t io; /* the io return value that indicated exception */ 48 if(local && io <= 0) 49 f->flags |= io < 0 ? SF_ERROR : SF_EOF; 57 _Sfi = f->val = io; 58 ev = (*(disc->exceptf))(f,type,&io,dis [all...] |
/ast/src/lib/libvcodex/Vcdelta/ |
H A D | vcdtable.c | 93 Vcio_t io; local 107 vcioinit(&io, buf, n); 112 { vcioputc(&io, tbl->s_near); 113 vcioputc(&io, tbl->s_same); 114 vcioputs(&io, del, rv); 138 Vcio_t io; local 152 vcioinit(&io, buf, n); 153 tbl->s_near = vciogetc(&io); 154 tbl->s_same = vciogetc(&io); 155 if((rv = vcapply(vc, vcionext(&io), vciomor [all...] |
/ast/src/lib/libvdelta/vd01/ |
H A D | vdio01.c | 28 static void _vdinit(reg Vdio_t* io) argument 30 static void _vdinit(io) 31 reg Vdio_t* io; 34 if((io->data = (uchar*)io->delta->data) ) 35 io->size = io->delta->size; 37 { io->data = io->buf; 38 io 46 _vdfilbuf(reg Vdio_t* io) argument 67 _vdflsbuf(reg Vdio_t* io) argument 90 _vdgetu(reg Vdio_t* io, reg ulong v) argument 108 _vdputu(reg Vdio_t* io, ulong v) argument 142 _vdread(Vdio_t* io, reg uchar* s, reg int n) argument 169 _vdwrite(Vdio_t* io, reg uchar* s, reg int n) argument [all...] |
H A D | vdupdate01.c | 35 { Vdio_t io; /* io structure */ member in struct:_table_s 279 INIT(&tab.io,delta); 287 if((*_Vdread)(&tab.io,magic,n) != n) 294 if((t = (long)(*_Vdgetu)(&tab.io,0)) < 0 || 300 if((t = (long)(*_Vdgetu)(&tab.io,0)) < 0) 311 if((window = (long)(*_Vdgetu)(&tab.io,0)) < 0)
|
H A D | vddelta01.c | 44 { Vdio_t io; /* io structure */ member in struct:_table_s 342 INIT(&tab.io,delta); 417 if((*_Vdwrite)(&tab.io,(uchar*)VD_MAGIC,k) != k || 418 (*_Vdputu)(&tab.io,(ulong)n_tar) <= 0 || 419 (*_Vdputu)(&tab.io,(ulong)n_src) <= 0 || 420 (*_Vdputu)(&tab.io,(ulong)window) <= 0 ) 491 return tab.io.here + (tab.io.next - tab.io [all...] |
/ast/src/lib/libvdelta/ |
H A D | vdio.c | 28 static void _vdinit(reg Vdio_t* io) argument 30 static void _vdinit(io) 31 reg Vdio_t* io; 34 if((io->data = (uchar*)io->delta->data) ) 35 io->size = io->delta->size; 37 { io->data = io->buf; 38 io 46 _vdfilbuf(reg Vdio_t* io) argument 70 _vdflsbuf(reg Vdio_t* io) argument 93 _vdgetu(reg Vdio_t* io, reg ulong v) argument 111 _vdputu(reg Vdio_t* io, ulong v) argument 145 _vdread(Vdio_t* io, reg uchar* s, reg int n) argument 172 _vdwrite(Vdio_t* io, reg uchar* s, reg int n) argument [all...] |
H A D | vdupdate.c | 37 { Vdio_t io; /* io structure */ member in struct:_utable_s 281 INIT(&tab.io,delta); 290 if((*_Vdread)(&tab.io,magic,n) != n) 306 if((t = (long)(*_Vdgetu)(&tab.io,0)) < 0 || 312 if((t = (long)(*_Vdgetu)(&tab.io,0)) < 0) 323 if((window = (long)(*_Vdgetu)(&tab.io,0)) < 0)
|
/ast/src/lib/libast/disc/ |
H A D | sfdcdio.c | 72 { size_t io; local 74 if((io = rw) > di->dio.d_maxiosz ) 75 io = di->dio.d_maxiosz; 77 rv = read(f->file,buf,io); 78 else rv = write(f->file,buf,io); 85 if(rv < io || rw < di->dio.d_miniosz)
|
H A D | sfdcsubstr.c | 54 reg ssize_t io; local 59 if(su->extent >= 0 && (ssize_t)n > (io = (ssize_t)(su->extent - su->here)) ) 60 n = io; 70 io = 0; 73 io = sfwr(f,buf,n,disc); 74 else io = sfrd(f,buf,n,disc); 75 if(io > 0) 76 su->here += io; 82 return io;
|
/ast/src/lib/libpz/ |
H A D | pzfixed.c | 37 * otherwise data is peeked from io 45 pzfixed(Pz_t* pz, register Sfio_t* io, void* buf, size_t z) argument 63 siz = pz && (pz->flags & PZ_POP) ? (Sfoff_t)0 : sfsize(io); 66 else if (!(s = sfreserve(io, 8 * elementsof(xp->rep), 1)) && !(s = sfreserve(io, SF_UNBOUND, 1))) 69 z = sfvalue(io); 143 sfread(io, s, 0);
|
H A D | sfdcpzip.c | 43 Sfio_t* io; /* real pzwrite stream */ member in struct:__anon368 108 return pzwrite(pz->pz, pz->io, buf, size); 127 Sfio_t* io; local 134 sp = oz->io; 183 if (!(io = sfnew(NiL, NiL, SF_UNBOUND, sffileno(sp), (sfset(sp, 0, 0) & (SF_READ|SF_WRITE))))) 187 io->_file = -1; 188 sfclose(io); 205 if (!(pz->pz = pzopen(&pz->disc, (char*)io, flags)) || (sp->_file = open("/dev/null", 0)) < 0) 207 io->_file = -1; 208 sfclose(io); [all...] |
/ast/src/lib/libvcodex/Vchuff/ |
H A D | vchcode.c | 41 Vcio_t io; local 51 { vcioinit(&io, rl, 8*sizeof(ssize_t)); 52 vcioput2(&io, r-3, esc1, esc2); 53 rl = vcionext(&io); 63 { vcioinit(&io, rl-1, (endr-rl)+1); 64 r = vcioget2(&io, esc1, esc2) + 3; 65 rl = vcionext(&io); 97 Vcio_t io; local 113 vcioinit(&io,data,dtsz); 114 vcioputu(&io, n 142 Vcio_t io; local [all...] |
H A D | vchuffman.c | 83 Vcio_t io; local 115 vcioinit(&io, output, s); 118 vcioputu(&io, dtsz); /* size of raw data */ 119 vcioputc(&io, huff->maxs); /* the control code */ 124 vcioputc(&io, *dt); 127 if((s = vchputcode(VCH_SIZE, size, huff->maxs, vcionext(&io), vciomore(&io))) <= 0) 129 else vcioskip(&io,s); 130 /**/DEBUG_PRINT(2,"headsz=%d ",vciosize(&io)); 132 vciosetb(io, 164 Vcio_t io; local [all...] |
H A D | vchuffpart.c | 36 Vcio_t* io; /* where to write out compressed data */ member in struct:_part_s 103 vcioputu(pt->io, sz); 104 vcioputs(pt->io, buf, sz); 176 Vcio_t io; local 195 vcioinit(&io, output, n); 196 pt->io = &io; 198 vcioputu(&io, size); /* write out the original size */ 204 pt->io = NIL(Vcio_t*); 207 n = vciosize(&io); /* compresse [all...] |
/ast/src/lib/libvcodex/Vcmisc/ |
H A D | vcbwt.c | 39 Vcio_t io; local 79 vcioinit(&io, output, hd); 80 vcioputu(&io, sp); 105 Vcio_t io; local 110 vcioinit(&io, data, size); 112 if((sp = vciogetu(&io)) < 0) /* index of 0th position */ 116 sz = vciomore(&io); 117 dt = vcionext(&io);
|
H A D | vcstrip.c | 57 Vcio_t io; local 122 vcioinit(&io, output, z); 123 vcioputu(&io, hsz); 124 vcioputs(&io, hdt, hsz); 125 vcioputu(&io, tsz); 126 vcioputs(&io, tdt, tsz); 127 vcioputu(&io, dsz); 128 vcioputs(&io, dt, dsz); 148 Vcio_t io; local 154 vcioinit(&io, (Vcchar_ [all...] |
H A D | vcrle.c | 72 Vcio_t io; local 84 vcioinit(&io, o, 8*sizeof(ssize_t)); 85 vcioput2(&io, z, 0, RL_ZERO); 86 o = vcionext(&io); 96 vcioinit(&io, o, 8*sizeof(ssize_t)); 97 vcioput2(&io, z, 0, RL_ZERO); 98 o = vcionext(&io); 112 { vcioinit(&io, dt-1, (enddt-dt)+1); 113 z = vcioget2(&io, 0, RL_ZERO); /**/DEBUG_PRINT(9,"%d\n",z); 114 dt = vcionext(&io); 142 Vcio_t io; local 237 Vcio_t io; local 293 Vcio_t io; local 369 Vcio_t io; local 476 Vcio_t io; local [all...] |
H A D | vctranspose.c | 255 Vcio_t io; 281 { vcioinit(&io, run, 2*sizeof(ssize_t)); 282 vcioputu(&io, r); 283 run = vcionext(&io); 303 { vcioinit(&io, run, 2*sizeof(ssize_t)); 304 vcioputu(&io, r); 305 run = vcionext(&io); 327 { vcioinit(&io, output, 2*(size+hd)); 328 vcioputu(&io, c); 329 vcioputs(&io, ch 362 Vcio_t io; local 450 Vcio_t io; local [all...] |
/ast/src/lib/libvcodex/ |
H A D | vcextract.c | 50 Vcio_t io; local 86 vcioinit(&io, data, dtsz); 90 vcioputs(&io, ident, strlen(ident)+1); 91 vcioputu(&io, store[k].dtsz); 92 vcioputs(&io, store[k].data, store[k].dtsz); 116 Vcio_t io; local 121 vcioinit(&io, data, dtsz); 124 while(vciomore(&io) > 0) 126 mt = (char*)vcionext(&io); 127 for(sz = vciomore(&io), [all...] |
/ast/src/lib/libdss/ |
H A D | dssfile.c | 72 dssfopen(Dss_t* dss, const char* path, Sfio_t* io, Dssflags_t flags, Dssformat_t* format) argument 85 if (io) 88 if (sfdisc(io, &top)) 91 sfdisc(io, SF_POPDISC); 94 sfdisc(io, SF_POPDISC); 95 sfdczip(io, path, dss->meth->compress ? dss->meth->compress : "gzip", dss->disc->errorf); 106 if (io) 111 io = sfstdout; 114 else if (io) 119 io [all...] |
/ast/src/cmd/sort/ |
H A D | sfopen.c | 36 * io patterns matched against the file path 62 Io_t* io[2]; member in struct:Match_s 87 Io_t* io; local 110 if (!(io = newof(0, Io_t, 1, 0))) 113 io->pattern = v; 115 io->command = x; 118 ie[n] = ie[n]->next = io; 120 ie[n] = mp->io[n] = io; 157 register Io_t* io; local [all...] |
/ast/src/cmd/dsslib/bgp/ |
H A D | bgp-cisco.c | 100 sfprintf(file->io, "Status codes: s suppressed, d damped, h history, * valid, > best, i internal, r rib-failure, S stale\n"); 101 sfprintf(file->io, "Origin codes: i IGP, e EGP, ? incomplete\n"); 102 sfprintf(file->io, " Network Next Hop Metric LocPrf Weight Path\n"); 129 if (!(s = sfgetr(file->io, '\n', 0))) 131 e = s + sfvalue(file->io); 186 if (!(s = sfgetr(file->io, '\n', 0))) 188 if ((n = sfvalue(file->io)) <= 61) 300 register Sfio_t* io = file->io; local 308 sfputc(io, ' [all...] |
H A D | bgp-ipma.c | 88 while (s = sfgetr(file->io, '\n', 0)) 90 e = s + sfvalue(file->io); 106 switch (c = sfgetc(file->io)) 117 sfungetc(file->io, c); 154 sfprintf(file->io, "%s\n\n", magic1); 231 if (!(s = sfgetr(file->io, '\n', 0))) 233 e = s + sfvalue(file->io); 244 if ((c = sfgetc(file->io)) == EOF) 248 sfungetc(file->io, c); 251 else if (!(s = sfgetr(file->io, '\ 343 register Sfio_t* io = file->io; local [all...] |
/ast/src/cmd/html/ |
H A D | html2rtf.h | 82 Sfio_t* io; member in union:Data_u
|