/ast/src/lib/libast/string/ |
H A D | fmtversion.c | 35 register char* cur; local 40 buf = cur = fmtbuf(n = 18); 41 end = cur + n; 43 sfsprintf(cur, end - cur, "%04lu-%02lu-%02lu", (v / 10000) % 10000, (v / 100) % 100, v % 100); 47 cur += sfsprintf(cur, end - cur, "%d.", n); 49 cur += sfsprintf(cur, en [all...] |
H A D | fmtbuf.c | 43 register char* cur; local 65 cur = nxt; 68 return cur;
|
/ast/src/lib/libdll/ |
H A D | dllcheck.c | 54 * cur!=0 gets actual version 58 dllcheck(void* dll, const char* path, unsigned long ver, unsigned long* cur) argument 63 if (ver || cur) 66 if (cur) 67 *cur = v;
|
H A D | dllplug.c | 36 dllplugin(const char* lib, const char* name, const char* ver, unsigned long rel, unsigned long* cur, int flags, char* path, size_t size) argument 57 if (!dllcheck(dll, dle->path, rel, cur)) 111 if (!dllcheck(dll, name, rel, cur))
|
/ast/src/lib/librecsort/ |
H A D | rsdisc.c | 38 reg Rsdisc_t* cur; local 59 for (cur = rs->disc; cur; cur = cur->disc) 60 rs->events |= cur->events; 64 cur = rs->disc; 66 while (top = cur) 68 cur = cur [all...] |
H A D | rswrite.c | 28 #define NOTIFY(rs,r,rsrv,endrsrv,cur,out,n) \ 34 { out.data = cur; \ 35 out.datalen = n = endrsrv - cur; \ 44 RESERVE(rs,f,rsrv,endrsrv,cur,out.datalen); \ 46 cur += out.datalen; \ 54 #define RESERVE(rs,f,rsrv,endrsrv,cur,w) \ 56 if((endrsrv-cur) < w) \ 57 { if(rsrv && sfwrite(f,rsrv,cur-rsrv) != cur-rsrv) return -1; \ 63 endrsrv = (cur 82 reg uchar *d, *cur, *endrsrv, *rsrv; local [all...] |
H A D | rsmerge.c | 45 uchar* cur; /* reserved data current */ member in struct:_merge_s 61 #define MGRESERVE(mg,rsrv,endrsrv,cur,r,action) \ 63 if((cur+r) > endrsrv) \ 64 { if(rsrv && sfread(mg->f,rsrv,cur-rsrv) != cur-rsrv) { MGSETEOF(mg); action;} \ 65 rsrv = endrsrv = cur = NIL(uchar*); \ 71 endrsrv = (cur = rsrv) + rr; \ 75 #define RSRESERVE(rs,rsrv,endrsrv,cur,w,action) \ 78 if((endrsrv-cur) < w) \ 79 { if(rsrv && sfwrite(rs->f,rsrv,cur 136 reg uchar *t, *cur, *rsrv, *endrsrv; local 568 reg uchar *d, *cur, *mgcur; local [all...] |
/ast/src/lib/libast/misc/ |
H A D | fs3d.c | 42 register int cur; local 68 cur = FS3D_ON; 70 cur = FS3D_LIMIT((int)strtol(v + sizeof(off) + 1, NiL, 0)); 72 cur = FS3D_OFF; 73 if (cur != op) 95 return cur;
|
/ast/src/lib/libast/comp/ |
H A D | regexp.c | 38 char* cur; member in struct:__anon253 47 if (data || (size = roundof(size, ALIGN_BOUND2)) > (env->buf + env->size - env->cur)) 49 data = (void*)env->cur; 50 env->cur += size; 62 env->buf = env->cur = (char*)env + sizeof(Env_t);
|
H A D | regcmp.c | 38 char* cur; member in struct:__anon252 53 if (data || (size = roundof(size, ALIGN_BOUND2)) > (re->buf + re->size - re->cur)) 55 data = (void*)re->cur; 56 re->cur += size; 172 re->cur = re->buf;
|
/ast/src/lib/libast/sfio/ |
H A D | sfmove.c | 47 Sfoff_t n_move, sk, cur; local 97 else if((cur = SFSEEK(fr, (Sfoff_t)0, SEEK_CUR)) >= 0 ) 99 if(sk > cur) /* safe to skip over data in current stream */ 100 { n_move += sk - cur; 102 n -= sk - cur;
|
/ast/src/cmd/dsslib/ip_t/ |
H A D | ptopen.c | 161 Ptprefix_t cur; local 170 cur.min = xp->min; 171 cur.max = xp->max; 173 if (key.min > cur.min) 175 max = cur.max; 176 cur.max = key.min - 1; 177 if (!dtinsert(tab->dict, &cur)) 181 cur.min = key.max + 1; 182 cur.max = max; 183 if (!dtinsert(tab->dict, &cur)) [all...] |
H A D | ptvopen.c | 194 Ptvprefix_t cur; local 204 cur.min = xp->min; 205 cur.max = xp->max; 207 if (fvcmp(tab->size, key.min, cur.min) > 0) 209 max = cur.max; 211 cur.max = tab->r[0]; 212 if (!dtinsert(tab->dict, &cur)) 217 cur.min = tab->r[2]; 218 cur.max = max; 219 if (!dtinsert(tab->dict, &cur)) [all...] |
/ast/src/lib/libast/preroot/ |
H A D | getpreroot.c | 72 struct stat* cur; local 80 cur = &curst; 83 if (stat(PR_REAL, cur) || stat("/", par) || cur->st_dev == par->st_dev && cur->st_ino == par->st_ino) ERROR(ENOTDIR); 95 tmp = cur; 96 cur = par; 109 if (par->st_dev == cur->st_dev) 111 if (par->st_ino == cur->st_ino) 126 if (D_FILENO(entry) == cur [all...] |
/ast/src/lib/libsum/ |
H A D | sum-ast4.c | 46 Ast4_sum_t cur; member in struct:Ast4_s 56 a->tot.sum0 ^= a->cur.sum0; 57 a->cur.sum0 = 0; 58 a->tot.sum1 ^= a->cur.sum1; 59 a->cur.sum1 = 0; 60 a->tot.sum2 ^= a->cur.sum2; 61 a->cur.sum2 = 0; 62 a->tot.sum3 ^= a->cur.sum3; 63 a->cur.sum3 = 0; 83 register Ast4_sum_t* a = &((Ast4_t*)p)->cur; [all...] |
/ast/src/lib/libcmd/ |
H A D | cat.c | 128 unsigned char* cur; local 154 cur = cp; 169 if (cur == pp) 184 sfwrite(op, cur, m); 185 *(cp = cur = end) = 0; 222 cur = cp += m - c; 238 if ((m = cp - cur) || n >= T_CONTROL) 248 sfwrite(op, cur, m); 298 *(cur = tmp) = c;
|
H A D | tail.c | 138 Sfoff_t cur; member in struct:Tail_s 326 tp->cur = tp->end = offset; 657 z = fp->fifo ? SF_UNBOUND : st.st_size - fp->cur; 671 fp->cur += w;
|
/ast/src/lib/libexpr/ |
H A D | exlib.h | 133 Extype_t** cur; /* current label pointer */ member in struct:Switch_s
|
/ast/src/lib/libpp/ |
H A D | ppinput.c | 89 register struct ppinstk* cur; local 91 PUSH(t, cur); 92 cur->line = error_info.line; 93 cur->file = error_info.file; 99 cur->flags |= IN_newline; 100 cur->fd = n; 101 cur->hide = ++pp.hide; 102 cur->symbol = 0; 106 cur->index = newof(0, struct ppindex, 1, 0); 107 if (pp.lastindex) pp.lastindex->next = cur 286 struct ppinstk* cur; local [all...] |
H A D | pplex.c | 457 register struct ppinstk* cur = pp.in; local 463 switch (cur->type) 474 if (cur->type == IN_RESCAN || cur->type == IN_BUFFER) 478 if (cur->flags & IN_prototype) 479 pppclose(cur->buffer + PPBAKSIZ); 482 if (!(cur->flags & IN_static)) 483 free(cur->buffer); 485 while (pp.control-- != cur->control) 488 error_info.file = cur [all...] |
/ast/src/cmd/ksh93/edit/ |
H A D | completion.c | 207 int ed_expand(Edit_t *ep, char outbuff[],int *cur,int *eol,int mode, int count) argument 236 register int c = *cur; 238 /* adjust cur */ 239 cp = (genchar *)outbuff + *cur; 242 *cur = ed_external((genchar*)outbuff,(char*)stakptr(0)); 247 out = outbuff + *cur + (sh_isoption(SH_VI)!=0); 479 *cur = (out-outbuff); 494 /* first re-adjust cur */ 495 c = outbuff[*cur]; 496 outbuff[*cur] [all...] |
/ast/src/cmd/kshlib/dbm_t/ |
H A D | dbm_t.c | 59 Namval_t *cur; member in struct:dbm_array 142 ap->cur = &ap->node; 144 nv_setsize(ap->cur,data.dsize); 149 ap->cur = 0; 209 else if(ap->cur) 211 ap->pos = ap->cur = 0; 216 ap->cur = ap->pos = 0; 241 ap->cur = ap->pos; 243 return((void*)ap->cur); 258 ap->cur [all...] |
/ast/src/cmd/paxlib/ico/ |
H A D | ico.c | 64 unsigned char* cur; member in struct:Ico_s 112 ico->cur = ico->dir; 132 p = ico->cur; 133 ico->cur += ICO_DIRECTORY; 173 dir = ico->cur - ICO_DIRECTORY;
|
/ast/src/cmd/pzip/ |
H A D | rectify.c | 158 unsigned long cur; local 173 cur = offset + i; 175 dif = cur - *q; 176 *q = cur; 183 if ((cur - p->offset) <= dif) 186 p->start = cur; 194 p->offset = cur;
|
/ast/src/cmd/ksh93/bltins/ |
H A D | read.c | 345 char buf[256],*var=buf,*cur,*end,*up,*v; local 355 up = cur = var; 406 if(c > (end-cur)) 408 ssize_t cx = cur - var, ux = up - var; 409 m = (end - var) + (c - (end - cur)); 413 var = memcpy(v, var, cur - var); 418 cur = var + cx; 421 if(cur!=(char*)cp) 422 memcpy((void*)cur,cp,c); 425 cur [all...] |