Lines Matching refs:cwd
212 char *cwd;
220 cwd = malloc (path_max);
222 while ((ret = getcwd (cwd, path_max)) == NULL && errno == ERANGE) {
224 cwd = realloc (cwd, path_max);
230 free (cwd);
234 return cwd;
640 char *cwd = NULL;
706 cwd = __getcwd(NULL, 0);
708 if (cwd == NULL)
799 else if (cwd != NULL)
802 __chdir (cwd);
803 free (cwd);