Don't include pathmax.h.
authorJim Meyering <jim@meyering.net>
Fri, 31 Aug 2001 10:36:12 +0000 (10:36 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 31 Aug 2001 10:36:12 +0000 (10:36 +0000)
commitf16f973acda959377d8841b2aa0c2f0beb58dd2e
tree77f278229a6fc5ba087ff090786c951465fac48c
parentca72a0103a972623842c3933a2e5a30d2622e6d7
Don't include pathmax.h.
Include stdlib.h and unistd.h if available.
Include xalloc.h.
(xmalloc, xstrdup, free): Remove decls.
(xgetcwd): Don't assume sizes fit in unsigned.
Check for overflow when computing sizes.
Simplify reallocation code.
lib/xgetcwd.c