Lines Matching refs:dir
184 char *dir; in __getcwd_generic() local
213 dir = getcwd_system (buf, size); in __getcwd_generic()
214 if (dir || (size && errno == ERANGE)) in __getcwd_generic()
215 return dir; in __getcwd_generic()
224 dir = getcwd_system (big_buffer, sizeof big_buffer); in __getcwd_generic()
225 if (dir) in __getcwd_generic()
226 return strdup (dir); in __getcwd_generic()
249 dir = malloc (allocated); in __getcwd_generic()
250 if (dir == NULL) in __getcwd_generic()
254 dir = buf; in __getcwd_generic()
256 dirp = dir + allocated; in __getcwd_generic()
414 dirroom = dirp - dir; in __getcwd_generic()
431 || ! (tmp = realloc (dir, allocated))) in __getcwd_generic()
439 dir = tmp; in __getcwd_generic()
456 if (dirp == &dir[allocated - 1]) in __getcwd_generic()
464 used = dir + allocated - dirp; in __getcwd_generic()
465 memmove (dir, dirp, used); in __getcwd_generic()
469 buf = (used < allocated ? realloc (dir, used) : dir); in __getcwd_generic()
474 buf = dir; in __getcwd_generic()
493 free (dir); in __getcwd_generic()