[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PATH_MAX and test-stat.h
From: |
Paul Eggert |
Subject: |
Re: PATH_MAX and test-stat.h |
Date: |
Sat, 18 Jun 2011 15:24:38 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110516 Thunderbird/3.1.10 |
On 06/18/11 15:18, James Youngman wrote:
> I suspect that the most useful thing we can do in gnulib is define
> PATH_MAX to a non-constant expression on all platforms, even the ones
> in which it is normally a constant expression.
That goes a bit too far, I'd think. Some code assumes
a constant PATH_MAX only on some platforms; for example, gnulib
lib/stat.c declares an array of size PATH_MAX + 1
only on MingW. We don't want to reject usage like that.
Re: PATH_MAX and test-stat.h, Eric Blake, 2011/06/20
[PATCH] test-stat: don't allocate PATH_MAX bytes, Eric Blake, 2011/06/20