Home | History | Annotate | Download | only in csh

Lines Matching defs:cwd

117 	    const char *cwd;
122 if ((cwd = getenv("PWD")) != NULL) {
123 if (stat(cwd, &shp) != -1 && swd.st_dev == shp.st_dev &&
125 ecp = cwd;
280 Char *dp, *cwd;
282 cwd = xreallocarray(NULL, (size_t)(Strlen(dcwd->di_name) + 3),
284 (void)Strcpy(cwd, dcwd->di_name);
304 dp = Strrchr(cwd, '/');
314 cwd[dotdot = Strlen(cwd)] = '/';
315 cwd[dotdot + 1] = '\0';
316 dp = Strspl(cwd, cp);
317 free(cwd);
321 if (!*cwd) {
322 cwd[0] = '/';
323 cwd[1] = '\0';
325 return cwd;
624 * christos: if the path given does not start with a slash prepend cwd. If
625 * cwd does not start with a path or the result would be too long abort().