pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
authorBruno Haible <bruno@clisp.org>
Fri, 5 Aug 2011 01:01:01 +0000 (03:01 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 5 Aug 2011 01:01:01 +0000 (03:01 +0200)
commit6310fc6d3e3f086e825cbd6f53950fbdc1ac7b42
tree051f5bba7dc9b6acc19e8e2507ab3a091054a618
parent7f494c7d725db4a7f3abdef09d4070725487da67
pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.

* lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
* lib/chdir-long.h: Include pathmax.h.
* lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
* lib/getcwd.c: Include pathmax.h instead of <limits.h>.
(PATH_MAX): Remove code that is done by pathmax.h.
* lib/canonicalize.c (PATH_MAX): Provide a fallback value.
* lib/tmpfile.c: Add a comment.
* m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
* modules/chdir-long (Depends-on): Add pathmax.
* modules/getcwd (Depends-on): Add pathmax.
* tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
is not defined.
* doc/posix-headers/limits.texi: Mention the pathmax module.
* NEWS: Mention the change.
13 files changed:
ChangeLog
NEWS
doc/posix-headers/limits.texi
lib/canonicalize.c
lib/chdir-long.h
lib/clean-temp.c
lib/getcwd.c
lib/pathmax.h
lib/tmpfile.c
m4/pathmax.m4
modules/chdir-long
modules/getcwd
tests/test-getcwd.c