/ast/src/cmd/mailx/port/ |
H A D | dtsize.c | 76 static int dtcount(reg Dtlink_t* here) argument 78 static int dtcount(here) 79 reg Dtlink_t* here; 81 { return !here ? 0 : dtcount(here->left) + dtcount(here->right) + 1; 98 dt->data->size = dtcount(dt->data->here); 100 { t = (dt->data->type&DT_LIST) ? dt->data->head : dt->data->here;
|
H A D | dtrestore.c | 93 list = dt->data->here; 103 { dt->data->here = NIL(Dtlink_t*); 125 dt->data->here = list; 127 { dt->data->here = NIL(Dtlink_t*);
|
H A D | dtrenew.c | 91 if(!(e = dt->data->here) || OBJ(e,disc) != obj) 96 dt->data->here = e->left; 101 dt->data->here = r; 115 dt->data->here = NIL(Dtlink_t*); 140 dt->data->here = NIL(Dtlink_t*); 143 { dt->data->here = NIL(Dtlink_t*);
|
H A D | dtflatten.c | 87 return dt->data->here; 104 { for(r = dt->data->here; r; ) 114 dt->data->here = list;
|
H A D | dtextract.c | 87 list = dt->data->here; 108 dt->data->here = NIL(Dtlink_t*);
|
H A D | dthash.c | 161 dt->data->here = NIL(Dtlink_t*); 173 dt->data->here = t; 191 if(!(t = dt->data->here) || OBJ(t,disc) != obj) 240 dt->data->here = t; 250 dt->data->here = t; 273 dt->data->here = t; 290 dt->data->here = r; 310 dt->data->here = t;
|
H A D | dtlist.c | 103 dt->data->head = dt->data->here = NIL(Dtlink_t*); 111 dt->data->here = r; 128 if(!(t = dt->data->here) || OBJ(t,disc) != obj) 138 { dt->data->here = t = t->right; 183 dt->data->here = prev;
|
H A D | dttree.c | 96 root = dt->data->here; 115 dt->data->here = NIL(Dtlink_t*); 128 dt->data->here = root; 275 dt->data->here = root; 282 dt->data->here = link.left;
|
/ast/src/lib/libvcodex/Vcwindow/ |
H A D | vcwmirror.c | 33 static Vcwmatch_t* mirror(Vcwindow_t* vcw, Void_t* data, size_t size, Sfoff_t here) argument 35 static Vcwmatch_t* mirror(vcw, data, size, here) 39 Sfoff_t here; /* current target position */ 54 if((here -= VCWEXTRA(mtsz)) < 0) 55 here = 0; 56 if((here+mtsz) > mir->ssize && (here = mir->ssize - mtsz) < 0 ) 57 { here = 0; 62 wm->wpos = here; 64 if(sfseek(srcf, here, [all...] |
H A D | vcwdecode.c | 29 static Vcwmatch_t* decode(Vcwindow_t* vcw, Void_t* data, size_t size, Sfoff_t here) argument 31 static Vcwmatch_t* decode(vcw, data, size, here) 35 Sfoff_t here; /* current target position */ 52 if(sfseek(sf, here, SEEK_SET) != here) 58 vcw->match.wpos = here;
|
H A D | vcwvote.c | 136 static double frtarget(Vcwindow_t* vcw, size_t* dfreq, size_t size, Sfoff_t here) argument 138 static double frtarget(vcw, dfreq, size, here) 142 Sfoff_t here; /* current location */ 164 if((pos = here - (size+size/8)) < 0) 166 if((dtsz = (size_t)(here - pos)) < size) 193 static Vcwmatch_t* frmatch(Vcwindow_t* vcw, Void_t* data, size_t dtsz, Sfoff_t here) argument 195 static Vcwmatch_t* frmatch(vcw, data, dtsz, here) 199 Sfoff_t here; /* current target position */ 222 if(fr->tarf && here > (Sfoff_t)dtsz && 223 frtarget(vcw, dfreq, dtsz, here) < TARMATC [all...] |
H A D | vcwprefix.c | 88 Sfoff_t here; /* data processed to here */ member in struct:_prefix_s 368 static Vcwmatch_t* pfmatch(Vcwindow_t* vcw, Void_t* data, size_t dtsz, Sfoff_t here) argument 370 static Vcwmatch_t* pfmatch(vcw, data, dtsz, here) 374 Sfoff_t here; /* current target position */ 390 { wm->wpos = here; 391 wm->wsize = here+dtsz > pf->sfsz ? (ssize_t)(pf->sfsz-here) : dtsz; 407 { if(pf->dtpos == here && dtsz <= pf->dtsz ) 415 pf->maxo = here/pf [all...] |
/ast/src/lib/libast/sfio/ |
H A D | sfsize.c | 52 s = f->here; 63 if(SFSK(f,f->here,SEEK_SET,disc) != f->here) 64 f->here = SFSK(f,(Sfoff_t)0,SEEK_CUR,disc); 71 else if((f->extent = st.st_size) < f->here) 72 f->here = SFSK(f,(Sfoff_t)0,SEEK_CUR,disc); 78 f->here = SFSK(f,(Sfoff_t)0,SEEK_CUR,f->disc); 81 if(f->here != s && (f->mode&SF_READ) ) 92 if(f->here < 0) 94 else if(f->extent < f->here) [all...] |
H A D | sfseek.c | 45 if((f->here = p) < 0) 47 f->here = 0; 57 int type; /* 0: from org, 1: from here, 2: from end */ 71 { newpos(f,f->here); 127 f->here = p; 147 { s = f->here + (f->next - f->data); 165 { r = p + (type == SEEK_CUR ? f->here : 0); 166 p = (hardseek || r != f->here) ? SFSK(f,r,SEEK_SET,f->disc) : r; 174 /* if get here, must be a read stream */ 175 s = f->here [all...] |
H A D | sfrd.c | 148 (r = SFSK(f,(Sfoff_t)0,SEEK_CUR,dc)) != f->here) 149 f->here = r; 150 else f->here -= f->endb-f->next; 153 if((f->flags&SF_SHARE) || (size_t)(r = f->extent-f->here) < n) 156 if((r = (f->extent = st.st_size) - f->here) <= 0 ) 163 if((a = (size_t)(f->here%_Sfpage)) != 0) 164 { f->here -= a; 179 f->file, (sfoff_t)f->here); 196 f->here += r; 199 (void)SFSK(f,f->here,SEEK_SE [all...] |
H A D | sfpurge.c | 59 { f->here -= f->endb - f->next; 62 (void)SFSK(f,f->here,SEEK_SET,f->disc); 84 { f->here -= f->endb-f->next; 85 (void)SFSK(f,f->here,SEEK_SET,f->disc);
|
H A D | sfwr.c | 26 ** the buffer. However, this is done here so that exception handling 53 { /* see if a hole of 0's starts here */ 181 { if(f->here != f->extent || (f->flags&SF_SHARE)) 182 { f->here = SFSK(f,(Sfoff_t)0,SEEK_END,dc); 183 f->extent = f->here; 187 f->here = SFSK(f,f->here,SEEK_SET,dc); 202 f->here == f->extent && (f->here%_Sfpage) == 0) 219 f->here [all...] |
H A D | sfclrlock.c | 51 { f->here -= f->endb-f->next;
|
H A D | sftell.c | 56 else p = f->here + ((f->mode&SF_WRITE) ? f->next-f->data : f->next-f->endb);
|
H A D | sfsetbuf.c | 224 { if((f->here = SFSK(f,(Sfoff_t)0,SEEK_CUR,disc)) < 0) 229 f->extent = e > f->here ? e : f->here; 230 (void)SFSK(f,f->here,SEEK_SET,disc); 237 f->here = -1; 247 f->here = SFSK(f,(Sfoff_t)0,SEEK_CUR,f->disc); 248 else f->here = -1; 251 if(okmmap && f->here >= 0 && 262 if(f->here >= 0) 273 f->here [all...] |
/ast/src/lib/libast/disc/ |
H A D | sfdcsubstr.c | 38 Sfoff_t here; /* current seek location */ member in struct:_subfile_s 53 reg Sfoff_t here, parent; local 59 if(su->extent >= 0 && (ssize_t)n > (io = (ssize_t)(su->extent - su->here)) ) 68 here = su->here + su->offset; 69 if(sfsk(f,here,SEEK_SET,disc) != here) 76 su->here += io; 122 reg Sfoff_t here, parent; local 129 here 183 reg Sfoff_t here; local [all...] |
/ast/src/lib/libvcodex/Vcdelta/ |
H A D | vcdcache.c | 105 ssize_t vcdkasetaddr(Vcdcache_t* ka, ssize_t addr, ssize_t here, ssize_t* mode) argument 107 ssize_t vcdkasetaddr(ka, addr, here, mode) 110 ssize_t here; /* current location */ 121 d = here-addr; 154 ssize_t vcdkagetaddr(Vcdcache_t* ka, Vcio_t* addr, ssize_t here, ssize_t mode) argument 156 ssize_t vcdkagetaddr(ka, addr, here, mode) 159 ssize_t here; 168 a = here - vciogetu(addr);
|
/ast/src/lib/libast/cdt/ |
H A D | dtlist.c | 32 Dtlink_t* here; /* finger to searched objects */ member in struct:_dtlist_s 36 int dtlistprint(Dt_t* dt, Dtlink_t* here, char* (*objprintf)(Void_t*) ) argument 43 if(!here && !(here = list->link) ) 46 for(; here; here = here->_rght) 49 obj = (*objprintf)(_DTOBJ(disc, here)); 76 list->here = lnk; /* finger points to this */ 95 list->link = list->here [all...] |
H A D | dthash.c | 39 Dtlink_t* here; /* fingered object */ member in struct:_dthash_s 100 hash->here = NIL(Dtlink_t*); 122 hash->here = l; 135 { hash->here = next; 144 hash->here = l; 169 { hash->here = head; 177 { head = hash->here; 193 hash->here = NIL(Dtlink_t*); 287 lnk = hash->here; /* fingered object */ 288 hash->here [all...] |
/ast/src/lib/libast/include/ |
H A D | sfio_t.h | 36 Sfoff_t here; /* current physical location */ \ 84 (Sfoff_t)0, /* here */ \ 112 (f)->here = (Sfoff_t)0, /* here */ \
|