Searched refs:bp (Results 1 - 25 of 87) sorted by relevance

1234

/ast/src/cmd/dsslib/ip_t/
H A Dptunion.c32 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 Dptvunion.c32 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 Dptequal.c33 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 Dptvequal.c33 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 Dptsubset.c33 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 Dptvsubset.c33 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 Dptintersect.c34 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 Dptvintersect.c34 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 Dptcover.c35 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 Dptdifference.c34 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 Dptvcover.c35 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 Dptvdifference.c34 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 Direexec.h47 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/cmd/ksh93/include/
H A Dfault.h108 #define sh_pushcontext(shp,bp,n)( (bp)->mode=(n) , (bp)->olist=0, \
109 (bp)->topfd=shp->topfd, (bp)->prev=shp->jmplist, \
110 (bp)->err = *ERROR_CONTEXT_BASE, \
111 shp->jmplist = (sigjmp_buf*)(&(bp)->buff) \
113 #define sh_popcontext(shp,bp) (shp->jmplist=(bp)->prev, errorpop(&((bp)
[all...]
/ast/src/lib/libast/sfio/
H A Dsfpeek.c35 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/cmd/builtin/
H A Dpty.c455 masterline(Sfio_t* mp, Sfio_t* lp, char* prompt, int must, int timeout, Master_t* bp) argument
467 promptlen = sfsprintf(promptbuf, sizeof(promptbuf), prompt, ++bp->line);
471 if (bp->cur < bp->end && bp->restore >= 0)
472 *bp->cur = bp->restore;
473 if (strneq(bp->cur, promptbuf, promptlen))
474 r = bp->cur;
477 if (bp
[all...]
/ast/src/lib/libast/stdio/
H A D_stdfun.c56 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/libcmd/
H A Drev.c63 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...]
/ast/src/lib/libast/string/
H A Dccmapid.c140 const Ccmap_t* bp; local
144 bp = 0;
154 bp = mp;
157 return bp ? bp->ccode : -1;
/ast/src/cmd/pax/
H A Dpax-saveset.c57 char* bp; /* block pointer */ member in struct:Saveset_s
85 ss->bp += ss->lastsize;
86 while (ss->bp >= ss->block + state.blocksize)
88 ss->bp = ss->block;
90 if (paxread(pax, ap, ss->bp, (off_t)0, (off_t)state.blocksize, 0) <= 0)
97 if (swapget(1, ss->bp + BLKHDR_hdrsiz, 2) != BLKHDR_SIZE)
99 if (!(n = swapget(3, ss->bp + BLKHDR_blksiz, 4)))
100 ss->bp += state.blocksize;
103 ss->bp += BLKHDR_SIZE;
105 ss->lastsize = swapget(1, ss->bp
[all...]
/ast/src/lib/libpz/
H A Dpzwrite.c36 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 Dvmprivate.c50 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/mailx/
H A Dspam.c171 register char* bp; local
185 bp = (char*)b;
188 while (isspace(*bp))
189 bp++;
190 if (be = strchr(bp, ','))
195 bp = skin(bp, GDISPLAY|GCOMPARE);
197 note(0, "spam: addr check `%s' `%s'", ap, bp);
198 if (host = *bp == '@' && (tp = strchr(ap, '@')))
200 bp
239 register char* bp; local
369 register char* bp; local
[all...]
/ast/src/lib/libcodex/
H A Dcode-uu.c54 unsigned char* bp; member in struct:State_s
96 #define GETCHAR(p) ((p)->bp < (p)->be ? (int)*(p)->bp++ : fill(p))
104 state->bp = state->buf;
105 if ((r = sfrd(state->codex->sp, state->bp, sizeof(state->buf), &state->codex->sfdisc)) <= 0)
107 state->be = state->bp;
110 state->be = state->bp + r;
111 return *state->bp++;
132 *state->bp++ = state->data->map[b >> 18];
133 *state->bp
[all...]
H A Dcode-qp.c39 unsigned char* bp; member in struct:State_s
55 #define GETCHAR(p) ((p)->bp < (p)->be ? (int)*(p)->bp++ : fill(p))
56 #define PUTCHAR(p,c) ((p)->bp < (p)->be ? (int)(*(p)->bp++=(c)) : flush(p,c))
63 state->bp = state->buf + LINE;
64 if ((r = sfrd(state->codex->sp, state->bp, BUFFER, &state->codex->sfdisc)) <= 0)
66 state->be = state->bp;
69 state->be = state->bp + r;
70 return *state->bp
[all...]

Completed in 978 milliseconds

1234