Lines Matching refs:allocated
187 size_t allocated = size; in __getcwd_generic() local
191 if (allocated == 1) in __getcwd_generic()
244 allocated = BIG_FILE_NAME_LENGTH + 1; in __getcwd_generic()
249 dir = malloc (allocated); in __getcwd_generic()
256 dirp = dir + allocated; in __getcwd_generic()
427 size_t oldsize = allocated; in __getcwd_generic()
429 allocated += MAX (allocated, namlen); in __getcwd_generic()
430 if (allocated < oldsize in __getcwd_generic()
431 || ! (tmp = realloc (dir, allocated))) in __getcwd_generic()
436 dirp = memcpy (tmp + allocated - (oldsize - dirroom), in __getcwd_generic()
456 if (dirp == &dir[allocated - 1]) in __getcwd_generic()
464 used = dir + allocated - dirp; in __getcwd_generic()
469 buf = (used < allocated ? realloc (dir, used) : dir); in __getcwd_generic()