NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: misc/50166
The following reply was made to PR misc/50166; it has been noted by GNATS.
From: Antti Kantee <pooka%NetBSD.org@localhost>
To: gnats-bugs%NetBSD.org@localhost, gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost,
rmh%gnu.org@localhost
Cc:
Subject: Re: misc/50166
Date: Fri, 18 Sep 2015 14:42:26 +0000
On 18/09/15 14:25, David Holland wrote:
> Well, it should be changed to PATH_MAX, which is posix.
Yes, standardized, but I read the standard so that PATH_MAX is not
required to be defined by limits.h:
"The values in the following list may be constants within an
implementation or may vary from one pathname to another. For example,
file systems or directories may have different characteristics.
A definition of one of the values shall be omitted from the <limits.h>
header on specific implementations where the corresponding value is
equal to or greater than the stated minimum, but where the value can
vary depending on the file to which it is applied. The actual value
supported for a specific pathname shall be provided by the pathconf()
function."
Notably, not just may be omitted, but shall be omitted.
Anyway, if Hurd does define PATH_MAX, we can use it, but if not,
changing the identifier doesn't solve anything no matter what the
standard says.
Home |
Main Index |
Thread Index |
Old Index