On 2017-09-18 20:11:12 +0200, Eike Rathke wrote:
> On Monday, 2017-09-18 13:13:07 +0200, Vincent Lefevre wrote:
>
> > > [... _POSIX_PATH_MAX ...]
> > > (which usually is defined to 256 including null char).
> >
> > And it must be 256 in the current POSIX version:
> >
> > {_POSIX_PATH_MAX}
> > Minimum number the implementation will accept as the maximum
> > number of bytes in a pathname.
> > Value: 256
>
> 256 is the *minimum* value ist must have, it's listed under "Minimum
> Values" that says "For each of these limits, a conforming implementation
> shall provide a value at least this large or shall have no limit."
OK, I didn't look at the context. I was confused because POSIX uses
"Minimum Acceptable Value" for the pathname variable values, but just
"Value" here.
Now, I don't see much point in defining both _POSIX_PATH_MAX and
PATH_MAX for similar meanings. POSIX is strange, sometimes. :)
--
Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)