Lines Matching full:lp

415     Char   *lp;  in dogoto()  local
418 lp = globone(v[1], G_ERROR); in dogoto()
419 cleanup_push(lp, xfree); in dogoto()
421 gotolab(lp); in dogoto()
422 cleanup_until(lp); in dogoto()
453 Char *cp, *lp; in doswitch() local
464 lp = globone(cp, G_ERROR); in doswitch()
465 cleanup_push(lp, xfree); in doswitch()
467 search(TC_SWITCH, 0, lp); in doswitch()
468 cleanup_until(lp); in doswitch()
1383 Char *vp, *lp; in dosetenv() local
1392 lp = vp; in dosetenv()
1394 if (!letter(*lp)) in dosetenv()
1397 lp++; in dosetenv()
1398 } while (alnum(*lp) || *lp == '.'); in dosetenv()
1399 if (*lp != '\0') in dosetenv()
1402 if ((lp = *v++) == 0) in dosetenv()
1403 lp = STRNULL; in dosetenv()
1405 lp = globone(lp, G_APPEND); in dosetenv()
1406 cleanup_push(lp, xfree); in dosetenv()
1407 tsetenv(vp, lp); in dosetenv()
1409 importpath(lp); in dosetenv()
1411 cleanup_until(lp); in dosetenv()
1418 cleanup_until(lp); in dosetenv()
1427 autoset_dspmbyte(lp); in dosetenv()
1472 cleanup_until(lp); in dosetenv()
1488 cleanup_until(lp); in dosetenv()
1494 cleanup_until(lp); in dosetenv()
1501 setv(STRterm, quote(lp), VAR_READWRITE); /* lp memory used here */ in dosetenv()
1502 cleanup_ignore(lp); in dosetenv()
1503 cleanup_until(lp); in dosetenv()
1504 t = short2str(lp); in dosetenv()
1520 cleanup_ignore(lp); in dosetenv()
1521 canon = dcanon(lp, lp); in dosetenv()
1523 setv(STRhome, quote(canon), VAR_READWRITE); /* lp memory used here */ in dosetenv()
1533 setv(STRshlvl, quote(lp), VAR_READWRITE); /* lp memory used here */ in dosetenv()
1534 cleanup_ignore(lp); in dosetenv()
1535 cleanup_until(lp); in dosetenv()
1540 setv(STRuser, quote(lp), VAR_READWRITE); /* lp memory used here */ in dosetenv()
1541 cleanup_ignore(lp); in dosetenv()
1542 cleanup_until(lp); in dosetenv()
1547 setv(STRgroup, quote(lp), VAR_READWRITE); /* lp memory used here */ in dosetenv()
1548 cleanup_ignore(lp); in dosetenv()
1549 cleanup_until(lp); in dosetenv()
1555 parseLS_COLORS(lp); in dosetenv()
1556 cleanup_until(lp); in dosetenv()
1560 parseLSCOLORS(lp); in dosetenv()
1561 cleanup_until(lp); in dosetenv()
1570 if ((eq(lp, STRNULL) && (eq(vp, STRLINES) || eq(vp, STRCOLUMNS))) || in dosetenv()
1572 cleanup_until(lp); in dosetenv()
1584 cleanup_until(lp); in dosetenv()
1589 cleanup_until(lp); in dosetenv()
2047 struct limits *lp, *res; in findlim() local
2050 for (lp = limits; lp->limconst >= 0; lp++) in findlim()
2051 if (prefix(cp, str2short(lp->limname))) { in findlim()
2054 res = lp; in findlim()
2067 struct limits *lp; in dolimit() local
2078 for (lp = limits; lp->limconst >= 0; lp++) in dolimit()
2079 plim(lp, hard); in dolimit()
2082 lp = findlim(v[0]); in dolimit()
2084 plim(lp, hard); in dolimit()
2087 limit = getval(lp, v + 1); in dolimit()
2088 if (setlim(lp, hard, limit) < 0) in dolimit()
2093 getval(struct limits *lp, Char **v) in getval() argument
2114 return restrict_limit((f * lp->limdiv) + 0.5); in getval()
2120 if (lp->limconst != RLIMIT_CPU) in getval()
2124 if (lp->limconst != RLIMIT_CPU) in getval()
2132 if (lp->limconst == RLIMIT_CPU) { in getval()
2143 if (lp->limconst != RLIMIT_CPU) in getval()
2153 if (lp->limconst == RLIMIT_CPU) in getval()
2161 if (lp->limconst == RLIMIT_CPU) in getval()
2170 if (lp->limconst == RLIMIT_CPU) in getval()
2178 if (lp->limconst == RLIMIT_CPU) in getval()
2228 plim(struct limits *lp, int hard) in plim() argument
2234 int xdiv = lp->limdiv; in plim()
2236 xprintf("%-13.13s", lp->limname); in plim()
2239 limit = ulimit(lp->limconst, 0); in plim()
2241 if (lp->limconst == RLIMIT_DATA) in plim()
2245 (void) getrlimit(lp->limconst, &rlim); in plim()
2254 if (lp->limconst == RLIMIT_FSIZE) { in plim()
2266 if (lp->limconst == RLIMIT_CPU && in plim()
2272 if (lp->limconst == RLIMIT_CPU) in plim()
2276 xprintf("%ld %s", (long) (limit / xdiv), lp->limscale); in plim()
2284 struct limits *lp; in dounlimit() local
2307 for (lp = limits; lp->limconst >= 0; lp++) in dounlimit()
2308 if (setlim(lp, hard, (RLIM_TYPE) RLIM_INFINITY) < 0) in dounlimit()
2315 lp = findlim(*v++); in dounlimit()
2316 if (setlim(lp, hard, (RLIM_TYPE) RLIM_INFINITY) < 0 && !force) in dounlimit()
2322 setlim(struct limits *lp, int hard, RLIM_TYPE limit) argument
2327 (void) getrlimit(lp->limconst, &rlim);
2331 if (limit != RLIM_INFINITY && lp->limconst == RLIMIT_FSIZE)
2344 if (setrlimit(lp->limconst, &rlim) < 0) {
2346 if (limit != RLIM_INFINITY && lp->limconst == RLIMIT_FSIZE)
2349 if (lp->limconst == RLIMIT_DATA)
2352 if (ulimit(toset(lp->limconst), limit) < 0) {
2364 lp->limname, op, type, strerror(err));