Re: [PATCH] Added FTW.H Methods

Corinna Vinschen via Newlib <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
On Aug 13 03:08, Eshan dhawan via Newlib wrote:
> Signed-off-by: Eshan dhawan <[email protected]>
> ---
>  newlib/configure.host         |   2 +-
>  newlib/libc/include/ftw.h     |  64 ++++++++++++++
>  newlib/libc/posix/Makefile.am |   2 +-
>  newlib/libc/posix/ftw.c       |  36 ++++++++
>  newlib/libc/posix/nftw.c      | 154 ++++++++++++++++++++++++++++++++++
>  5 files changed, 256 insertions(+), 2 deletions(-)
>  create mode 100644 newlib/libc/include/ftw.h
>  create mode 100644 newlib/libc/posix/ftw.c
>  create mode 100644 newlib/libc/posix/nftw.c

Why do we need _FTW_ENABLE_?

What do we need the foo64 variants for?  WHile newlib defines
_LARGEFILE64_SOURCE for __linux__ and __RDOS__, it's not used
anywhere else in newlib itself.

Also, there's a ftw/nftw implementation in Cygwin already.  Did you
check it for inclusion into newlib, or to drop the Cygwin version in
favor of a new newlib versions?  We could at least share a common
header, but then we will have to use the flag values already used in
the Cygwin implementation for backward compatibility.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.