Home
last modified time | relevance | path

Searched refs:endb (Results 1 – 25 of 50) sorted by relevance

12

/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/
H A Dsfmove.c45 reg uchar *endb; local
91 if(fw->next >= fw->endb ||
120 else if((r = fr->endb - (next = fr->next)) <= 0)
138 if(fw && fw->extent >= 0 && w <= (fw->endb-fw->next) )
139 { w = fw->endb - (next = fw->next);
174 fr->next = fr->endb = fr->endr = fr->data;
182 endb = next+r;
193 else if((w = endb-cp) > 0)
198 fr->endb = fr->data+w;
199 if((w = endb - (cp+w)) > 0)
[all …]
H A Dsffilbuf.c63 if((r = f->endb-f->next) > 0)
72 n > (f->size - (f->endb-f->data)) )
82 memmove(f->data, f->endb-s, s);
84 f->endb = f->data + s;
88 f->next = f->endb = f->endr = f->data;
93 { r = f->size - (f->endb - f->data); /* available buffer */
105 if((r = SFRD(f,f->endb,r,f->disc)) >= 0)
106 { r = f->endb - f->next;
H A Dsfseek.c39 { SFMUNMAP(f, f->data, f->endb-f->data);
44 f->endb = (f->mode&SF_WRITE) ? f->data+f->size : f->data;
175 s = f->here - (f->endb - f->next);
177 if(r <= f->here && r >= (f->here - (f->endb-f->data)) )
194 f->next = f->endb - (f->here - r);
208 if((f->next - f->data) < ((f->endb - f->data)/4) )
222 if(f->endb > f->next)
224 f->iosz = (f->next - f->data) + (f->endb - f->next)/2;
231 f->next = f->endr = f->endb = f->data;
259 if(p <= f->here && p >= (f->here - (f->endb - f->data)) )
[all …]
H A Dsfmode.c325 p->ndata = f->endb-f->next;
338 f->endb = f->data;
346 f->endb = f->data+p->ndata;
379 { f->next = f->endb = f->endr = f->data;
461 f->endb = f->data + f->size;
464 f->endr = f->endb;
465 else f->endw = f->endb;
486 f->endb = f->data+f->extent;
500 f->next = f->endr = f->endw = f->endb = f->data;
520 { SFMUNMAP(f,f->data,f->endb-f->data);
[all …]
H A Dsfrd.c88 if(f->next < f->endb)
92 { f->endb = f->next = f->endr = f->data;
97 { SFMUNMAP(f, f->data, f->endb-f->data);
101 f->next = f->endb = f->endr = f->endw = f->data;
141 if((uchar*)buf >= f->data && (uchar*)buf <= f->endb)
142 { n += f->endb - f->next;
150 else f->here -= f->endb-f->next;
173 SFMUNMAP(f, f->data, f->endb-f->data);
194 f->endr = f->endb = f->data+r;
207 else n = f->endb - f->next;
[all …]
H A Dsfreserve.c56 { if((n = f->endb - f->next) > 0 && n == f->val )
85 if((n = f->endb - f->next) < 0)
104 if((n = now = f->endb - f->next) < 0)
113 { if((iosz = f->push->endb - f->push->next) == 0)
135 if((n = f->endb - f->next) < sz)
137 { f->endb = f->endr = f->next;
151 if((n = f->endb - f->next) <= 0)
178 if((n = f->endb - f->next) >= sz )
H A Dsfpurge.c59 { f->here -= f->endb - f->next;
61 { SFMUNMAP(f,f->data,f->endb-f->data);
83 if(f->extent >= 0 && f->endb > f->next)
84 { f->here -= f->endb-f->next;
87 f->endb = f->next = f->data;
H A Dsfflsbuf.c58 if(n == (f->endb-data) && (f->flags&SF_STRING))
65 if(f->next < f->endb || !(f->flags&SF_STRING) )
75 if(n < (f->endb - (data = f->data)))
123 inpc = f->endb-f->next;
H A Dsfdisc.c47 uchar* endb; member
94 if((sz = dcca->endb - dcca->data) > (ssize_t)size)
98 if((dcca->data += sz) >= dcca->endb) /* free empty cache */
149 f->endb = f->next = f->endr = f->endw = f->data;
154 ((f->mode&SF_READ) && (n = f->endb-f->next) > 0) )
181 dcca->endb = dcca->data + n;
183 f->endb = f->next = f->endr = f->endw = f->data;
H A Dsfwrite.c77 f->endb = f->data + n;
95 w = f->endb - f->next;
97 if(s == f->next && s < f->endb) /* after sfreserve */
109 if((w = f->endb - f->next) < (ssize_t)n)
121 if((w = f->endb - f->next) < (ssize_t)n &&
H A Dsfgetr.c61 { if((f->flags&SF_STRING) && (un = f->endb - f->next))
63 f->next = f->endb;
75 if((n = (ends = f->endb) - (s = f->next)) <= 0)
151 if(us >= f->data && us < f->endb)
H A Dsfread.c72 f->endb = f->data+n;
76 f->endr = f->endb;
91 if((r = f->endb - f->next) > 0) /* has buffered data */
105 { f->next = f->endb = f->data;
H A Dsfsetfd.c106 f->next < f->endb) )
113 { SFMUNMAP(f,f->data,f->endb-f->data);
119 f->endb = f->endr = f->endw = f->data;
H A Dsfsync.c62 f->next == f->endb) in _sfall()
145 ((f->bits&SF_MMAP) || f->next < f->endb) )
147 f->here -= (f->endb-f->next);
154 { f->endb = f->next = f->data;
H A Dsfclrlock.c51 { f->here -= f->endb-f->next;
52 f->endb = f->next;
H A Dsfsk.c54 { SFMUNMAP(f, f->data, f->endb-f->data);
58 f->next = f->endb = f->endr = f->endw = f->data;
H A Dsfsize.c85 { SFMUNMAP(f,f->data,f->endb-f->data);
89 f->next = f->endb = f->endr = f->endw = f->data;
H A Dsfexcept.c91 f->endb = data + size;
112 ((type == SF_READ && f->next >= f->endb) ||
/illumos-gate/usr/src/contrib/ast/src/lib/libast/cdt/
H A Ddttree.c41 char *obj, *endb, buf[1024]; in dttreeprint() local
48 endb = buf; /* indentation */ in dttreeprint()
50 { *endb++ = ' '; *endb++ = ' '; } in dttreeprint()
52 *endb++ = '('; in dttreeprint()
54 k = strlen(obj); memcpy(endb, obj, k); endb += k; in dttreeprint()
55 *endb++ = ')'; in dttreeprint()
56 *endb++ = ':'; in dttreeprint()
57 *endb++ = ' '; in dttreeprint()
59 *endb++ = '<'; in dttreeprint()
63 k = strlen(obj); memcpy(endb, obj, k); endb += k; in dttreeprint()
[all …]
H A Ddtlist.c39 char *obj, *endb, buf[1024]; in dtlistprint() local
47 { endb = buf; /* indentation */ in dtlistprint()
48 *endb++ = '('; in dtlistprint()
50 k = strlen(obj); memcpy(endb, obj, k); endb += k; in dtlistprint()
51 *endb++ = ')'; in dtlistprint()
52 *endb++ = '\n'; in dtlistprint()
53 write(2, buf, endb-buf); in dtlistprint()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/disc/
H A Dsfdcfilter.c34 char* endb; /* end of data */ member
56 if(fi->next && fi->next >= fi->endb )
59 fi->endb = fi->raw+r;
66 fi->next = fi->endb = NIL(char*);
70 if(fi->next && (w = fi->endb - fi->next) > 0 )
177 fi->next = fi->endb = fi->raw;
/illumos-gate/usr/src/contrib/ast/src/lib/libast/vmalloc/
H A Dvmstat.c45 Block_t *b, *endb; local
87 endb = BLOCK(seg->baddr);
90 { while(b < endb)
119 if((s = ((char*)endb - (char*)b) - s) > 0)
H A Dvmdebug.c272 reg Block_t *b, *endb; local
280 b = endb = NIL(Block_t*);
283 endb = (Block_t*)(seg->baddr - sizeof(Head_t));
285 (Vmuchar_t*)addr < (Vmuchar_t*)endb)
301 while(b < endb)
331 Block_t *b, *endb; local
341 endb = (Block_t*)(seg->baddr - sizeof(Head_t));
343 (Vmuchar_t*)addr >= (Vmuchar_t*)endb)
345 while(b < endb)
567 reg Block_t *b, *endb; local
[all …]
H A Dvmtrace.c260 { Block_t *b, *endb; local
264 for(b = SEGBLOCK(seg), endb = BLOCK(seg->baddr); b < endb; )
H A Dvmbest.c176 reg Block_t *b, *endb, *nextb; local
188 endb = (Block_t*)(seg->baddr - sizeof(Head_t));
189 for(; b < endb && rv == 0; b = nextb)
725 reg Block_t *b, *endb; local
732 offset = -1L; b = endb = NIL(Block_t*);
735 endb = (Block_t*)(seg->baddr - sizeof(Head_t));
737 (Vmuchar_t*)addr < (Vmuchar_t*)endb)
747 { while(b < endb)
970 Block_t *b, *endb; local
979 endb = (Block_t*)(seg->baddr - sizeof(Head_t));
[all …]

12