[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PATH_MAX on the Hurd
From: |
Eric Blake |
Subject: |
Re: PATH_MAX on the Hurd |
Date: |
Fri, 05 Aug 2011 07:56:11 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110621 Fedora/3.1.11-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.11 |
On 08/04/2011 07:14 PM, Bruno Haible wrote:
/* Check that PATH_MAX is a constant if it is defined. */
#ifdef PATH_MAX
int a = PATH_MAX;
Shouldn't this be:
static int a[PATH_MAX];
so that we really are testing that it is a constant? And do we also
want to enforce that it is usable as a preprocessor number, as in
something like:
#ifdef PATH_MAX
# if !PATH_MAX
# error
# endif
#endif
--
Eric Blake address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org
- hurd builds, Simon Josefsson, 2011/08/03
- Re: hurd builds, Paul Eggert, 2011/08/03
- Re: PATH_MAX on the Hurd, Bruno Haible, 2011/08/03
- Re: PATH_MAX on the Hurd, Paul Eggert, 2011/08/03
- Re: PATH_MAX on the Hurd, Simon Josefsson, 2011/08/04
- Re: PATH_MAX on the Hurd, Bruno Haible, 2011/08/04
- Re: PATH_MAX on the Hurd, Bruno Haible, 2011/08/04
- Re: PATH_MAX on the Hurd,
Eric Blake <=
- Re: PATH_MAX on the Hurd, Bruno Haible, 2011/08/05
- Re: PATH_MAX on the Hurd, Paul Eggert, 2011/08/05
- Re: PATH_MAX on the Hurd, Eric Blake, 2011/08/05
- Re: PATH_MAX on the Hurd, Paul Eggert, 2011/08/05
- Re: PATH_MAX on the Hurd, Karl Berry, 2011/08/05