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)
commitee65e66c6cc7833fccec6f2a0d18ea88d5456e01
tree7f733509f7c91f37312290e7f9940566a0fced13
parent48f3734b371b4cd335666ea910cc5a40178a188c
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