/ast/src/cmd/dsslib/ip_t/ |
H A D | ptunion.c | 32 Ptprefix_t* bp; local 36 for (bp = (Ptprefix_t*)dtfirst(b->dict); bp; bp = (Ptprefix_t*)dtnext(b->dict, bp)) 37 if (!ptinsert(a, bp->min, bp->max))
|
H A D | ptvunion.c | 32 Ptvprefix_t* bp; local 36 for (bp = (Ptvprefix_t*)dtfirst(b->dict); bp; bp = (Ptvprefix_t*)dtnext(b->dict, bp)) 37 if (!ptvinsert(a, bp->min, bp->max))
|
H A D | ptequal.c | 33 Ptprefix_t* bp; local 38 bp = (Ptprefix_t*)dtfirst(b->dict); 39 while (ap && bp) 41 if (ap->min != bp->min) 43 if (ap->max != bp->max) 46 bp = (Ptprefix_t*)dtnext(b->dict, bp); 48 return !ap && !bp;
|
H A D | ptsubset.c | 33 Ptprefix_t* bp; local 36 bp = (Ptprefix_t*)dtfirst(b->dict); 39 if (!bp || ap->max < bp->min || ap->min < bp->min) 41 if (ap->max < bp->max) 43 else if (ap->max > bp->max) 44 bp = (Ptprefix_t*)dtnext(b->dict, bp); 48 bp [all...] |
H A D | ptvequal.c | 33 Ptvprefix_t* bp; local 38 bp = (Ptvprefix_t*)dtfirst(b->dict); 39 while (ap && bp) 41 if (fvcmp(a->size, ap->min, bp->min)) 43 if (fvcmp(a->size, ap->max, bp->max)) 46 bp = (Ptvprefix_t*)dtnext(b->dict, bp); 48 return !ap && !bp;
|
H A D | ptvsubset.c | 33 Ptvprefix_t* bp; local 36 bp = (Ptvprefix_t*)dtfirst(b->dict); 39 if (!bp || fvcmp(a->size, ap->max, bp->min) < 0 || fvcmp(a->size, ap->min, bp->min) < 0) 41 if (fvcmp(a->size, ap->max, bp->max) < 0) 43 else if (fvcmp(a->size, ap->max, bp->max) > 0) 44 bp = (Ptvprefix_t*)dtnext(b->dict, bp); 48 bp [all...] |
H A D | ptcover.c | 35 Ptprefix_t* bp; local 40 bp = (Ptprefix_t*)dtfirst(b->dict); 41 while (ap && bp) 43 if (ap->min > bp->max) 44 bp = (Ptprefix_t*)dtnext(b->dict, bp); 47 if (ap->max >= bp->min && !ptinsert(t, ap->min, ap->max))
|
H A D | ptdifference.c | 34 Ptprefix_t* bp; local 41 bp = (Ptprefix_t*)dtfirst(b->dict); 44 if (!bp || ap->max < bp->min) 50 else if (ap->min > bp->max) 51 bp = (Ptprefix_t*)dtnext(b->dict, bp); 54 if (ap->min < bp->min && !ptinsert(t, ap->min, bp->min - 1)) 56 if (ap->max < bp [all...] |
H A D | ptintersect.c | 34 Ptprefix_t* bp; local 39 bp = (Ptprefix_t*)dtfirst(b->dict); 40 while (ap && bp) 42 if (ap->max < bp->min) 44 else if (ap->min > bp->max) 45 bp = (Ptprefix_t*)dtnext(b->dict, bp); 48 if (!ptinsert(t, (ap->min > bp->min) ? ap->min : bp->min, (ap->max < bp [all...] |
H A D | ptvcover.c | 35 Ptvprefix_t* bp; local 40 bp = (Ptvprefix_t*)dtfirst(b->dict); 41 while (ap && bp) 43 if (fvcmp(a->size, ap->min, bp->max) > 0) 44 bp = (Ptvprefix_t*)dtnext(b->dict, bp); 47 if (fvcmp(a->size, ap->max, bp->min) >= 0 && !ptvinsert(t, ap->min, ap->max))
|
H A D | ptvdifference.c | 34 Ptvprefix_t* bp; local 40 bp = (Ptvprefix_t*)dtfirst(b->dict); 43 if (!bp || fvcmp(a->size, ap->max, bp->min) < 0) 49 else if (fvcmp(a->size, ap->min, bp->max) > 0) 50 bp = (Ptvprefix_t*)dtnext(b->dict, bp); 53 if (fvcmp(a->size, ap->min, bp->min) < 0) 56 fvsub(a->size, a->r[1], bp->min, a->r[0]); 60 if ((c = fvcmp(a->size, ap->max, bp [all...] |
H A D | ptvintersect.c | 34 Ptvprefix_t* bp; local 39 bp = (Ptvprefix_t*)dtfirst(b->dict); 40 while (ap && bp) 42 if (fvcmp(a->size, ap->max, bp->min) < 0) 44 else if (fvcmp(a->size, ap->min, bp->max) > 0) 45 bp = (Ptvprefix_t*)dtnext(b->dict, bp); 48 if (!ptvinsert(t, fvcmp(a->size, ap->min, bp->min) > 0 ? ap->min : bp->min, fvcmp(a->size, ap->max, bp [all...] |
H A D | ireexec.h | 47 IREINT* bp; local 58 bp = lp + re->lo - 1; 63 bp = lp; 64 if ((rp - bp) < must) 77 if (cp < bp) 79 bp += j + 1; 104 if (cp >= bp && IRENEXT(ire, re->next, must, cp + 1, rp))
|
/ast/src/lib/libast/sfio/ |
H A D | sfpeek.c | 35 extern ssize_t sfpeek(reg Sfio_t* f, Void_t** bp, reg size_t size) argument 37 extern ssize_t sfpeek(f,bp,size) 39 Void_t** bp; /* start of data area */ 46 if((sz = size) == 0 || !bp) 56 if(!bp) 59 { *bp = (Void_t*)f->next; 70 *bp = sfreserve(f, sz <= 0 ? 0 : sz > f->size ? f->size : sz, 0); 72 if(*bp && sz >= 0) 76 { *bp = (Void_t*)f->next;
|
/ast/src/lib/libast/stdio/ |
H A D | _stdfun.c | 56 static void* bp; local 68 bp = dlopen("/usr/bin/stdio.dll", 0); 70 if (bp && (vp->vec[1] = (Fun_f)dlsym(bp, vp->name)))
|
/ast/src/lib/libast/string/ |
H A D | ccmapid.c | 140 const Ccmap_t* bp; local 144 bp = 0; 154 bp = mp; 157 return bp ? bp->ccode : -1;
|
/ast/src/lib/libcmd/ |
H A D | rev.c | 63 register char *ep, *bp, *cp; local 71 while(cp = bp = sfgetr(in,'\n',0)) 73 ep = bp + (n=sfvalue(in)) - 1; 86 cp = bp; 90 if (sfwrite(out, bp, cp - bp) < 0) 101 while(cp = bp = sfgetr(in,'\n',0)) 103 ep = bp + (n=sfvalue(in)) -1; 104 while(ep > bp) 107 *ep = *bp; [all...] |
H A D | tee.c | 73 register const char* bp; local 81 bp = (const char*)buf; 82 ep = bp + n; 83 while (bp < ep) 85 if ((r = write(fd, bp, ep - bp)) <= 0) 87 bp += r;
|
/ast/src/lib/libpz/ |
H A D | pzwrite.c | 36 register unsigned char* bp; local 70 pz->ws.bp = pz->buf; 86 bp = (unsigned char*)buf; 93 memcpy(pz->ws.sp, bp, x); 94 bp += x; 110 memcpy(elt->buf, bp, k); 116 memcpy(elt->buf, bp, x); 118 bp += x; 141 bp = (unsigned char*)buf + x; 142 be = bp [all...] |
/ast/src/lib/libast/vmalloc/ |
H A D | vmopen.c | 68 Block_t *bp, *np; local 141 bp = SEGBLOCK(seg); 142 SEG(bp) = seg; 143 size = ((seg->baddr - (Vmuchar_t*)bp)/ALIGN) * ALIGN; /**/ ASSERT(size > 0); 144 SIZE(bp) = size - 2*sizeof(Head_t); /**/ASSERT(SIZE(bp) > 0 && (SIZE(bp)%ALIGN) == 0); 145 SELF(bp) = bp; 146 /**/ ASSERT(SIZE(bp) [all...] |
H A D | vmpool.c | 122 Block_t *bp, *tp; local 144 for(bp = vd->free; bp; bp = SEGLINK(bp)) 145 if(bp == tp) 167 Block_t *bp; local 178 bp = (Block_t*)data; 179 SIZE(bp) = POOLFREE; 180 SEGLINK(bp) [all...] |
H A D | vmprivate.c | 50 reg Block_t *bp, *tp, *np; local 94 bp = BLOCK(seg->baddr); 97 { /**/ ASSERT((SIZE(bp)&~BITS) == 0); 98 /**/ ASSERT(SEG(bp) == seg); 100 if(!ISPFREE(SIZE(bp)) ) 101 SIZE(bp) = size - sizeof(Head_t); 104 bp = LAST(bp); 105 if(bp == vd->wild) 107 else REMOVE(vd,bp,INDE [all...] |
/ast/src/cmd/dsslib/netflow/ |
H A D | flow-dumpv9.c | 81 register Netflow_template_t* bp; local 158 bp = ((Netflow_method_t*)file->dss->data)->base; 194 fp->type = bp->field[n - 1].type; 209 bp = ((Netflow_method_t*)file->dss->data)->base; 252 fp->type = bp->field[n - 1].type;
|
/ast/src/cmd/tests/sfio/ |
H A D | tmprdwr.c | 78 char buf[11*CNT], *bp; local 81 for(s = 0, bp = buf; s < CNT; ++s) 83 *bp++ = '0' + i%10; 84 *bp++ = '\0';
|
/ast/src/lib/libcodex/ |
H A D | code-iconv.c | 35 char* bp; member in struct:State_s 136 state->bp = state->buf; 167 fn = sizeof(state->buf) - (state->bp - state->buf); 170 if ((r = sfrd(sp, state->bp, fn, disc)) <= 0) 171 return (state->bp > state->buf) ? -1 : r; 173 fn = r + (state->bp - state->buf); 192 state->bp = tb;
|