Searched refs:ptsize (Results 1 - 2 of 2) sorted by relevance

/freebsd-11-stable/lib/libc/gen/
H A Dgetcwd.c69 size_t ptsize; local
80 ptsize = 0;
91 if ((pt = malloc(ptsize = PATH_MAX)) == NULL)
93 ept = pt + ptsize;
192 if (!ptsize) {
198 if ((pt = reallocf(pt, ptsize *= 2)) == NULL)
201 ept = pt + ptsize;
223 if (ptsize)
/freebsd-11-stable/crypto/openssh/openbsd-compat/
H A Dgetcwd.c63 size_t ptsize, upsize; local
73 ptsize = 0;
80 if ((pt = malloc(ptsize = MAXPATHLEN)) == NULL)
82 ept = pt + ptsize;
194 if (!ptsize) {
199 if ((npt = realloc(pt, ptsize *= 2)) == NULL)
203 ept = pt + ptsize;
229 if (ptsize)

Completed in 106 milliseconds