summaryrefslogtreecommitdiff
path: root/lib/xgetcwd.c
AgeCommit message (Collapse)Author
2001-08-12(xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:Jim Meyering
Simply `return getcwd (NULL, 0);'. [! (defined __GLIBC__ && __GLIBC__ >= 2)]: Use 1300 as initial value for length, not PATH_MAX.
2000-06-21(xgetcwd): If the required pathname length is smallerJim Meyering
than 1024, return a memory chunk of least possible size, instead of size PATH_MAX + 2. In the loop, increment the size proportionally. Use free/xmalloc instead of xrealloc to avoid copying for very long paths.
1996-11-04libitizeJim Meyering
1996-10-29.Jim Meyering
1996-07-15indent cpp-directivesJim Meyering
1996-07-15update FSF address in copyrightJim Meyering
1994-04-28Initial revisionJim Meyering