Searched defs:lp (Results 1 - 25 of 45) 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 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))
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));
/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/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/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/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;
H A Dpath.c233 register Map_t* lp; local
250 lp = 0;
271 lp = mp;
272 lp->length = j + n;
277 if (lp)
279 if (lp->tail)
280 lp->length += tail(lp->tail, &name[i], 1);
281 return lp;
/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 = '[';
/ast/src/lib/libcmd/
H A Dcksum.c402 * sum the list of files in lp
406 list(State_t* state, register Sfio_t* lp) argument
411 while (file = sfgetr(lp, '\n', 1))
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...]
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...]
/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 Dhead.c501 register const struct lab* lp; local
626 for (lp = state.hdrtab; lp->name; lp++)
627 if (pp->flags & (lp->type|GMISC)) {
629 t = (char*)lp->name;
633 if (pp->flags & lp->type) {
634 pp->flags &= ~lp->type;
635 pp->type = lp->type;
636 if (lp
[all...]
H A Dlist.c798 register struct lex* lp; local
850 for (lp = &singles[0]; lp->l_char; lp++)
851 if (c == lp->l_char) {
855 return lp->l_token;
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++ = ',';
H A Dvars.c374 register const struct lab* lp; local
380 for (lp = state.hdrtab;; lp++) {
381 if (!(t = lp->name)) {
389 flags |= lp->type;
/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/tw/
H A Dexpr.c206 Local_t* lp; local
386 v = (lp = (Local_t*)ftw->local.pointer) ? lp->value[MEMOFFSET(sym->index)] : exzero(sym->type);
599 Local_t* lp; local
634 if (!(lp = (Local_t*)ftw->local.pointer))
638 lp = state.local;
640 memzero(lp, sizeof(Local_t) + sizeof(Extype_t) * (state.localmem - 1));
642 else if (!(lp = newof(0, Local_t, 1, sizeof(Extype_t) * (state.localmem - 1))))
644 lp = (Local_t*)ftw->local.pointer;
646 lp
[all...]
H A Dtw.c532 Local_t* lp; local
585 if (state.localmem && (lp = (Local_t*)ftw->local.pointer))
587 lp->next = state.local;
588 state.local = 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/pax/
H A Dmisc.c38 Format_t* lp; local
54 (lp = (*init)(&state)))
55 fp = fp->next = lp;
/ast/src/lib/libast/misc/
H A Dmime.c380 register char* lp; local
393 !(rp = strchr(lp = (char*)type, '/')) ||
394 strlen(lp) >= sizeof(buf))
397 rp = buf + (rp - lp);
401 lp = buf;
402 if (*lp == 'x' && *(lp + 1) == '-')
403 lp += 2;
414 sfprintf(mp->buf, "%s%s/%s%s", prefix[i], lp, prefix[i + 1], rp);
422 sfprintf(mp->buf, "%s%s/%s%s", prefix[i], lp, prefi
[all...]

Completed in 36 milliseconds

12