Searched refs:lp (Results 1 - 25 of 49) sorted by relevance

12

/ast/src/lib/libast/tm/
H A Dtmxleap.c40 register Tm_leap_t* lp; local
47 for (lp = &tm_data.leap[0]; sec < (lp->time - lp->total); lp++);
48 t = tmxsns(sec + lp->total, tmxnsec(t));
H A Dtmxmake.c43 register Tm_leap_t* lp; local
59 for (lp = &tm_data.leap[0]; n < lp->time; lp++);
60 if (lp->total)
62 if (n == lp->time && (leapsec = (lp->total - (lp+1)->total)) < 0)
64 t = tmxsns(n - lp->total, tmxnsec(t));
H A Dtmxtime.c49 register Tm_leap_t* lp; local
130 for (lp = &tm_data.leap[0]; t < lp->time - (lp+1)->total; lp++);
131 t += lp->total;
132 n = lp->total - (lp+1)->total;
133 if (t <= (lp->time + n) && (n > 0 && sec > 59 || n < 0 && sec > (59 + n) && sec <= 59))
/ast/src/cmd/ksh93/sh/
H A Dlex.c118 #define pushlevel(lp,c,s) ((lp->lexd.level>=lp->lexd.lex_max?stack_grow(lp):1) &&\
119 ((lp->lexd.lex_match[lp->lexd.level++]=lp->lexd.lastc),\
120 lp->lexd.lastc=(((s)<<CHAR_BIT)|(c))))
121 #define oldmode(lp) (lp
141 refvar(Lex_t *lp, int type) argument
185 register Lex_t *lp = (Lex_t*)context; local
233 lexfill(Lex_t *lp) argument
265 sh_lexopen(Lex_t *lp, Shell_t *sp, int mode) argument
292 sh_lex(Lex_t *lp) argument
321 sh_lex(Lex_t* lp) argument
1556 comsub(register Lex_t *lp, int endtok) argument
1695 nested_here(register Lex_t *lp) argument
1736 sh_lexskip(Lex_t *lp,int close, register int copy, int state) argument
1790 here_copy(Lex_t *lp,register struct ionod *iop) argument
2049 fmttoken(Lex_t *lp, register int sym, char *tok) argument
2109 sh_syntax(Lex_t *lp) argument
2434 Lex_t *lp; member in struct:alias
2455 register Lex_t *lp; local
2490 setupalias(Lex_t *lp, const char *string,Namval_t *np) argument
2526 stack_grow(Lex_t *lp) argument
[all...]
H A Dsubshell.c224 register struct Link *lp; local
227 for(lp=sp->svar; lp; lp = lp->next)
229 if(lp->node==np)
244 register struct Link *lp; local
264 for(lp=sp->svar; lp;lp
313 register struct Link *lp, *lq; local
[all...]
H A Dargs.c143 Lex_t *lp = (Lex_t*)(shp->lex_context); local
364 if(!(lp->kiafile=sfopen(NIL(Sfio_t*),ap->kiafile,"w+")))
366 if(!(lp->kiatmp=sftmp(2*SF_BUFSIZE)))
368 sfputr(lp->kiafile,";vdb;CIAO/ksh",'\n');
369 lp->kiabegin = sftell(lp->kiafile);
370 lp->entity_tree = dtopen(&_Nvdisc,Dtbag);
371 lp->scriptname = strdup(sh_fmtq(argv[0]));
372 lp->script=kiaentity(lp,l
[all...]
H A Dparse.c71 #define sh_getlineno(lp) (lp->lastline)
244 static Shnode_t *makeparent(Lex_t *lp, int flag, Shnode_t *child) argument
250 par->fork.forkline = sh_getlineno(lp)-1;
282 static Shnode_t *getanode(Lex_t *lp, struct argnod *ap) argument
286 t->ar.arline = sh_getlineno(lp);
289 t->ar.arcomp = sh_arithcomp(lp->sh,ap->argval);
293 errormsg(SH_DICT,ERROR_warn(0),e_lexwarnvar,lp->sh->inlineno);
411 Shnode_t *sh_dolparen(Lex_t* lp) argument
415 int line = lp
1877 test_expr(Lex_t *lp,int sym) argument
1885 test_or(Lex_t *lp) argument
1893 test_and(Lex_t *lp) argument
2055 Lex_t *lp = (Lex_t*)data; local
[all...]
H A Dnvdisc.c686 Namfun_t *lp, **lpp; local
694 if((lp=np->nvfun)==fp)
698 lp = nv_clone_disc(fp,0);
699 return(np->nvfun=lp);
703 np->nvfun = lp->next;
706 if(mode==NV_LAST && (lp->next==0 || lp->next->disc==0))
711 if(lp)
713 while(lp->next && lp
[all...]
/ast/src/cmd/dsslib/ip_t/
H A Direexec.h42 IRENEXT(Ire_t* ire, register Re_t* re, int must, IREINT* lp, IREINT* rp) argument
52 return !ire->right || lp >= rp;
53 if ((rp - lp) < must)
58 bp = lp + re->lo - 1;
60 else if (IRENEXT(ire, re->next, must, lp, rp))
63 bp = lp;
66 if (!re->hi || re->hi > (rp - lp))
69 ep = lp + re->hi;
72 for (cp = lp; cp < ep; cp++)
118 IREINT* lp local
[all...]
/ast/src/lib/libcodex/
H A Dcodexlist.c36 register Codexmeth_t* lp; local
48 lp = meth;
55 for (lp = lp->next = np; lp->next; lp = lp->next);
/ast/src/lib/libdll/
H A Ddllnext.c66 register void* lp; local
83 if (strcmp(vp, "MAIN") && (lp = dllopen(vp, flags)))
85 if (xr = (Write_f)dlsym(lp, "write"))
95 if (lp = dllopen(strcmp(vp, "MAIN") ? vp : (char*)0, flags))
129 if (dlsym(lp, dummy))
131 dlclose(lp);
132 lp = 0;
135 if (lp)
141 return lp;
148 else if ((_DLL_RLD_SYM_TYPE*)dlsym(lp, _DLL_RLD_SYM_ST
[all...]
/ast/src/lib/libcmd/
H A Dcut.c133 register int* lp; local
160 lp = cut->list;
176 *lp++ = range;
177 *lp++ = n;
181 *lp++ = --n;
182 *lp++ = 1;
187 *lp = HUGE;
188 n = 1 + (lp-cut->list)/2;
189 qsort(lp=cut->list,n,2*sizeof(*lp),mycom
257 register const int* lp = cut->list; local
370 register const int *lp = cut->list; local
[all...]
H A Dfmt.c240 char* lp; local
245 while (cp || (cp = sfgetr(fp->in, '\n', 0)) && !(splice = 0) && (lp = cp + sfvalue(fp->in) - 1) || (cp = sfgetr(fp->in, '\n', SF_LASTR)) && (splice = 1) && (lp = cp + sfvalue(fp->in)))
253 while (cp < lp)
266 while (cp < lp && (*cp == ' ' || *cp == '\t'))
268 if (!isoption(fp, 'q') && cp < lp)
273 ep = lp;
290 if (cp >= lp)
303 while (cp < lp)
308 if ((lp
[all...]
/ast/src/lib/libuu/
H A Duulib.h33 Sfio_t* lp; \
/ast/src/lib/libast/port/
H A Dlc.c266 canonical(const Lc_language_t* lp, const Lc_territory_t* tp, const Lc_charset_t* cp, const Lc_attribute_list_t* ap, unsigned long flags, char* buf, size_t siz) argument
280 if (lp)
282 if (lp->flags & (LC_debug|LC_default))
284 for (t = lp->code; s < e && (*s = *t++); s++);
291 t = lp->name;
305 for (t = lp->code; s < e && (*s = *t++); s++);
312 if (lp)
314 if ((flags & (LC_abbreviated|LC_default)) && streq(lp->code, tp->code))
352 if (lp && (!(flags & (LC_abbreviated|LC_default)) || cp != lp
433 const Lc_language_t* lp; local
[all...]
H A Dlcgen.c273 Language_t* lp; local
454 if (!(lp = (Language_t*)lookup(&state.language, b)))
469 ll->language = lp;
491 if (!(lp = newof(0, Language_t, 1, s - b + 1)))
496 b = (char*)(lp + 1);
497 lp->link.code = copy(&b, arg[0]);
498 lp->name = copy(&b, arg[1]);
499 lp->alternates = copy(&b, arg[2]);
501 lp->charset = 0;
502 else if (!(lp
[all...]
/ast/src/cmd/pzip/
H A Dpop.c243 Label_t* lp; local
255 lp = ++lv;
264 if (tokscan(s, NiL, "%s, %d,", &lp->name, &lp->end) != 2)
266 lp->beg = (lp-1)->end + 1;
267 lp->end += lp->beg - 1;
269 else if (tokscan(s, NiL, "%d-%d %s", &lp->beg, &lp
[all...]
/ast/src/cmd/mailx/
H A Dsend.c295 prepend(struct letter* lp) argument
301 lp->head = lp->body = 0;
311 lp->head = ftell(nfo);
312 headout(nfo, lp->hp, GSEND|GEXTERN|GNL|GCOMMA);
313 lp->body = ftell(nfo);
314 if (filecopy("message body", lp->fp, state.tmp.mail, nfo, NiL, (off_t)0, NiL, NiL, 0)) {
317 lp->head = lp->body = 0;
318 rewind(lp
332 savemail(struct letter* lp, char* name) argument
396 register struct letter* lp = (struct letter*)context; local
616 register const struct lab* lp; local
[all...]
H A Dtty.c358 register const struct lab* lp; local
370 for (lp = state.hdrtab; lp->name; lp++)
371 if (type & lp->type) {
372 if (!(s = detract(hp, lp->type)))
375 note(0, "%sfield too long to edit", lp->name);
379 if ((r = ttyedit(0, 1, lp->name, buf, sizeof(buf))) < 0)
381 headclear(hp, lp->type);
382 extract(hp, lp
[all...]
H A Dmisc.c295 register char* lp; local
300 lp = state.var.local;
302 if (le = strchr(lp, ','))
304 if (!strcasecmp(lp, host)) {
309 if (hx && !strcasecmp(lp, hx + 1)) {
315 if (!(lp = le))
317 *lp++ = ',';
/ast/src/lib/libjcl/
H A Dfind.c172 register Dirlist_t* lp; local
178 lp = jcl ? &jcl->dirs : &state.dirs;
179 for (dp = lp->head; dp; dp = dp->next)
190 if (lp->tail)
191 lp->tail = lp->tail->next = dp;
193 lp->head = lp->tail = dp;
/ast/src/cmd/std/
H A Dls.c471 List_t* lp; local
481 if (lp = (List_t*)handle)
483 ftw = lp->ftw;
561 if (lp)
562 n = lp->count.blocks;
567 if (lp)
568 n = lp->count.bytes;
585 if (lp)
586 n = lp->count.files;
623 if (*ftw->name == '/' || !lp
802 pr(register List_t* lp, Ftw_t* ftw, register int fill) argument
841 col(register List_t* lp, register Ftw_t* ftw, int length) argument
[all...]
/ast/src/cmd/html/
H A Dhtmlrefs.c279 register List_t* lp; local
404 for (lp = fp->refs; lp && lp->file != ref; lp = lp->next);
405 if (!lp)
407 if (!(lp = newof(0, List_t, 1, 0)))
409 lp->file = ref;
410 lp
901 register List_t* lp; local
[all...]
/ast/src/cmd/builtin/
H A Dpty.c311 process(Sfio_t* mp, Sfio_t* lp, int delay, int timeout) argument
455 masterline(Sfio_t* mp, Sfio_t* lp, char* prompt, int must, int timeout, Master_t* bp) argument
679 if (lp)
680 sfputr(lp, fmtesq(r, "\""), '\n');
711 dialogue(Sfio_t* mp, Sfio_t* lp, int delay, int timeout) argument
759 if (master->prompt && !masterline(mp, lp, master->prompt, 0, timeout, master))
790 if ((cond->prev->flags & SKIP) && !(cond->text = 0) || !(cond->text = masterline(mp, lp, 0, 0, timeout, master)))
844 if (!(m = masterline(mp, lp, s, 1, timeout, master)))
850 if (!(m = masterline(mp, lp, 0, s[0] == '?' && s[1] == '.' ? -1 : 1, timeout, master)))
871 if (!(m = masterline(mp, lp,
961 Sfio_t* lp; local
[all...]
/ast/src/lib/libast/disc/
H A Dsfkeyprintf.c80 register int lp; local
92 lp = rp = n = 0;
105 else if (c == lp)
113 lp = '(';
119 lp = '[';

Completed in 45 milliseconds

12