Lines Matching refs:tp
179 char *tp; /* scratch pointer */
214 tp = val;
222 *(tp - 1) = *p++;
224 *tp++ = *p++;
226 *tp = '\0';
229 * (values of tp and p
231 tp = ++p;
234 tp = p;
236 while (*tp && !isspace(*tp))
237 tp++;
241 * at this point, p points to the value, and tp points to the
246 if (*tp)
250 tp = malloc(strlen(scratch) + 1);
251 if (tp == NULL)
253 (void) strcpy(tp, scratch);
254 if (putenv(tp))
271 char *tp; /* scratch pointer */
284 tp = p;
285 while (*tp && !isspace(*tp) && (*tp != ','))
286 tp++;
287 if (*tp)
288 *tp++ = '\0';
302 p = tp;
375 char *tp; /* scratch pointer */
390 for (tp = p; *tp && !isspace(*tp); ++tp)
393 if (*tp) {
394 savech = *tp;
395 *tp = '\0';
403 *tp = savech;
404 tp = eatwhite(tp);
405 if (*tp == '\0')
407 tp = getenv("HOME");
408 if (chdir(tp) < 0)
411 *tp = savech;
412 tp = eatwhite(tp);
414 if (*tp == '\0')
417 for (ep = tp; *ep && !isspace(*ep); ++ep)
422 if (!isdigit(*tp))
425 if (ulimit(2, atoi(tp)) < 0)
428 *tp = savech;
429 tp = eatwhite(tp);
431 if (*tp == '\0')
434 for (ep = tp; *ep && !isspace(*ep); ++ep)
439 if (!isdigit(*tp))
441 (void) umask(strtol(tp, NULL, 8));
444 *tp = savech;