[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
PATH_MAX and test-stat.h
From: |
Bruno Haible |
Subject: |
PATH_MAX and test-stat.h |
Date: |
Sat, 18 Jun 2011 21:33:36 +0200 |
User-agent: |
KMail/1.9.9 |
Hi Eric,
In pathmax.h one of the possible replacement values for PATH_MAX on systems
that don't define it (currently HP-UX and GNU/Hurd) is an expression
involving pathconf().
But tests/test-stat.h line 20 declares an array of size PATH_MAX. So - at
least with pre-C99 compilers - it is assuming that PATH_MAX is a constant.
Should we guarantee that PATH_MAX is a constant expression (by modifying
lib/pathmax.h), or change tests/test-stat.h to not assume it?
Bruno
--
In memoriam Mona Mahmudnizhad <http://en.wikipedia.org/wiki/Mona_Mahmudnizhad>
- PATH_MAX and test-stat.h,
Bruno Haible <=
Re: PATH_MAX and test-stat.h, Eric Blake, 2011/06/20