develooper Front page | perl.perl5.porters | Postings from January 2012

Re: [perl #109262] Increase the fallback value of MAXPATHLEN

Thread Previous | Thread Next
From:
Dominic Hargreaves
Date:
January 28, 2012 15:09
Subject:
Re: [perl #109262] Increase the fallback value of MAXPATHLEN
Message ID:
20120128230846.GG4209@urchin.earth.li
On Sat, Jan 28, 2012 at 02:42:17PM -0800, Mark Overmeer via RT wrote:
> * Dominic Hargreaves (perlbug-followup@perl.org) [120128 14:22]:

> > The attached patch addresses a problem reported as
> > <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=656869> where, even
> > though no limit is defined in GNU/Hurd, MAXPATHLEN is limited to 1024.
> > 
> > Increasing this to 4096 creates parity between GNU/Hurd and
> > GNU/Linux. I'd be interested in opinions about whether this is sensible
> > to apply.
> 
> The C constant _POSIX_PATH_MAX gives the minimal value for PATH_MAX to
> be POSIX compliant (now 256, in the earlier posix versions 255)
> Does pathconf('/etc',_PC_PATH_MAX) produce a nice value?

No, on GNU/Hurd 'POSIX::pathconf( "/etc", &POSIX::_PC_PATH_MAX )'
returns undef.

There is some more about this issue generally at

<http://www.gnu.org/software/hurd/community/gsoc/project_ideas/maxpath.html>

-- 
Dominic Hargreaves | http://www.larted.org.uk/~dom/
PGP key 5178E2A5 from the.earth.li (keyserver,web,email)

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About