[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gnulib] Re: [PATCH]: GnuLib ftw module

From: Yoann Vandoorselaere
Subject: [bug-gnulib] Re: [PATCH]: GnuLib ftw module
Date: Wed, 13 Apr 2005 14:31:42 +0200

On Wed, 2005-04-13 at 14:12 +0200, Jim Meyering wrote:
> Yoann Vandoorselaere <address@hidden> wrote:
> > Please find attached an implementation of a ftw function for GnuLib.
> >
> > It probably doesn't conform completely to the standard (especially since
> > nopenfd is not supported), but from the test I did it look good and give
> > similar result as the glibc implementation.
> Thanks for the offer.
> Does this implementation provide some improvement over the glibc one?
> I'd rather not add *any* ftw/nftw implementation to gnulib that
> imposes stack-size limitation on the depth of the hierarchies it
> operates on.  Since your implementation is recursive, it does that.
> You can see the problem by trying to use it on a hierarchy with a
> depth of say, 50000.  It'll blow the stack and probably segfault.

No, it won't provide any avantage over the glibc one: it is really a
basic implementation that I did for my own need, and sent to bug-gnulib
in case it would be useful to anyone.

The stack size limitation problem could easily be workarounded through,
so if that's of interest to anyone (I personally have no need for it for
in my restricted use), I can provide a fix for that specific issue.

Yoann Vandoorselaere <address@hidden>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]