Lines Matching refs:cwd
296 static const char *cwd; variable
532 if(cwd==unknown) in set_cwd()
533 cwd = NULL; /* xgetcwd(arg) called free(arg) */ in set_cwd()
534 cwd = xgetcwd((char *)cwd); in set_cwd()
535 if (!cwd) in set_cwd()
536 cwd = unknown; in set_cwd()
537 return cwd; in set_cwd()
962 PS1=xmalloc(strlen(cwd)+4); in setup_prompt_string()
963 sprintf(PS1, "%s %s", cwd, ( geteuid() != 0 ) ? "$ ":"# "); in setup_prompt_string()
3488 if (cwd && cwd != unknown)
3489 free((char*)cwd);