Lines Matching defs:sp1
265 char *sp1;
284 if ((sp1 = strrchr(path, '/')) == NULL) /* last component */
286 else if (isdigit(*(sp1+1))) {
287 sp1 += strlen(sp1);
288 while (--sp1 > path && isdigit(*sp1))
290 if (*sp1 != '/')
292 } else if (strcmp(sp1+1, "as") == 0 ||
293 strcmp(sp1+1, "ctl") == 0) {
294 *sp1 = '\0';
295 } else if (strcmp(sp1+1, "lwpctl") == 0) {
298 * ............ ^-- sp1
300 if (sp1-6 >= path && strncmp(sp1-6, "/agent", 6) == 0)
301 sp1 -= 6;
303 while (--sp1 > path && isdigit(*sp1))
306 if (*sp1 != '/' ||
307 (sp1 -= 4) <= path ||
308 strncmp(sp1, "/lwp", 4) != 0)
310 *sp1 = '\0';
311 } else if (strcmp(sp1+1, "self") != 0) {
324 if (sp1 != NULL)
325 *sp1 = '/';
338 if (sp1 != NULL)
339 *sp1 = '/';
344 if (sp1 != NULL)
345 *sp1 = '/';