[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gnulib] Re: [PATCH]: GnuLib ftw module
From: |
Jim Meyering |
Subject: |
[bug-gnulib] Re: [PATCH]: GnuLib ftw module |
Date: |
Wed, 13 Apr 2005 14:12:01 +0200 |
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.
The problem is that merely by providing it, gnulib would be
encouraging its use. People should use fts instead.